ordereddict.c:807: dictresize: Assertion `newotablep != oldotablep' failed
Brought to you by:
anthon
I'm trying to build ruamel.ordereddict-0.4.9 on Gentoo using gcc-5.4.0 and python-2.7.12. The build itself goes fine, however the test suite fails with:
>>> Test phase: dev-python/ruamel-ordereddict-0.4.9
* python2_7: running distutils-r1_run_phase python_test
PYTHON=/usr/bin/python2.7
PYTHONPATH=/var/tmp/portage/dev-python/ruamel-ordereddict-0.4.9/work/ruamel.ordereddict-0.4.9-python2_7/lib
--> test_multiple_inserts_then_deletes python2.7: ordereddict.c:807: dictresize: Assertion `newotablep != oldotablep' failed.
/var/tmp/portage/dev-python/ruamel-ordereddict-0.4.9/temp/environment: line 2561: 28848 Aborted (core dumped) ${PYTHON} test/testordereddict.py
Here the kernel log from the dump:
Apr 30 19:47:35 localhost.localdomain systemd-coredump[28850]: Process 28848 (python2.7) of user 1000 dumped core.
Stack trace of thread 28848:
#0 0x00007f0a742a85f7 raise (libc.so.6)
#1 0x00007f0a742a9abd abort (libc.so.6)
#2 0x00007f0a742a14bd n/a (libc.so.6)
#3 0x00007f0a742a1582 __assert_fail (libc.so.6)
#4 0x00007f0a71e87813 dictresize (_ordereddict.so)
#5 0x00007f0a71e892ee dict_insert (_ordereddict.so)
#6 0x00007f0a7491d517 PyEval_EvalFrameEx (libpython2.7.so.1.0)
#7 0x00007f0a7491fd83 PyEval_EvalFrameEx (libpython2.7.so.1.0)
#8 0x00007f0a7491fd83 PyEval_EvalFrameEx (libpython2.7.so.1.0)
#9 0x00007f0a7492060a PyEval_EvalCodeEx (libpython2.7.so.1.0)
#10 0x00007f0a749206f9 PyEval_EvalCode (libpython2.7.so.1.0)
#11 0x00007f0a7493a82f n/a (libpython2.7.so.1.0)
#12 0x00007f0a7493baf2 PyRun_FileExFlags (libpython2.7.so.1.0)
#13 0x00007f0a7493cde7 PyRun_SimpleFileExFlags (libpython2.7.so.1.0)
#14 0x00007f0a7494ea3d Py_Main (libpython2.7.so.1.0)
#15 0x00007f0a74295890 __libc_start_main (libc.so.6)
#16 0x0000000000400759 _start (python2.7)
I'm not really sure where I should start searching for the issue. I found that Fedora is building and testing the same sources fine using gcc-7.0.1 and python-2.7.13 (see e.g. https://kojipkgs.fedoraproject.org//packages/python-ruamel-ordereddict/0.4.9/4.fc26/data/logs/x86_64/build.log)
I attached my build.log if you need more information. Anyone having a hint what is going wrong here?
(originally posted on 2017-04-30 at 19:10:38 by Reto Gantenbein <ganto82@bitbucket>)
(attachment: build.log)
(originally posted on 2017-04-30 at 22:25:38 by Reto Gantenbein <ganto82@bitbucket>)