Re: XForms: problems with fl_get_choice_text

Steve Lamont (
Thu, 6 Nov 97 06:45:38 PST

To subscribers of the xforms list from (Steve Lamont) :

> I just have no idea what could cause that behaviour. I see no
> relation between that pressed key and the pointer. "I feel so
> stupid!"

Do you have some other event handler registered?

> >In any case, it looks as if you're walking on something.
> Sorry, don't know that expression. Walk on a bug or on bad programming style
> or .....

Sorry, I should watch my jargon and slang and remember that this is an
international list. What I meant was that you've probably either got
a bad array index somewhere that's going beyond the end of an array
and causing the program to write where it isn't intended to write or
you are perhaps referencing a bad pointer -- perhaps you've done a
free() somewhere but are still inadvertently using the now invalidated

> >Where does the core dump occur? Can you do a traceback with a
> >debugger (the gdb `where' command will do this).
> Sorry I get no core dumped. Can I force the program to do so? Or what does it
> mean when core is dumped or not? (fatal error <-> bad error)

There's no `core' file produced? What kind of system are you on?
Some versions of Unix have a `limit' command in the shell. It should
reward you with something which looks like

pitstop:spl> limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize unlimited
memoryuse unlimited
descriptors 64

If `coredumpsize' is 0, then you won't get a `core' file. Issue

limit coredumpsize unlimited

if you want `core' files.

Alternatively, run your program from within your debugger. Refer to
your system's manual pages for instructions. With a good debugger you
can set "watch points" to cause the program to stop at the exact point
a variable is modified. You should, of course, compile the program
with all optimization turned off and with debugging symbols turned
on. Again, refer to your manual pages for details.

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: