ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Segfault when a gnuplot graph is closed?


From: Atwood, Robert C
Subject: RE: Segfault when a gnuplot graph is closed?
Date: Tue, 25 Nov 2003 14:57:24 -0000

Dear Arnaud:

Here are some back traces. Another interesting phenomenon is that when
running in Valgrind, the segfault seems to ALWAYS occur, even if I click the
'continue' button only once,  whereas if I run within gdb or just normal
ddd, I have to try a few times before it happens, usually pushing the
'continue' button a number of times before trying the 'close' button on the
graph menu. 
"Heisenbug" indeed!

Thanks ,

--Robert

(version of the rpm-installed libX11.so)

[rcatwood hello]$ rpm -q -f /usr/X11R6/lib/libX11.so
XFree86-devel-4.1.0-25
[rcatwood hello]$ rpm -q -f /usr/X11R6/lib/libX11.so.6.2
XFree86-libs-4.1.0-25
[rcatwood hello]$ rpm -q XFree86
XFree86-4.1.0-25

>From gdb:

(gdb) run hello
Starting program: /usr/local/encap/ddd-3.3.8/bin/ddd hello

Program received signal SIGSEGV, Segmentation fault.
0x402f1319 in XGetGCValues () from /usr/X11R6/lib/libX11.so.6
Current language:  auto; currently c
(gdb) bt
#0  0x402f1319 in XGetGCValues () from /usr/X11R6/lib/libX11.so.6
#1  0x400d02f7 in set_values (old=0xbfffe8e0, request=0xbfffe5c0,
new_w=0x87e48b0, args=0xbfffec40, num_args=0xbfffe3c4)
    at SeparatoG.c:695
#2  0x40270299 in XtSetSensitive () from /usr/X11R6/lib/libXt.so.6
#3  0x402707a3 in XtSetValues () from /usr/X11R6/lib/libXt.so.6
#4  0x40270018 in XtGetSelectionParameters () from /usr/X11R6/lib/libXt.so.6
#5  0x40270054 in XtGetSelectionParameters () from /usr/X11R6/lib/libXt.so.6
#6  0x40270144 in XtSetSensitive () from /usr/X11R6/lib/libXt.so.6
#7  0x0816ba0b in popdown_plot_shell (plot=0x8807138) at plotter.C:644
#8  0x0816ba7f in CancelPlotCB (client_data=0x0) at plotter.C:680
#9  0x40250736 in XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6
#10 0x400ac3c6 in ButtonUp (w=0x8819d20, event=0xbffff060, params=0x0,
num_params=0x4028ea14) at PushB.c:1372
#11 0x4027f6c1 in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
#12 0x4027fb7c in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
#13 0x402800f7 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
#14 0x4025bdf8 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#15 0x4025c874 in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6
#16 0x4025cac7 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#17 0x080567a1 in process_next_event() () at ddd.C:3202
#18 0x0814c105 in ddd_main_loop() () at mainloop.C:106
#19 0x080566ec in main (argc=137763976, argv=0x8361c88) at ddd.C:3130
#20 0x405121f6 in __libc_start_main (main=0x80566c0 <main>, argc=2,
ubp_av=0xbffff1f4, init=0x804f5b0 <_init>,
    fini=0x8282eb0 <_fini>, rtld_fini=0x4000cfe8 <_dl_fini>,
stack_end=0xbffff1ec) at ../sysdeps/generic/libc-start.c:129
(gdb)


>From Valgrind:

==5011==    by 0x80567A0: process_next_event() (ddd.C:3202)
==5011==    by 0x814C104: ddd_main_loop() (mainloop.C:106)
==5011==    by 0x80566EB: main (ddd.C:3130)
==5011==    by 0x4073F1F5: __libc_start_main
(../sysdeps/generic/libc-start.c:129)
==5011==    by 0x80515A0: (within /usr/local/encap/ddd-3.3.8/bin/ddd)
==5011==
==5011== Use of uninitialised value of size 4
==5011==    at 0x4051E319: XGetGCValues (in /usr/X11R6/lib/libX11.so.6.2)
==5011==    by 0x402FD2F6: set_values (SeparatoG.c:695)
==5011==    by 0x4049E298: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E7A2: XtSetValues (in /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E017: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E053: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E143: XtSetSensitive (in /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x816BA0A: popdown_plot_shell(PlotWindowInfo*)
(plotter.C:644)
==5011==    by 0x816BA7E: CancelPlotCB(_WidgetRec*, void*, void*)
(plotter.C:680)
==5011==    by 0x4047E735: XtCallCallbackList (in
/usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x402D93C5: ButtonUp (PushB.c:1372)
==5011==    by 0x404AD6C0: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x404ADB7B: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x404AE0F6: _XtTranslateEvent (in
/usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x40489DF7: XtDispatchEventToWidget (in
/usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4048A873: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4048AAC6: XtDispatchEvent (in /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x80567A0: process_next_event() (ddd.C:3202)
==5011==    by 0x814C104: ddd_main_loop() (mainloop.C:106)
==5011==    by 0x80566EB: main (ddd.C:3130)
==5011==    by 0x4073F1F5: __libc_start_main
(../sysdeps/generic/libc-start.c:129)
==5011==    by 0x80515A0: (within /usr/local/encap/ddd-3.3.8/bin/ddd)
==5011==
==5011== Invalid read of size 4
==5011==    at 0x4051E319: XGetGCValues (in /usr/X11R6/lib/libX11.so.6.2)
==5011==    by 0x402FD2F6: set_values (SeparatoG.c:695)
==5011==    by 0x4049E298: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E7A2: XtSetValues (in /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E017: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E053: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4049E143: XtSetSensitive (in /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x816BA0A: popdown_plot_shell(PlotWindowInfo*)
(plotter.C:644)
==5011==    by 0x816BA7E: CancelPlotCB(_WidgetRec*, void*, void*)
(plotter.C:680)
==5011==    by 0x4047E735: XtCallCallbackList (in
/usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x402D93C5: ButtonUp (PushB.c:1372)
==5011==    by 0x404AD6C0: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x404ADB7B: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x404AE0F6: _XtTranslateEvent (in
/usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x40489DF7: XtDispatchEventToWidget (in
/usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4048A873: (within /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x4048AAC6: XtDispatchEvent (in /usr/X11R6/lib/libXt.so.6.0)
==5011==    by 0x80567A0: process_next_event() (ddd.C:3202)
==5011==    by 0x814C104: ddd_main_loop() (mainloop.C:106)
==5011==    by 0x80566EB: main (ddd.C:3130)
==5011==    by 0x4073F1F5: __libc_start_main
(../sysdeps/generic/libc-start.c:129)
==5011==    by 0x80515A0: (within /usr/local/encap/ddd-3.3.8/bin/ddd)
==5011==    Address 0x1D is not stack'd, malloc'd or free'd
Segmentation fault (core dumped)
==5011==
==5011== ERROR SUMMARY: 9696 errors from 77 contexts (suppressed: 14170 from
7)
==5011==
==5011== 1 errors in context 1 of 77:

-----Original Message-----
From: Arnaud Desitter [mailto:address@hidden 
Sent: 25 November 2003 13:50
To: Atwood, Robert C
Cc: address@hidden
Subject: Re: Segfault when a gnuplot graph is closed?


>Please use --num-callers=20 or so to get a longer stack trace. Thanks,



Attachment: valgrind-out-20callers.gz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]