DWT Release 3.4-1

maelp mael.primet at gmail.com
Mon Aug 4 08:19:38 PDT 2008


32bit, last gtk version 1.2 / 2.0 of Ubuntu 7.10,
(I think 1.2.10 for Gtk 1.2)

backtrace :
Starting program: /home/primet/tmp/dwt-samples/examples/clipboard/ClipboardExample
[Thread debugging using libthread_db enabled]
[New Thread -1219475792 (LWP 12613)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219475792 (LWP 12613)]
0x00000001 in ?? ()
(gdb) backtrace
#0  0x00000001 in ?? ()
#1  0x080629e7 in _D3dwt6custom17ScrolledComposite17ScrolledComposite5_ctorMFC3dwt7widgets9Composite9CompositeiZC3dwt6custom17ScrolledComposite17ScrolledComposite13__anonclass6311handleEventMFC3dwt7widgets5Event5EventZv ()
#2  0x08116083 in _D3dwt7widgets10EventTable10EventTable9sendEventMFC3dwt7widgets5Event5EventZv ()
#3  0x0809e084 in _D3dwt7widgets6Widget6Widget9sendEventMFC3dwt7widgets5Event5EventZv ()
#4  0x0809e163 in _D3dwt7widgets6Widget6Widget9sendEventMFiC3dwt7widgets5Event5EventbZv ()
#5  0x0809e0ac in _D3dwt7widgets6Widget6Widget9sendEventMFiZv ()
#6  0x0808f207 in _D3dwt7widgets7Control7Control9setBoundsMFiiiibbZi ()
#7  0x080a6ca5 in _D3dwt7widgets9Composite9Composite9setBoundsMFiiiibbZi ()
#8  0x0808ec93 in _D3dwt7widgets7Control7Control9setBoundsMFC3dwt8graphics9Rectangle9RectangleZv ()
#9  0x080639cb in _D3dwt6custom23ScrolledCompositeLayout23ScrolledCompositeLayout6layoutMFC3dwt7widgets9Composite9CompositebZv ()
#10 0x080a72c2 in _D3dwt7widgets9Composite9Composite12updateLayoutMFbZv ()
#11 0x080a6cd6 in _D3dwt7widgets9Composite9Composite9setBoundsMFiiiibbZi ()
#12 0x0808ecdc in _D3dwt7widgets7Control7Control9setBoundsMFiiiiZv ()
#13 0x0808cf7d in _D3dwt6layout10FillLayout10FillLayout6layoutMFC3dwt7widgets9Composite9CompositebZv
    ()
#14 0x080a72c2 in _D3dwt7widgets9Composite9Composite12updateLayoutMFbZv ()
#15 0x080a1952 in _D3dwt7widgets5Shell5Shell12resizeBoundsMFiibZv ()
#16 0x080a1b6c in _D3dwt7widgets5Shell5Shell9setBoundsMFiiiibbZi ()
#17 0x0808f56e in _D3dwt7widgets7Control7Control7setSizeMFiiZv ()
#18 0x08054346 in _D8examples9clipboard16ClipboardExample16ClipboardExample4openMFC3dwt7widgets7Display7DisplayZv ()
#19 0xb74e7480 in ?? ()
#20 0xbf916050 in ?? ()
#21 0x080560a8 in _Dmain ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)


When I tried to investigate the bug, I think there's a problem when calling
        while (!shell.isDisposed ()) {
              if (!display.readAndDispatch ()) display.sleep ();
         }
I think it crashes right when it calls the shell.setSize(...) in the open( ... ) function of ClipboardExample. Couldn't trace efficiently the program since gdb is reluctant to load the D symbols for some reason I couldn't really get, so I just traced to where it crashed. 




Frank Benoit Wrote:

> maelp schrieb:
> > Here using last dmd and tango on ubuntu 7.10, it doesn't work (compilation works, but almost 
> > all samples segfault )
> > 
> >  
> 
> 32/64 bit OS?
> gtk version?
> can you get a stacktrace?
> 
> to get stacktrace you can use gdb or use Jive 
> http://downloads.dsource.org/projects/dwt/jive.zip



More information about the Digitalmars-d-announce mailing list