Re: XForms: Function causes segmentation fault

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 6 Jun 97 06:18:18 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> However, as I used fdesign to create the form, it generated a code
> that called fl_set_lstyle(obj,...). On my linux box, this causes a
> segmentation fault. Any known reason why?

Presumably you mean fl_set_object_lstyle(obj,...). It works for me
but I'm not running Linux.

I think we need more information.

Was it the first invocation of this function that does it or was is
somewhere later on?

What are the exact parameters?

Can you produce the core dump with only a single object in your form?

Can you get a traceback from a debugger?

Are there possibly any other, earlier versions of XForms lurking on
your system? You may possibly be picking up the wrong version of the
shared library if this is the case.

Are you certain you're running the version of XForms compatible with
your version of Linux? There are several flavors of Linux and
versions of XForms appropriate to each flavor. Although the problems
I've seen on this list respective to version mismatch generally result
in unresolved external references rather than core dumps, I suppose
that either is possible.

Those are the questions I'd ask myself.

spl
_________________________________________________
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/