kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
230 stars 37 forks source link

Components test crashes (segmentation fault) #212

Open badshah400 opened 4 years ago

badshah400 commented 4 years ago

The components test crashes when running the test-suite (note: PYTHONPATH is set up to point to buildroot/python_libdir before running cmake). It doesn't crash and actually succeeds when running on my real system (no buildroot, PYTHONPATH not additionally set).

[   79s] test 26
[   79s]       Start 26: components
[   79s]
[   79s] 26: Test command: /usr/bin/python3.8 "/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/cadabra2" "/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/tests/components.cdb"
[   79s] 26: Environment variables: 
[   79s] 26:  PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages:/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/libs/appdirs:/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/packages:/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core:/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/build/core/packages:/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/build/core/RelWithDebInfo:/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/tests
[   79s] 26:  LANG=en_US.UTF-8
[   79s] 26:  LC_ALL=en_US.UTF-8
[   79s] 26:  PYTHONIOENCODING=utf-8
[   79s] 26: Test timeout computed to be: 10000000
[   85s] 26/47 Test #26: components .......................***Exception: SegFault  6.26 sec
kpeeters commented 4 years ago

Can you run that test command directly, so

 /usr/bin/python3.8 "/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/cadabra2" "/home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/tests/components.cdb"

and post the output? (I can never figure out how to make ctest spit out all output of the code it is running; -VV doesn't do the trick).

badshah400 commented 4 years ago

So, I have to set PYTHONPATH manually again, but once I do that:

[   39s] + export PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages
[   39s] + PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages
[   39s] + /usr/bin/python3 core/cadabra2 tests/components.cdb
[   45s] /var/tmp/rpm-tmp.qvlpNV: line 30:  3800 Segmentation fault      /usr/bin/python3 core/cadabra2 tests/components.cdb

Not very verbose output there, either, sorry.

badshah400 commented 4 years ago

It's test number 28 in the components.cdb file. There are two of them defined and commenting out the test28() call ensures all the other tests in the file run successfully.

kpeeters commented 4 years ago

Can you try to cut-n-paste those lines from test28 (the 2nd one...) into cadabra2 and let me know where the thing segfaults?

badshah400 commented 4 years ago

I tried that: it does not crash on my system, only fails in the virtual machine when building the pkg. Narrowed it down to this one line:

evaluate(ex)

If I comment that out, the test succeeds even in the buildroot environment. I understand that is rather weird.

kpeeters commented 4 years ago

If you run with cadabra2 -d, it will run inside gdb, and drop you to the gdb prompt when it crashes. Can you get a backtrace with the bt command at that stage?

badshah400 commented 4 years ago

I get this, don't know if it helps:

[   48s] Program received signal SIGSEGV, Segmentation fault.
[   48s] 0x00007ffff73e5b73 in ?? ()
[   48s]    from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   48s] Missing separate debuginfos, use: zypper install libncurses6-debuginfo-6.2.20201010-9.1.x86_64
[   48s] (gdb) (gdb) The program being debugged has been started already.
[   48s] Start it from the beginning? (y or n) [answered Y; input not from terminal]
[   48s] Starting program: /usr/bin/python3.8 /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2 tests/components.cdb
[   48s] [Thread debugging using libthread_db enabled]
[   48s] Using host libthread_db library "/lib64/libthread_db.so.1".
[   49s] [Detaching after fork from child process 3897]
[   55s] 
[   55s] Program received signal SIGSEGV, Segmentation fault.
[   55s] 0x00007ffff73e5b73 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] (gdb) 
[   55s] Thread 1 (Thread 0x7ffff7936740 (LWP 3896)):
[   55s] #0  0x00007ffff73e5b73 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #1  0x00007ffff739e053 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #2  0x00007ffff73d7705 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #3  0x00007ffff738442c in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #4  0x00007ffff738ebfd in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #5  0x00007ffff743a8a6 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #6  0x00007ffff743f9c1 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #7  0x00007ffff7380396 in ?? () from /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages/cadabra2.so
[   55s] #8  0x00007ffff7da30aa in cfunction_call_varargs (func=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab0f0>, args=(<cadabra2.Ex at remote 0x7ffff26140b0>,), kwargs=0x0) at Objects/call.c:748
[   55s] #9  0x00007ffff7d9a307 in _PyObject_MakeTpCall (callable=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab0f0>, args=0x7ffff5794998, nargs=<optimized out>, keywords=0x0) at Objects/call.c:159
[   55s] #10 0x00007ffff7d9712c in _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff5794998, callable=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab0f0>) at ./Include/cpython/abstract.h:128
[   55s] #11 _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff5794998, callable=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab0f0>) at ./Include/cpython/abstract.h:118
[   55s] #12 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x55555555c6f0) at Python/ceval.c:4963
[   55s] #13 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:3500
[   55s] #14 0x00007ffff7d9fa4a in function_code_fastcall (co=<optimized out>, args=<optimized out>, nargs=0, globals=<optimized out>) at Objects/call.c:289
[   55s] #15 0x00007ffff7d92778 in _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x55555630b0c0, callable=<function at remote 0x7ffff266a430>) at ./Include/cpython/abstract.h:130
[   55s] #16 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x55555555c6f0) at Python/ceval.c:4963
[   55s] #17 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:3500
[   55s] #18 0x00007ffff7d912b4 in PyEval_EvalFrameEx (throwflag=0, f=Frame 0x55555630af50, for file tests/components.cdb, line 538, in <module> ()) at Python/ceval.c:741
[   55s] #19 _PyEval_EvalCodeWithName (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x0, kwcount=<optimized out>, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at Python/ceval.c:4298
[   55s] #20 0x00007ffff7d90f99 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kws=<optimized out>, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:4327
[   55s] #21 0x00007ffff7e113fb in PyEval_EvalCode (co=co@entry=<code at remote 0x7ffff2c7f5b0>, globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated)) at Python/ceval.c:718
[   55s] #22 0x00007ffff7e164bd in builtin_exec_impl (module=<optimized out>, locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), source=<code at remote 0x7ffff2c7f5b0>) at Python/bltinmodule.c:980
[   55s] #23 builtin_exec (module=<optimized out>, args=0x7ffff77ed5b8, nargs=<optimized out>) at Python/clinic/bltinmodule.c.h:396
[   55s] #24 0x00007ffff7d9fcba in cfunction_vectorcall_FASTCALL (func=<built-in method exec of module object at remote 0x7ffff786f090>, args=0x7ffff77ed5b8, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/methodobject.c:422
[   55s] #25 0x00007ffff7d92778 in _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff77ed5b8, callable=<built-in method exec of module object at remote 0x7ffff786f090>) at ./Include/cpython/abstract.h:130
[   55s] #26 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x55555555c6f0) at Python/ceval.c:4963
[   55s] #27 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:3500
[   55s] #28 0x00007ffff7d912b4 in PyEval_EvalFrameEx (throwflag=0, f=Frame 0x7ffff77ed440, for file /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2, line 256, in <module> ()) at Python/ceval.c:741
[   55s] #29 _PyEval_EvalCodeWithName (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x0, kwcount=<optimized out>, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at Python/ceval.c:4298
[   55s] #30 0x00007ffff7d90f99 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kws=<optimized out>, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:4327
[   55s] #31 0x00007ffff7e113fb in PyEval_EvalCode (co=co@entry=<code at remote 0x7ffff771b660>, globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated)) at Python/ceval.c:718
[   55s] #32 0x00007ffff7e1bff8 in run_eval_code_obj (co=0x7ffff771b660, globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated)) at Python/pythonrun.c:1125
[   55s] #33 0x00007ffff7e169a3 in run_mod (mod=<optimized out>, filename=<optimized out>, globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1147
[   55s] #34 0x00007ffff7d10b3e in PyRun_FileExFlags (fp=0x555555559340, filename_str=<optimized out>, start=<optimized out>, globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844910>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815310>, 'InteractiveConsole': <type at remote 0x55555563fa20>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7643180>, 'readline': <module at remote 0x7ffff7638720>, 'rlcompleter': <module at remote 0x7ffff7694d10>, 'os': <module at remote 0x7ffff781e180>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), closeit=1, flags=0x7fffffffd2d8) at Python/pythonrun.c:1063
[   55s] #35 0x00007ffff7d10625 in PyRun_SimpleFileExFlags (fp=0x555555559340, filename=0x7ffff776ec90 "/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2", closeit=1, flags=0x7fffffffd2d8) at Python/pythonrun.c:428
[   55s] #36 0x00007ffff7e28d3a in pymain_run_file (cf=0x7fffffffd2d8, config=0x55555555bab0) at Modules/main.c:381
[   55s] #37 pymain_run_python (exitcode=0x7fffffffd2d0) at Modules/main.c:606
[   55s] #38 Py_RunMain () at Modules/main.c:685
[   55s] #39 0x00007ffff7e04a19 in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:739
[   55s] #40 0x00007ffff7ad3e0a in __libc_start_main (main=0x555555555140 <main>, argc=3, argv=0x7fffffffd4e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd4d8) at ../csu/libc-start.c:314
[   55s] #41 0x000055555555507a in _start () at ../sysdeps/x86_64/start.S:120
[   55s] (gdb) A debugging session is active.
[   55s] 
[   55s]    Inferior 1 [process 3896] will be killed.
kpeeters commented 4 years ago

It looks like all debug info was stripped from cadabra2.so, (the first 7 entries in that stack trace point to that module but give no further info).

badshah400 commented 4 years ago

Sorry, that's because I forgot to set the python path to the cadabra.so in the build dir before running the command and it uses the installed cadabra.so (which is indeed stripped). Here is the correct one:

Program received signal SIGSEGV, Segmentation fault.
cadabra::evaluate::unwrap_scalar_in_components_node (it=..., this=0x7fffffffc540) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/algorithms/evaluate.cc:1108
1108            if(*sib->name=="\\components") {
(gdb) 
Thread 1 (Thread 0x7ffff7936740 (LWP 3892)):
#0  cadabra::evaluate::unwrap_scalar_in_components_node (it=..., this=0x7fffffffc540) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/algorithms/evaluate.cc:1108
#1  operator() (walk=..., __closure=<optimized out>) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/algorithms/evaluate.cc:65
#2  std::__invoke_impl<tree<cadabra::str_node>::pre_order_iterator, cadabra::evaluate::apply(cadabra::Algorithm::iterator&)::<lambda(tree<cadabra::str_node>::iterator)>&, tree<cadabra::str_node>::pre_order_iterator> (__f=...) at /usr/include/c++/10/bits/invoke.h:60
#3  std::__invoke_r<tree<cadabra::str_node>::pre_order_iterator, cadabra::evaluate::apply(cadabra::Algorithm::iterator&)::<lambda(tree<cadabra::str_node>::iterator)>&, tree<cadabra::str_node>::pre_order_iterator> (__fn=...) at /usr/include/c++/10/bits/invoke.h:141
#4  std::_Function_handler<tree<cadabra::str_node>::pre_order_iterator(tree<cadabra::str_node>::pre_order_iterator), cadabra::evaluate::apply(cadabra::Algorithm::iterator&)::<lambda(tree<cadabra::str_node>::iterator)> >::_M_invoke(const std::_Any_data &, tree<cadabra::str_node, std::allocator<tree_node_<cadabra::str_node> > >::pre_order_iterator &&) (__functor=..., __args#0=...) at /usr/include/c++/10/bits/std_function.h:291
#5  0x00007ffff739e053 in std::function<tree<cadabra::str_node, std::allocator<tree_node_<cadabra::str_node> > >::pre_order_iterator (tree<cadabra::str_node, std::allocator<tree_node_<cadabra::str_node> > >::pre_order_iterator)>::operator()(tree<cadabra::str_node, std::allocator<tree_node_<cadabra::str_node> > >::pre_order_iterator) const (__args#0=..., this=0x7fffffffc310) at /usr/include/c++/10/bits/std_function.h:617
#6  cadabra::do_subtree<cadabra::Ex>(cadabra::Ex const&, cadabra::Ex::iterator, std::function<cadabra::Ex::iterator (cadabra::Ex::iterator)>) (tr=..., it=..., f=...) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/Functional.hh:67
#7  0x00007ffff73d7705 in cadabra::evaluate::apply (this=0x7fffffffc540, it=...) at /usr/include/c++/10/new:175
#8  0x00007ffff738442c in cadabra::Algorithm::apply_once (this=this@entry=0x7fffffffc540, it=...) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/Algorithm.cc:202
#9  0x00007ffff738ebfd in cadabra::Algorithm::apply_generic (this=0x7fffffffc540, it=..., deep=false, repeat=false, depth=0) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/Algorithm.cc:149
#10 0x00007ffff743a8a6 in cadabra::apply_algo_base<cadabra::evaluate> (pre_order=false, depth=0, repeat=false, deep=false, ex=..., algo=...) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/Algorithm.cc:65
#11 cadabra::apply_algo<cadabra::evaluate, cadabra::Ex, bool, bool> (ex=..., arg1=..., arg2=<optimized out>, arg3=<optimized out>, deep=<optimized out>, repeat=false, depth=0) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/core/pythoncdb/py_algorithms.hh:59
#12 0x00007ffff743f9c1 in pybind11::cpp_function::initialize<std::shared_ptr<cadabra::Ex> (*&)(std::shared_ptr<cadabra::Ex>, cadabra::Ex, bool, bool, bool, bool, unsigned int), std::shared_ptr<cadabra::Ex>, std::shared_ptr<cadabra::Ex>, cadabra::Ex, bool, bool, bool, bool, unsigned int, pybind11::name, pybind11::scope, pybind11::sibling, pybind11::arg, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::arg_v, pybind11::doc, pybind11::return_value_policy>(std::shared_ptr<cadabra::Ex> (*&)(std::shared_ptr<cadabra::Ex>, cadabra::Ex, bool, bool, bool, bool, unsigned int), std::shared_ptr<cadabra::Ex> (*)(std::shared_ptr<cadabra::Ex>, cadabra::Ex, bool, bool, bool, bool, unsigned int), pybind11::name const&, pybind11::scope const&, pybind11::sibling const&, pybind11::arg const&, pybind11::arg_v const&, pybind11::arg_v const&, pybind11::arg_v const&, pybind11::arg_v const&, pybind11::arg_v const&, pybind11::arg_v const&, pybind11::doc const&, pybind11::return_value_policy const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call&) () at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/libs/pybind11/include/pybind11/cast.h:2010
#13 0x00007ffff7380396 in pybind11::cpp_function::dispatcher (self=<optimized out>, args_in=(<cadabra2.Ex at remote 0x7ffff2a805f0>,), kwargs_in=0x0) at /home/abuild/rpmbuild/BUILD/cadabra2-2.3.2/libs/pybind11/include/pybind11/pybind11.h:717
#14 0x00007ffff7da30aa in cfunction_call_varargs (func=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab120>, args=(<cadabra2.Ex at remote 0x7ffff2a805f0>,), kwargs=0x0) at Objects/call.c:748
#15 0x00007ffff7d9a307 in _PyObject_MakeTpCall (callable=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab120>, args=0x7ffff5792f68, nargs=<optimized out>, keywords=0x0) at Objects/call.c:159
#16 0x00007ffff7d9712c in _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff5792f68, callable=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab120>) at ./Include/cpython/abstract.h:128
#17 _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff5792f68, callable=<built-in method evaluate of PyCapsule object at remote 0x7ffff76ab120>) at ./Include/cpython/abstract.h:118
#18 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x55555555ca90) at Python/ceval.c:4963
#19 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:3500
#20 0x00007ffff7d9fa4a in function_code_fastcall (co=<optimized out>, args=<optimized out>, nargs=0, globals=<optimized out>) at Objects/call.c:289
#21 0x00007ffff7d92778 in _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x55555630a240, callable=<function at remote 0x7ffff278ce50>) at ./Include/cpython/abstract.h:130
#22 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x55555555ca90) at Python/ceval.c:4963
#23 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:3500
#24 0x00007ffff7d912b4 in PyEval_EvalFrameEx (throwflag=0, f=Frame 0x55555630a0d0, for file tests/components.cdb, line 538, in <module> ()) at Python/ceval.c:741
#25 _PyEval_EvalCodeWithName (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x0, kwcount=<optimized out>, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at Python/ceval.c:4298
#26 0x00007ffff7d90f99 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kws=<optimized out>, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:4327
#27 0x00007ffff7e113fb in PyEval_EvalCode (co=co@entry=<code at remote 0x7ffff2c7f5b0>, globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated)) at Python/ceval.c:718
#28 0x00007ffff7e164bd in builtin_exec_impl (module=<optimized out>, locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), source=<code at remote 0x7ffff2c7f5b0>) at Python/bltinmodule.c:980
#29 builtin_exec (module=<optimized out>, args=0x7ffff77e57b8, nargs=<optimized out>) at Python/clinic/bltinmodule.c.h:396
#30 0x00007ffff7d9fcba in cfunction_vectorcall_FASTCALL (func=<built-in method exec of module object at remote 0x7ffff786f090>, args=0x7ffff77e57b8, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/methodobject.c:422
#31 0x00007ffff7d92778 in _PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff77e57b8, callable=<built-in method exec of module object at remote 0x7ffff786f090>) at ./Include/cpython/abstract.h:130
#32 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x55555555ca90) at Python/ceval.c:4963
#33 _PyEval_EvalFrameDefault (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:3500
#34 0x00007ffff7d912b4 in PyEval_EvalFrameEx (throwflag=0, f=Frame 0x7ffff77e5640, for file /home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2, line 256, in <module> ()) at Python/ceval.c:741
#35 _PyEval_EvalCodeWithName (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=0x0, kwargs=0x0, kwcount=<optimized out>, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at Python/ceval.c:4298
#36 0x00007ffff7d90f99 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kws=<optimized out>, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:4327
#37 0x00007ffff7e113fb in PyEval_EvalCode (co=co@entry=<code at remote 0x7ffff771d5b0>, globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated)) at Python/ceval.c:718
#38 0x00007ffff7e1bff8 in run_eval_code_obj (co=0x7ffff771d5b0, globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated)) at Python/pythonrun.c:1125
#39 0x00007ffff7e169a3 in run_mod (mod=<optimized out>, filename=<optimized out>, globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1147
#40 0x00007ffff7d10b3e in PyRun_FileExFlags (fp=0x555555559340, filename_str=<optimized out>, start=<optimized out>, globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2') at remote 0x7ffff7844940>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff786f090>, '__file__': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2', '__cached__': None, 'sys': <module at remote 0x7ffff7864e00>, 'site': <module at remote 0x7ffff7815400>, 'InteractiveConsole': <type at remote 0x55555563f420>, 'code': <code at remote 0x7ffff6f17660>, 're': <module at remote 0x7ffff7644270>, 'readline': <module at remote 0x7ffff763c810>, 'rlcompleter': <module at remote 0x7ffff7694e00>, 'os': <module at remote 0x7ffff781e270>, 'install_prefix': '/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/lib64/python3.8/site-packages', 'init_ipython': <built-in method init_ipython of PyCapsule object at remote 0x7ffff76939c0>, 'compile_package__': <built-in method co...(truncated), closeit=1, flags=0x7fffffffd278) at Python/pythonrun.c:1063
#41 0x00007ffff7d10625 in PyRun_SimpleFileExFlags (fp=0x555555559340, filename=0x7ffff7773d70 "/home/abuild/rpmbuild/BUILDROOT/cadabra2-2.3.2-0.x86_64/usr/bin/cadabra2", closeit=1, flags=0x7fffffffd278) at Python/pythonrun.c:428
#42 0x00007ffff7e28d3a in pymain_run_file (cf=0x7fffffffd278, config=0x55555555bd60) at Modules/main.c:381
#43 pymain_run_python (exitcode=0x7fffffffd270) at Modules/main.c:606
#44 Py_RunMain () at Modules/main.c:685
#45 0x00007ffff7e04a19 in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:739
#46 0x00007ffff7ad3e0a in __libc_start_main (main=0x555555555140 <main>, argc=3, argv=0x7fffffffd488, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd478) at ../csu/libc-start.c:314
#47 0x000055555555507a in _start () at ../sysdeps/x86_64/start.S:120
(gdb) A debugging session is active.

    Inferior 1 [process 3892] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]