my program crashed when displayed to a display which doesn't have enough
colors left. libXt crashes when it tries to display the warning. Note
that the DISPLAY is set to an hp-ux machine. I am not sure it makes a
difference,
though, just haven't had the time to test it on a sun DISPLAY.
sun> setenv DISPLAY hpux:0.0
sun> gdb ./Licences
> gdb ./Licences
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
[...]
(gdb) run
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...warning:
Lowest section in /usr/lib/libw.so.1 is .dynamic at 0x74
(no debugging symbols found)...(no debugging symbols found)...
[...]
(no debugging symbols found)...(no debugging symbols found)...
[New LWP 2 ]
[New LWP 3 ]
[ My comment:
I have no idea, why it starts threads here. This program doesn't
use threads, it's just linked with -lthreads. But this is not my
problem.
]
Warning: Cannot allocate colormap entry for "#c0c000"
Program received signal SIGSEGV, Segmentation fault.
0xef2a4674 in strlen ()
(gdb) bt
#0 0xef2a4674 in strlen ()
#1 0xef2da41c in _doprnt ()
#2 0xef2e3858 in snprintf ()
#3 0xef4aa47c in _XtDefaultWarningMsg ()
#4 0xef4aa6cc in XtAppWarningMsg ()
#5 0xef4a1d64 in _XtConvert ()
#6 0xef4bf760 in GetResources ()
#7 0xef4bff84 in _XtGetResources ()
#8 0xef4a6e50 in xtCreate ()
#9 0xef4a74c4 in _XtCreateWidget ()
#10 0xef4d9af4 in _XtVaCreateWidget ()
#11 0xef4d9ca8 in XtVaCreateManagedWidget ()
#12 0x28268 in __0fP_UxCapplWindow1G_buildv ()
#13 0x332b0 in __0fP_UxCapplWindow1T_create_applWindow1v ()
#14 0x3354c in __0FScreate_applWindow1P6K_WidgetRec ()
#15 0x1c6fc in main ()
P.S.: If I start the same program on hpux and display it
on the hpux-display I get the follwing output and no
crash:
Warning: Cannot allocate colormap entry for "#c0c000"
Warning: Cannot allocate colormap entry for "#e0e000"
Warning:
Name: scrolledWindowList2
Class: XmScrolledWindow
illegal value (180) for rep type XmRAttachment
ImageMagick - http://www.wizards.dupont.com/cristy/ImageMagick.html
--
________________________________________________________________________
Alan Coopersmith al...@godzilla.EECS.Berkeley.EDU
Univ. of California at Berkeley http://soar.Berkeley.EDU/~alanc/
aka: alanc@{CSUA,OCF,CS,BMRC,ucsee.eecs,cory.eecs,server}.Berkeley.EDU