Skip to content

Instantly share code, notes, and snippets.

@smoh
Created July 15, 2019 10:43
Show Gist options
  • Save smoh/0e803684b14d87bba4a97e5bb3e33bb0 to your computer and use it in GitHub Desktop.
Save smoh/0e803684b14d87bba4a97e5bb3e33bb0 to your computer and use it in GitHub Desktop.
gala segfaulting
$ python gala-problem.py
WARNING: AstropyDeprecationWarning: astropy.extern.six will be removed in 4.0, use the six module directly if it is st
ill needed [astropy.extern.six]
*** Error in `python': free(): invalid next size (fast): 0x0000555c78c8c260 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81609)[0x7fd7dcaa7609]
/home/soh/.conda/envs/gala-test/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-x86_64-linux-gnu.
so(+0x28d10)[0x7fd7d5864d10]
/home/soh/.conda/envs/gala-test/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-x86_64-linux-gnu.
so(+0x2c4e5)[0x7fd7d58684e5]
/home/soh/.conda/envs/gala-test/lib/python3.7/site-packages/gala/potential/potential/cpotential.cpython-37m-x86_64-lin
ux-gnu.so(+0xd1d4)[0x7fd6f3ed31d4]
/home/soh/.conda/envs/gala-test/lib/python3.7/site-packages/gala/potential/potential/cpotential.cpython-37m-x86_64-lin
ux-gnu.so(+0x2d18c)[0x7fd6f3ef318c]
/home/soh/.conda/envs/gala-test/lib/python3.7/site-packages/gala/potential/potential/cpotential.cpython-37m-x86_64-lin
ux-gnu.so(+0x2e6ba)[0x7fd6f3ef46ba]
python(PyCFunction_Call+0x65)[0x555c77850f85]
/home/soh/.conda/envs/gala-test/lib/python3.7/site-packages/gala/potential/potential/cpotential.cpython-37m-x86_64-lin
ux-gnu.so(+0x118bd)[0x7fd6f3ed78bd]
python(_PyObject_FastCallKeywords+0x3fb)[0x555c7788916b]
python(_PyEval_EvalFrameDefault+0x5866)[0x555c778ee956]
python(_PyEval_EvalCodeWithName+0x2f9)[0x555c7782e929]
python(_PyFunction_FastCallKeywords+0x325)[0x555c7787ff25]
python(_PyEval_EvalFrameDefault+0x6f0)[0x555c778e97e0]
python(_PyEval_EvalCodeWithName+0x2f9)[0x555c7782e929]
python(PyEval_EvalCodeEx+0x44)[0x555c7782f7e4]
python(PyEval_EvalCode+0x1c)[0x555c7782f80c]
python(+0x22fac4)[0x555c77947ac4]
python(PyRun_FileExFlags+0xa1)[0x555c77951db1]
python(PyRun_SimpleFileExFlags+0x1c3)[0x555c77951fa3]
python(+0x23b0bf)[0x555c779530bf]
python(_Py_UnixMain+0x3c)[0x555c779531dc]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fd7dca48495]
python(+0x1e0d3d)[0x555c778f8d3d]
======= Memory map: ========
555c77718000-555c77773000 r--p 00000000 00:31 197816652835 /data/soh/.conda/envs/gala-test/bin/python3.7
555c77773000-555c77954000 r-xp 0005b000 00:31 197816652835 /data/soh/.conda/envs/gala-test/bin/python3.7
555c77954000-555c779fb000 r--p 0023c000 00:31 197816652835 /data/soh/.conda/envs/gala-test/bin/python3.7
555c779fc000-555c779ff000 r--p 002e3000 00:31 197816652835 /data/soh/.conda/envs/gala-test/bin/python3.7
555c779ff000-555c77a68000 rw-p 002e6000 00:31 197816652835 /data/soh/.conda/envs/gala-test/bin/python3.7
555c77a68000-555c77a89000 rw-p 00000000 00:00 0
555c78160000-555c7935a000 rw-p 00000000 00:00 0 [heap]
7fd6ec000000-7fd6ec021000 rw-p 00000000 00:00 0
7fd6ec021000-7fd6f0000000 ---p 00000000 00:00 0
7fd6f39fa000-7fd6f39fc000 r--p 00000000 00:31 147518365751 /data/soh/.conda/envs/gala-test/lib/python3.7
/site-packages/gala/_cconfig.cpython-37m-x86_64-linux-gnu.so
7fd6f39fc000-7fd6f39fd000 r-xp 00002000 00:31 147518365751 /data/soh/.conda/envs/gala-test/lib/python3.7
/site-packages/gala/_cconfig.cpython-37m-x86_64-linux-gnu.so
7fd6f39fd000-7fd6f39fe000 r--p 00003000 00:31 147518365751 /data/soh/.conda/envs/gala-test/lib/python3.7
/site-packages/gala/_cconfig.cpython-37m-x86_64-linux-gnu.so
7fd6f39fe000-7fd6f39ff000 r--p 00003000 00:31 147518365751 /data/soh/.conda/envs/gala-test/lib/python3.7
/site-packages/gala/_cconfig.cpython-37m-x86_64-linux-gnu.so
....
➜ python gala-problem.py
WARNING: AstropyDeprecationWarning: astropy.extern.six will be removed in 4.0, use the six module directly if it is still needed [astropy.extern.six]
assign hessian to a
python(55731,0x103dd85c0) malloc: Incorrect checksum for freed object 0x7ff2e47cc3f0: probably modified after being freed.
Corrupt value: 0xac5fe4d194f1580c
python(55731,0x103dd85c0) malloc: *** set a breakpoint in malloc_error_break to debug
[1] 55731 abort python gala-problem.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment