What you describe is very rare, that SIGSEV means nothing for me.

You don't need to create packages everytime you change something. If you
have modest sources under /home/mat/modest/modest/modest-3.1.18+0m5/
then you can just do a gdb src/modest from that directory. That will
work. BTW what options are you passing to autogen.sh ?

Normally for Maemo you should do something like

./autogen.sh --prefix=/usr/bin --with-platform=maemo --enable-debug

Br

modest.me...@spamgourmet.com escribiu:
> I guess I should back up a bit.  If this was a normal environment, I
> would download a tarball, run ./configure, then make, find where the
> binary got built, and then run gdb with that binary.  But that doesn't
> work under scratchbox:
> 
> [sbox-FREMANTLE_X86: ~/modest/modest/modest-3.1.18+0m5/src] > ./modest -s
> Segmentation fault (core dumped)
> [sbox-FREMANTLE_X86: ~/modest/modest/modest-3.1.18+0m5/src] >
> run-standalone.sh  ./modest
> /usr/bin/run-standalone.sh: line 11: 25690 Segmentation fault      (core
> dumped) "$@"
> [sbox-FREMANTLE_X86: ~/modest/modest/modest-3.1.18+0m5/src] >
> run-standalone.sh gdb ./modest
> GNU gdb (GDB) 6.8.50.20090417
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i686-pc-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> (gdb) run -s
> Starting program: /home/mat/modest/modest/modest-3.1.18+0m5/src/modest
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00828361 in __do_global_dtors_aux ()
> 0x00828361 <__do_global_dtors_aux+81>:    mov    (%eax),%edx
> 
> Why doesn't the compiled binary work?
> 
> So instead I'm doing the entire "dpkg-buildpackage -rfakeroot -uc -b -d"
> thing and installing the packages, then trying to debug those.  That's
> horribly inefficient (it has to rebuild from scratch every time, and do
> it in both normal and debug modes).  Is that really what I have to do?
> 
> _______________________________________________
> Modest-devel mailing list
> Modest-devel@garage.maemo.org
> https://garage.maemo.org/mailman/listinfo/modest-devel
> 

_______________________________________________
Modest-devel mailing list
Modest-devel@garage.maemo.org
https://garage.maemo.org/mailman/listinfo/modest-devel

Reply via email to