[XForms] Crash in fl_check_forms

Angus Leeming angus.leeming at btopenworld.com
Tue May 11 15:23:51 EDT 2004


I sent this privately to Luis by mistake, so to prevent anyone else 
spending precious time on it, am reposting it to the mailing list.
Angus

On Tuesday 11 May 2004 8:32 am, Luis Balona wrote:
> I've had no problem at all until recently when I've been
> experiencing a segmentation fault soon after starting the program. 
> This fault occurs at sporadic intervals, not always.  I've tracked
> it down to a call to fl_check_forms.  

Hello, Luis.

fl_check_forms is just the public interface to the GUI library. The 
probelm could actually be occuring pretty well anywhere inside either 
xforms or your own code.

Can you compile your executable with optimization turned off and 
debugging turned on and then run it within a debugger such as gdb:

$ gdb your_app
gdb> r <your apps command line arguments>

when it crashes type 'bt' to obtain a full backtrace of the problem. 
That will help you pin down the problem far more precisely.

> Somewhere in here it is
> referencing an illegal address. I know very little about XEvents. 
> Can anyone offer some suggestions?

HTH, but feel free to come back as often as it takes. If you're 
running on a PC using linux, then another *great* debugging tool is 
valgrind which will flag all illegal instructions for you.

Angus



More information about the Xforms mailing list