From: Daan L. <da...@cs...> - 2004-11-13 13:26:08
|
Hi Benedikt, Thanks for your report, I'll have to read it more carefully tosee if it helps or not, but it is good to know where it goes wrong. Maybe I'll find it now. Anyway, you can easily compile with debugging information by editing the makefile. On line 637 you just add the gcc debug flags to the given flags in WXC-CXXFLAGS. Maybe you have to add some HCFLAGS too? (write HCFLAGS += ... somewhere after the include's in the makefile. The "wxcd" thing is just when you are using MS visual studio. -- Daan. ps. Let's take this discussion offline, I reconfigured my spam filter so I guess you can safely send me mail now :-) Benedikt Grundmann wrote: >Hello Daan, Hello List, > >I have some free time this weekend which I want to use to track down >this sigsev bug. Interestingly the bug does not appear that often >when running the Process.hs in a debugger. But most of the time it >does crash when I try to execute the unknown cmd `cmd' to times in a >row. I compiled process using ghc -debug -package wx --make Process.hs >gdb says: > >Starting program: /home/dreamer/programming/wxhaskell/wxhaskell-0.8/samples/wx/a.out >[Thread debugging using libthread_db enabled] >[New Thread 1090297408 (LWP 1826)] >Detaching after fork from child process 1829. >[New Thread 1100573616 (LWP 1830)] >[New Thread 1108962224 (LWP 1831)] >[Thread 1108962224 (zombie) exited] >[Thread 1100573616 (zombie) exited] >Detaching after fork from child process 1832. >[New Thread 1100573616 (LWP 1833)] >[New Thread 1108962224 (LWP 1834)] > >Program received signal SIGSEGV, Segmentation fault. >[Switching to Thread 1108962224 (LWP 1834)] >0x40221dd4 in wxInputSinkEvent::Read () from /usr/local/lib/libwxc-gtk2.4.2-0.8.so >(gdb) bt >#0 0x40221dd4 in wxInputSinkEvent::Read () from /usr/local/lib/libwxc-gtk2.4.2-0.8.so >#1 0x402219c9 in wxInputSink::Entry () from /usr/local/lib/libwxc-gtk2.4.2-0.8.so >#2 0x403fc446 in wxThreadInternal::PthreadStart () > from /usr/local/lib/libwxc-gtk2.4.2-0.8.so >#3 0x405cb9b4 in start_thread () from /lib/tls/libpthread.so.0 >#4 0x00000000 in ?? () >(gdb) > > >I don't know wether that is already helpfull to you or not. How do I compile >wxhaskell with full debugging information? I noticed that there is something >like wxcd in makefile.lib but there does not seem to be an accompanying >parameter in the configure script. > > >Cheers, > >Bene > > >PS: > >I originally intented not to write this email to the wxhaskell mailing list, as >I wasn't sure wether this email was interesting to it. And I had it only cc'ed to >Daniel Fischer (who happened to post another one of our problems yesterday evening >and is that colleque of mine I mentioned before). But I just had to realize that >your spam filter blocked my email. > > > > |