[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-10-08 Thread Julien Palard
Julien Palard added the comment: I tried again with the same version of pip and cffi on cpython 2.7.16 (no 13, I have no VM atm to compile a 2.7.13) but no segfault this time. -- ___ Python tracker

[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-10-08 Thread STINNER Victor
STINNER Victor added the comment: > Julien: I'm working on enhancement of debug traces on visit_decref(). Are you > still able to reproduce the crash in 2019? I asked him on IRC. No, he cannot reproduce the bug anymore. -- ___ Python tracker

[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: Julien: I'm working on enhancement of debug traces on visit_decref(). Are you still able to reproduce the crash in 2019? I failed to reproduce the bug in a virtual environment with: * Python 2.7.14 * pip 8.1.2 * cffi 1.7.0 $ virtualenv -p python2 venv Runni

[issue27542] Segfault in gcmodule.c:360 visit_decref

2019-01-20 Thread tjh
tjh added the comment: If you're here looking for a solution, deleting previously installed deps helped me. In my case this was: $ rm -rf ~/.local/lib/python2.7/site-packages/ # path may differ depending where you install these $ pip install cffi -- nosy: +tjh

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-11-11 Thread Lee Garrett
Lee Garrett added the comment: In case someone reaches this bug report via search engine: apt-get remove python-cffi-backend fixed this problem for me. -- nosy: +lgarrett ___ Python tracker __

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-18 Thread Ned Deily
Ned Deily added the comment: IMO, there are too many possible scenarios here where a segfault could be caused by the Debian patches, by pip, by wheel, or by cffi - too many to assume a CPython problem. FWIW, I am unable to reproduce the segfault on a pretty current Debian testing system using

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-18 Thread Julien
Julien added the comment: At cffi they thinks the bug may be from cpython or pip, as ``` $ python -m pip install --user cffi Collecting cffi Using cached cffi-1.7.0-cp27-cp27mu-manylinux1_x86_64.whl Collecting pycparser (from cffi) Installing collected packages: pycparser, cffi Successfully in

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
Julien added the comment: CFFI issue, like for the record: https://bitbucket.org/cffi/cffi/issues/272/segfault-while-installing-via-pip -- ___ Python tracker ___ ___

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Ned Deily
Ned Deily added the comment: Thanks for trying! Perhaps the first thing to do is to check with the cffi project; perhaps Armin will recognize something. I'm going to mark this issue as "closed" but feel free to re-open it if a problem with Python turns up. -- resolution: -> third pa

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Stefan Krah
Stefan Krah added the comment: Which makes me think that --no-use-wheel should be the default in pip ... As a Linux user I'm *very* uneasy about this whole binary wheel thing. -- nosy: +skrah ___ Python tracker __

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
Julien added the comment: @ned Oh ok. I just tried, with `--no-use-wheel`: no segfault. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Ned Deily
Ned Deily added the comment: It would still be interesting to know whether you see the same behavior with building from source. If a cffi extension module is invoked during the install process, it might screw things up. Otherwise, unless you can reproduce the problem with a vanilla Python 2.

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
Julien added the comment: @Ned Despite the segfault, cffi installs well, the segfault occurs during a garbage collect, very late, inside Py_Exit according to the backtrace, so it has no impact. > What platform are you on and what is the source of the Python 2.7 Debian stretch, python (and so

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Ned Deily
Ned Deily added the comment: Try installing cffi from source rather than using the pre-compiled wheel: python -m pip uninstall cffi python -m pip install -v --no-use-wheel --user cffi If that works, there could be an incompatibility between the Python 2.7.12 you are using and the C extensions

[issue27542] Segfault in gcmodule.c:360 visit_decref

2016-07-17 Thread Julien
New submission from Julien: Was running `python -m pip install ansible` when I got a "segmentation fault". bt is: (gdb) bt #0 0x004a7ec4 in visit_decref () at ../Modules/gcmodule.c:360 #1 0x004a7fa9 in dict_traverse () at ../Objects/dictobject.c:2144 #2 0x004a6f88 in