[issue17105] Python 3.2 segfault

2013-02-02 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17105] Python 3.2 segfault

2013-02-02 Thread Stefan Krah

Stefan Krah added the comment:

Thanks for testing. The problem with the Ubuntu Python

  "Python 3.2 (r32:88445, Oct 20 2012, 14:09:50)"

is that it seems to be a patched 3.2.0, while we're already at 3.2.3.


So it might be worth reporting this issue to Ubuntu.

--
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17105] Python 3.2 segfault

2013-02-02 Thread Damian

Damian added the comment:

Thanks. I snagged the 3.3 tarball from 'http://www.python.org/download/' after 
your first comment. Compilation just finished and it works there...

atagar@morrigan:~$ ~/Desktop/Python-3.3.0/python --version
Python 3.3.0
atagar@morrigan:~$ ~/Desktop/Python-3.3.0/python demo.py 

*sigh*

Feel free to resolve this ticket.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17105] Python 3.2 segfault

2013-02-02 Thread Stefan Krah

Stefan Krah added the comment:

IOW, my advice is to get Python 3.3 from hg.python.org and see if
you can reproduce the issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17105] Python 3.2 segfault

2013-02-02 Thread Stefan Krah

Stefan Krah added the comment:

Thanks for the report. I cannot reproduce it with the latest 3.2 version.
Perhaps the version shipped with Ubuntu 11.04 has this problem.

--
nosy: +doko, skrah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17105] Python 3.2 segfault

2013-02-02 Thread Damian

New submission from Damian:

Hi. While porting a library of mine (https://stem.torproject.org/) to python 3 
I've been reliably encountering a python segmentation fault while running its 
integration tests. After many hours of head scratching I've narrowed the repro 
to the following script...



import queue
import socket

class Demo(object):
  def __init__(self, control_socket_file):
demo_queue = queue.Queue()

try:
  raise ValueError()
except ValueError as exc:
  demo_queue.put(exc)

for i in range(20):
  control_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  control_socket.connect(("www.google.com", 80))
  control_socket_file = control_socket.makefile(mode = "rw", newline = "") 

  Demo(control_socket_file)



atagar@morrigan:~$ python3 --version
Python 3.2
atagar@morrigan:~$ python3 demo.py 
Segmentation fault



Yes, I realise that the script is stupidly convoluted but it was the minimal 
amount of code I could get to in order to reproduce the problem. Some things to 
note...

* You must have an object that gets a reference to an open socket based file.

* You need to have a try/catch block and enqueue that exception. If you get rid 
of the try/catch or enqueue something else then no segfault for you.

* The segfault isn't entirely reliable (seems so happen half the time or so), 
hence the loop.


While this repro script is pointless, it's the last issue preventing me from 
moving to python 3. At this point I'm out of idea so help would be greatly 
appreciated.

Thanks! -Damian

Python: Python 3.2 (r32:88445, Oct 20 2012, 14:09:50)
Platform: Ubuntu 11.04

PS. If the advice is 'upgrade python, 3.2 had some segfault bugs' then a 
pointer to those bugs would be appreciated. I've sunk quite a few hours into 
this issue so it would be nice to finally figure out what's up.

--
messages: 181190
nosy: atagar
priority: normal
severity: normal
status: open
title: Python 3.2 segfault
type: crash
versions: Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com