xforms-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] fl_set_font_name() and segmentation fault error


From: Jens Thoms Toerring
Subject: Re: [XForms] fl_set_font_name() and segmentation fault error
Date: Tue, 20 Oct 2009 17:37:21 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Dear Max,

On Tue, Oct 20, 2009 at 05:10:49PM +0200, Max wrote:
> thank you for your prompt answer - unfortunately I am not allowed to give
> you the program, as it depends on third-part libraries I cannot
> redistribute. I have prepared a (very!) small example which shows the same
> behaviour as the big program.

Thanks, that's even better than the large program!

> I have just compiled it with the command

> gcc -Wall -g  test_xforms.c  -lforms

> Attached to the email you have also the output of valgrind, there there are
> some more info about where the error occurs (in the xforms libraries
> compiled with the debug flag).

When I run that program on my machine (also a 64-bit system that
seems to use the same version of the X11 library) I don't get a
segmentation fault. And the output of valgrind also shows some
informations about some memory blocks allocated by X11 and not
deallocated before the program exists...

One thing that comes to mind is that there could be a conflict
between header files, i.e. different versions of <forms.h>, being
installed and the wrong one for the version of the library you're
using getting picked up. Could you check if there's more than one
header file named forms.h installed on your machine in the paths
in which the compilers looks for header files?

If that's not the case, can you tell me which version of the 
library you're using? I, of course, test with the newest one,
so I would miss something broken in older versions...

                                Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      address@hidden
   \_______________________________      http://toerring.de




reply via email to

[Prev in Thread] Current Thread [Next in Thread]