XForms: segmentation fault

Chris (cgagne@videon.wave.ca)
Wed, 25 Mar 1998 20:53:02 -0600 (CST)

# To subscribers of the xforms list from Chris <cgagne@videon.wave.ca> :

I keep getting a segmentation fault in one point of a program I'm writing
using xforms v0.88 in Linux. The segmentation fault occurs when I call
any fl function that opens up a new window. Ex. I have a
fl_show_question("Are you sure you want to quit?",1); When the program
calls this function my program seg faults (sometimes) -- I can cause a
segmentation fault pretty much when I want.

I have a group of 3 radio buttons, and when a certain one (only one) is
selected and I hit the Quit button (seperate from the radio buttons of
course) which will call the fl_show_question(), it segfaults -- but
doesn't when either of the other 2 buttons are selected.

I saw a previous email in the archives but the only solution seemed to be
to comment it out, which won't be possible in my situation :). Here's the
backtrace from gdb when I get the seg fault..

Program received signal SIGSEGV, Segmentation fault.
0x4009f112 in _XrmInternalStringToQuark ()
(gdb) backtrace
#0 0x4009f112 in _XrmInternalStringToQuark ()
#1 0x400b9924 in XrmStringToQuarkList ()
#2 0x400bdd13 in XrmGetResource ()
#3 0x40030455 in fl_get_resource ()
#4 0x4003b4f7 in fl_parse_goodies_label ()
#5 0x4003b13f in fl_show_question ()
#6 0x80495bf in cb_Quit ()
#7 0x400281ac in fl_object_qread ()
#8 0x40036b25 in fl_do_forms ()
#9 0x804af82 in main ()
#10 0x8048bde in ___crt_dummy__ ()
(gdb)

I'd appreciate any ideas from anybody! Thanks,

Chris ..

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/