Re: Crash in XtOpenDisplay
[email]zeecanvas@yahoo.com[/email] writes:
[color=blue]
> Core from signal SIGSEGV: Segmentation violation
> (dbx) where
> 0 strlen
> 1 GetDatabase
> 2 XrmPutLineResource
> 3 XtScreenDatabase
> 4 _XtDisplayInitialize
> 5 XtOpenDisplay
> 6 myapp_initialize
> 7 main
> 8 __start[/color]
Well, that is odd. In the xorg 6.9.0 source tree I have here,
GetDatabase (in xc/lib/X11/Xrm.c) calls strlen only on its second
parameter (str). The value of that parameter comes from the
second parameter (line) of XrmPutLineResource (in the same file).
XtScreenDatabase (in xc/lib/Xt/Initialize.c) calls that only in a
loop that stops when the parameter would become NULL. Thus, it
looks like the str parameter of GetDatabase is probably not NULL
but has rather been corrupted in some way... assuming SGI has
the same code in its libraries.
I suggest you find out the parameter values received by each
function on the call stack, and check whether they make sense.
I don't know how one does that with dbx, though.