[Python-modules-team] Bug#747270: segfault in amqp_pool_alloc

Brian May brian at microcomaustralia.com.au
Wed May 7 01:17:36 UTC 2014


Package: python-librabbitmq
Version: 1.0.1-1

This bug was reported in the following bug against librabbitmq1 in:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736348

This was reported upstream:
https://github.com/alanxz/rabbitmq-c/issues/166

Upstream said it needed to be reported against python-librabbitmq, which is
what I am doing.

(Apologies if you get two copies of this bug report, I sent a copy before
with reportbug, and it appears to have got lost.)

The entire stack trace is probably not relevant (112 frames), however the
top several frames are:

Program received signal SIGSEGV, Segmentation fault.
amqp_pool_alloc (pool=0xe42410, amount=21377840) at
/tmp/buildd/librabbitmq-0.4.1/librabbitmq/amqp_mem.c:164
164     /tmp/buildd/librabbitmq-0.4.1/librabbitmq/amqp_mem.c: Permission
denied.
(gdb) bt
#0  amqp_pool_alloc (pool=0xe42410, amount=21377840) at
/tmp/buildd/librabbitmq-0.4.1/librabbitmq/amqp_mem.c:164
#1  0x00007ffff0aea92b in ?? () from
/usr/lib/python2.7/dist-packages/_librabbitmq.so
#2  0x00007ffff0aebded in ?? () from
/usr/lib/python2.7/dist-packages/_librabbitmq.so
#3  0x000000000050887d in call_function (oparg=<optimized out>,
pp_stack=0x7fffffffb320) at ../Python/ceval.c:4020
#4  PyEval_EvalFrameEx (
    f=f at entry=Frame 0x1551680, for file
/usr/lib/python2.7/dist-packages/librabbitmq/__init__.py, line 130, in
queue_declare (self=<Channel(channel_id=1,
connection=<Connection(channels={1: <...>},
client=<Connection(_initial_params={'insist': False, 'ssl': False,
'password': None, 'port': None, 'transport': None, 'login_method': None,
'hostname': None, 'userid': None, 'virtual_host': None, 'heartbeat': None,
'connect_timeout': 4}, transport_options={}, _closed=False, insist=False,
connection_errors=(<type at remote 0xe8e3d0>, <type at remote 0x146dad0>,
<type at remote 0xa9a6b0>, <type at remote 0x9166c0>, <type at remote
0x916520>), _transport=<Transport(_Transport__reader=None, client=<...>,
default_port=5672) at remote 0x7ffff0882510>, alt=[], port=5672,
_connection=<...>, login_method='AMQPLAIN', drain_events=<instancemethod at
remote 0x7ffff086e370>, hostname='localhost',
recoverable_connection_errors=(<type at remote 0xe8e3d0>, <type at remote
0x146dad0>, <type at remote 0xa9a6b0>, <type at remote 0x9166c0>, <type
a...(truncated), throwflag=throwflag at entry=0) at ../Python/ceval.c:2666
#5  0x0000000000576211 in PyEval_EvalCodeEx (co=0x7ffff0d04230,
globals=<optimized out>, locals=<optimized out>,
    args=<optimized out>, argcount=<optimized out>, kws=<optimized out>,
kwcount=7, defs=0x7ffff0cfa378, defcount=7,
    closure=0x0) at ../Python/ceval.c:3252
#6  0x0000000000508c53 in fast_function (nk=7, na=1, n=<optimized out>,
pp_stack=0x7fffffffb550,
    func=<function at remote 0x7ffff0cfdf50>) at ../Python/ceval.c:4116
#7  call_function (oparg=<optimized out>, pp_stack=0x7fffffffb550) at
../Python/ceval.c:4041
#8  PyEval_EvalFrameEx (
    f=f at entry=Frame 0x1551ca0, for file
/usr/lib/python2.7/dist-packages/kombu/entity.py, line 531, in
queue_declare (self=<Queue(exclusive=False,
name='5cf6a613-6c37-30d4-91e1-9401389e2efb.reply.celery.pidbox',
exchange=<Exchange(name='reply.celery.pidbox',
_channel=<Channel(channel_id=1, connection=<Connection(channels={1: <...>},
client=<Connection(_initial_params={'insist': False, 'ssl': False,
'password': None, 'port': None, 'transport': None, 'login_method': None,
'hostname': None, 'userid': None, 'virtual_host': None, 'heartbeat': None,
'connect_timeout': 4}, transport_options={}, _closed=False, insist=False,
connection_errors=(<type at remote 0xe8e3d0>, <type at remote 0x146dad0>,
<type at remote 0xa9a6b0>, <type at remote 0x9166c0>, <type at remote
0x916520>), _transport=<Transport(_Transport__reader=None, client=<...>,
default_port=5672) at remote 0x7ffff0882510>, alt=[], port=5672,
_connection=<...>, login_method='AMQPLAIN', drain_events=<instancemethod at
remote 0x7ffff086e370>, hostname='localhost', recoverabl...(truncated),
throwflag=throwflag at entry=0) at ../Python/ceval.c:2666
#9  0x0000000000576211 in PyEval_EvalCodeEx (co=0x7ffff4e87630,
globals=<optimized out>, locals=<optimized out>,
    args=<optimized out>, argcount=<optimized out>, kws=<optimized out>,
kwcount=1, defs=0x7ffff4de1a40, defcount=2,
    closure=0x0) at ../Python/ceval.c:3252
[...]


-- 
Brian May <brian at microcomaustralia.com.au>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20140507/4ffe2318/attachment-0001.html>


More information about the Python-modules-team mailing list