After having compiled without opt (that is with debug), I get :

$ gdb ./ledger 
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/thierry/ledger/ledger...done.
(gdb) run python
Starting program: /home/thierry/ledger/ledger python
[Thread debugging using libthread_db enabled]
Python 2.7.2+ (default, Oct  4 2011, 20:41:12) 
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> dir(ledger)
>>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'ledger' is not defined

>>> bt
>>> 
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff22492f1 in ?? () from /usr/lib/python2.7/lib-dynload/readline.so
(gdb) 


Thierry

On Saturday, March 17, 2012 3:36:26 AM UTC+1, John Wiegley wrote:
>
> >>>>> Jim Robinson <[email protected]> 
> writes:
>
> > On Friday, March 16, 2012 4:52:35 PM UTC-7, thierry wrote:
> >     I am on Ubuntu 11.10, and I got seg fault. How I can help digging 
> into
> >     this?  Thierry
>    
> >     $ ledger python ./python/demo.py Welcome to the Ledger.Python demo!
> >     Demo completed successfully.  $ ledger python Python 2.7.2+ (default,
> >     Oct 4 2011, 20:41:12)
>
> Try "gdb ledger", then 'run python', then type dir(ledger) into the prompt,
> then see if you can get a stack trace.
>
> > How did you get the boost libraries?  Did you build it yourself, or did 
> it
> > come pre-packaged?
>
> I build Boost via MacPorts for optimized builds, and myself for debug 
> builds.
>
> John
>
>

Reply via email to