Crash on unsaved changes dialog
Brought to you by:
aermartin
xpaint-2.10.1 reliably segfaults on OpenBSD. The process is:
Backtrace:
(gdb) bt
#0 0x00001c9cb9819fa5 in AlertBox (parent=0x1c9f05347400,
msg=0x1c9ecf0c1140 "There are unsaved changes,\nare you sure you wish to qui
t?", okProc=0x1c9cb9857110 <exitOkCallback>,
nokProc=0x1c9cb9857120 <exitCancelCallback>, data=0x0) at dialog.c:91
#1 0x00001c9cb985707e in exitPaint (w=0x1c9f05347400, junk=<optimized out>,
junk2=<optimized out>) at operation.c:597
#2 0x00001c9f6104117d in XtCallCallbacks () from /usr/X11R6/lib/libXt.so.11.0
#3 0x00001c9f6107bb2e in HandleActions () from /usr/X11R6/lib/libXt.so.11.0
#4 0x00001c9f610799a0 in HandleSimpleState ()
from /usr/X11R6/lib/libXt.so.11.0
#5 0x00001c9f61079321 in _XtTranslateEvent ()
from /usr/X11R6/lib/libXt.so.11.0
#6 0x00001c9f6104f7d4 in XtDispatchEventToWidget ()
from /usr/X11R6/lib/libXt.so.11.0
#7 0x00001c9f61050123 in _XtDefaultDispatcher ()
from /usr/X11R6/lib/libXt.so.11.0
#8 0x00001c9f6104fbe2 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.11.0
#9 0x00001c9cb9853e8f in main (argc=1, argv=0x7f7ffffdcc28) at main.c:1178
In Debian this fault got reported and contains some more details.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997040#10