Package: python2.7
Version: 2.7.8-1
Severity: normal

Run the following script:

def foo(): yield
gen = foo()
print gen.gi_frame.f_restricted
for i in gen: pass
print gen.gi_frame
gen = foo()
print gen.next()
print gen.gi_frame.f_restricted

Output:

False
None
None
[1]    <pid> segmentation fault  python segfault.py

(and echo $? => 139)

This is a bug because:

python shouldn't segfault :)

According to http://svn.python.org/view?revision=55301&view=revision and
https://pypi.python.org/pypi/pysandbox/ the restricted feature was removed in
python3.  I think that makes python2.* the correct packages to report against.
I could not reproduce the segfault with python2.6 version 2.6.8-2; this is why
I report specifically against python2.7.

Happy bug-hunting ;)

-- System Information:
Debian Release: jessie/sid
  APT prefers stable
  APT policy: (502, 'stable'), (499, 'testing'), (498, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python2.7 depends on:
ii  libpython2.7-stdlib  2.7.8-1
ii  mime-support         3.54
ii  python2.7-minimal    2.7.8-1

python2.7 recommends no packages.

Versions of packages python2.7 suggests:
ii  binutils       2.23.90.20131017-1
pn  python2.7-doc  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to