Eve for a simple operation like:
~~~~
import gevent.queue
q = gevent.queue.Queue ()
q.get (True, 0.1)
~~~~
, I get a segmentation fault.
I have the following packages installed:
* Python 2.7.2 from ArchLinux distribution (2.7.2-2);
* libevent 2.0.12 (2.0.12-1);
* I've installed gevent inside a virtual env with pip, as in:
~~~~
virtualenv --python=`which python2.7` --no-site-packages /tmp/gevent-tests
/tmp/gevent-tests/bin/pip install gevent==0.13.6
# which pulled greenlet-0.3.1
~~~~
Then I test it:
~~~~
/tmp/gevent-tests/bin/python -c
'__import__("gevent.queue").queue.Queue().get(True,0.1)'
# segmentation fault without any other information
~~~~
The non-blocking version works though (or if it doesn't need to block):
~~~~
/tmp/gevent-tests/bin/python -c
'__import__("gevent.queue").queue.Queue().get(False)'
# throws Queue.Empty
~~~~
Any ideea to what is wrong?
Thanks,
Ciprian.
> Hello all!
>
> Eve for a simple operation like:
> ~~~~
> import gevent.queue
> q = gevent.queue.Queue ()
> q.get (True, 0.1)
> ~~~~
> , I get a segmentation fault.
> Any ideea to what is wrong?
Please try the greenlet version from the bitbucket repository:
https://bitbucket.org/ambroff/greenlet
-----
Cheers,
Ralf
Ciprian.
It seems that with greenlet from the above repository (changeset
`4fc947923ee0`) the test works.
Thanks,
Ciprian.
I've also added some info about the current problem on the
greenlet bug tracket at the issue, and pointing back to this email
thread:
https://bitbucket.org/ambroff/greenlet/issue/29/segfault-on-fedora-15
Ciprian.
Please try the greenlet version from the bitbucket repository: