Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python interpreter command crashes with SIGSEGV #2

Open
mbudde opened this issue Mar 29, 2015 · 0 comments
Open

Python interpreter command crashes with SIGSEGV #2

mbudde opened this issue Mar 29, 2015 · 0 comments

Comments

@mbudde
Copy link
Owner

mbudde commented Mar 29, 2015

$ ledger python
Python 2.7.6 (default, Mar 22 2014, 23:03:41) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 2+2
Segmentation fault (core dumped)

Backtrace:

#0  0x00007ffff1bd5c15 in call_readline (sys_stdin=<optimized out>, sys_stdout=<optimized out>, prompt=<optimized out>)
    at /build/buildd/python2.7-2.7.6/Modules/readline.c:1117
#1  0x00007ffff5759500 in PyOS_Readline (sys_stdin=0x7ffff6b3b640 <_IO_2_1_stdin_>, sys_stdout=0x7ffff6b3b400 <_IO_2_1_stdout_>, 
    prompt=0x7ffff1de6144 ">>> ") at ../Parser/myreadline.c:207
#2  0x00007ffff57595c6 in tok_nextc.4536 (tok=tok@entry=0x76b690) at ../Parser/tokenizer.c:866
#3  0x00007ffff57488e8 in tok_get (p_end=0x7fffffffcb10, p_end@entry=0x100, p_start=0x7fffffffcb00, p_start@entry=0x8cc0, tok=0x76b690, tok@entry=0x0)
    at ../Parser/tokenizer.c:1212
#4  PyTokenizer_Get (tok=tok@entry=0x76b690, p_start=p_start@entry=0x7fffffffcb00, p_end=p_end@entry=0x7fffffffcb10) at ../Parser/tokenizer.c:1652
#5  0x00007ffff574968c in parsetok.2832 (tok=0x76b690, g=<optimized out>, start=start@entry=256, err_ret=err_ret@entry=0x7fffffffcb90, 
    flags=flags@entry=0x7fffffffcb70) at ../Parser/parsetok.c:159
#6  0x00007ffff5749a44 in PyParser_ParseFileFlagsEx (fp=<optimized out>, filename=filename@entry=0x7ffff5847114 "<stdin>", g=<optimized out>, 
    start=start@entry=256, ps1=ps1@entry=0x7ffff1de6144 ">>> ", ps2=ps2@entry=0x7ffff1de62c4 "... ", err_ret=err_ret@entry=0x7fffffffcb90, 
    flags=flags@entry=0x7fffffffcb70) at ../Parser/parsetok.c:106
#7  0x00007ffff5749af1 in PyParser_ASTFromFile (fp=fp@entry=0x7ffff6b3b640 <_IO_2_1_stdin_>, filename=filename@entry=0x7ffff5847114 "<stdin>", 
    start=start@entry=256, ps1=ps1@entry=0x7ffff1de6144 ">>> ", ps2=ps2@entry=0x7ffff1de62c4 "... ", flags=flags@entry=0x7fffffffcd00, 
    errcode=errcode@entry=0x7fffffffcc10, arena=arena@entry=0x76a610) at ../Python/pythonrun.c:1493
#8  0x00007ffff573a552 in PyRun_InteractiveOneFlags (fp=fp@entry=0x7ffff6b3b640 <_IO_2_1_stdin_>, filename=filename@entry=0x7ffff5847114 "<stdin>", 
    flags=flags@entry=0x7fffffffcd00) at ../Python/pythonrun.c:837
#9  0x00007ffff573a7de in PyRun_InteractiveLoopFlags (fp=fp@entry=0x7ffff6b3b640 <_IO_2_1_stdin_>, filename=filename@entry=0x7ffff5847114 "<stdin>", 
    flags=flags@entry=0x7fffffffcd00) at ../Python/pythonrun.c:777
#10 0x00007ffff57b4b6e in PyRun_AnyFileExFlags (fp=fp@entry=0x7ffff6b3b640 <_IO_2_1_stdin_>, filename=filename@entry=0x7ffff5847114 "<stdin>", 
    closeit=closeit@entry=0, flags=flags@entry=0x7fffffffcd00) at ../Python/pythonrun.c:746
#11 0x00007ffff57b59ef in Py_Main (argc=<optimized out>, argv=<optimized out>) at ../Modules/main.c:640
#12 0x00007ffff7ac2dc5 in ledger::python_interpreter_t::python_command (this=<optimized out>, args=...) at /tmp/buildd/ledger-3.1/src/pyinterp.cc:344
#13 0x00007ffff7ac5543 in operator() (a1=..., p=<optimized out>, this=<optimized out>) at /usr/include/boost/bind/mem_fn_template.hpp:165
#14 operator()<ledger::value_t, boost::_mfi::mf1<ledger::value_t, ledger::python_interpreter_t, ledger::call_scope_t&>, boost::_bi::list1<ledger::call_scope_t&> > (a=<synthetic pointer>, f=..., this=<optimized out>) at /usr/include/boost/bind/bind.hpp:303
#15 operator()<ledger::call_scope_t> (a1=..., this=<optimized out>) at /usr/include/boost/bind/bind_template.hpp:32
#16 boost::detail::function::function_obj_invoker1<boost::_bi::bind_t<ledger::value_t, boost::_mfi::mf1<ledger::value_t, ledger::python_interpreter_t, ledger::call_scope_t&>, boost::_bi::list2<boost::_bi::value<ledger::python_interpreter_t*>, boost::arg<1> > >, ledger::value_t, ledger::call_scope_t&>::invoke (function_obj_ptr=..., a0=...) at /usr/include/boost/function/function_template.hpp:132
#17 0x0000000000433206 in operator() (a0=..., this=0x7fffffffcf50) at /usr/include/boost/function/function_template.hpp:767
#18 ledger::global_scope_t::execute_command (this=this@entry=0x685fb0, args=..., at_repl=at_repl@entry=false)
    at /tmp/buildd/ledger-3.1/src/global.cc:260
#19 0x00000000004346c0 in ledger::global_scope_t::execute_command_wrapper (this=this@entry=0x685fb0, args=..., at_repl=at_repl@entry=false)
    at /tmp/buildd/ledger-3.1/src/global.cc:270
#20 0x00000000004290ee in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at /tmp/buildd/ledger-3.1/src/main.cc:121

ledger python file.py does not seem to be affected and neither does importing the ledger module in a normal Python interpreter session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant