[OpenSIPS-Users] mediaproxy segmentation fault

Saúl Ibarra Corretgé saul at ag-projects.com
Fri Oct 14 09:59:29 CEST 2011

Hi Gabriel,

On Oct 13, 2011, at 4:50 PM, Gabriel Bermudez wrote:

> Hi Saul,
> This is the backtrace
> #0  0xb6f601cd in ?? () from /lib/i386-linux-gnu/libgcrypt.so.11
> #1  0xb6f604c6 in ?? () from /lib/i386-linux-gnu/libgcrypt.so.11
> #2  0xb6f60aa8 in ?? () from /lib/i386-linux-gnu/libgcrypt.so.11
> #3  0xb6f60657 in ?? () from /lib/i386-linux-gnu/libgcrypt.so.11
> #4  0xb6f44ae7 in ?? () from /lib/i386-linux-gnu/libgcrypt.so.11
> #5  0xb6f3ae04 in gcry_cipher_setkey () from /lib/i386-linux-gnu/libgcrypt.so.11
> #6  0xb706c44b in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #7  0xb6feeed2 in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #8  0xb6ffa1d5 in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #9  0xb6ffa791 in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #10 0xb6ffae67 in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #11 0xb6fe325d in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #12 0xb6fe6870 in ?? () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #13 0xb6fe824d in gnutls_handshake () from /usr/lib/i386-linux-gnu/libgnutls.so.26
> #14 0xb71079cf in ffi_call_SYSV () from /usr/lib/python2.7/lib-dynload/_ctypes.so
> #15 0xb710776e in ffi_call () from /usr/lib/python2.7/lib-dynload/_ctypes.so
> #16 0xb70ffd32 in _call_function_pointer (argcount=1, resmem=0xbfa5bd30, restype=0x0, atypes=0x8c75050, avalues=0xbfa5bd10, 
>     pProc=0xb6fe81f0 <gnutls_handshake>, flags=4353) at /home/packages/python/2.7/python2.7-2.7.2/Modules/_ctypes/callproc.c:827
> #17 _ctypes_callproc (pProc=0xb6fe81f0 <gnutls_handshake>, argtuple=(<LP_gnutls_session_int at remote 0x8d9c8e4>,), flags=4353, argtypes=
>     (<built-in method from_param of _ctypes.PyCPointerType object at remote 0x90c46dc>,), restype=<_ctypes.PyCSimpleType at remote 0x8d8aa7c>, checker=0x0)
>     at /home/packages/python/2.7/python2.7-2.7.2/Modules/_ctypes/callproc.c:1174
> #18 0xb70f739d in PyCFuncPtr_call (self=0x90a1164, inargs=(<LP_gnutls_session_int at remote 0x8d9c8e4>,), kwds=0x0)
>     at /home/packages/python/2.7/python2.7-2.7.2/Modules/_ctypes/_ctypes.c:3911
> #19 0x080605d1 in PyObject_Call (func=<_FuncPtr(__name__='gnutls_handshake') at remote 0x90a1164>, arg=(<LP_gnutls_session_int at remote 0x8d9c8e4>,), kw=
>     0x0) at ../Objects/abstract.c:2529
> #20 0x080fa241 in do_call (nk=<optimized out>, na=1, pp_stack=0xbfa5bf54, func=<_FuncPtr(__name__='gnutls_handshake') at remote 0x90a1164>)
>     at ../Python/ceval.c:4239
> #21 call_function (oparg=1, pp_stack=0xbfa5bf54) at ../Python/ceval.c:4044
> #22 PyEval_EvalFrameEx (f=
>     Frame 0x91cac8c, for file /usr/lib/pymodules/python2.7/gnutls/connection.py, line 370, in handshake (self=<ClientSession(_Session__deinit=<_FuncPtr(__name__='gnutls_deinit') at remote 0x909c7e4>, _server_name=None, _credentials=<X509Credentials(_type=<GNUTLSConstant(name='CRED_CERTIFICATE') at remote 0x910c4ac>, session_params=<SessionParams(_compressions=(<GNUTLSConstant(name='COMP_NULL') at remote 0x910c48c>,), _protocols=(<GNUTLSConstant(name='PROTO_TLS1_1') at remote 0x910c12c>, <GNUTLSConstant(name='PROTO_TLS1_0') at remote 0x910c1ac>, <GNUTLSConstant(name='PROTO_SSL3') at remote 0x910c1ec>), _ciphers=(<GNUTLSConstant(name='CIPHER_AES_128_CBC') at remote 0x910c2ac>, <GNUTLSConstant(name='CIPHER_3DES_CBC') at remote 0x910c2cc>, <GNUTLSConstant(name='CIPHER_ARCFOUR_128') at remote 0x910c2ec>), _kx_algorithms=(<GNUTLSConstant(name='KX_RSA') at remote 0x910c20c>, <GNUTLSConstant(name='KX_DHE_DSS') at remote 0x910c22c>, <GNUTLSConstant(name='KX_DHE_RSA') at remote 0x910c24c>), _mac_algorithms=(<GNUTLSConstant...(truncated), throwflag=0) at ../Python/ceval.c:2666
> #23 0x080f9e98 in fast_function (nk=<optimized out>, na=147279952, n=<optimized out>, pp_stack=0xbfa5c024, func=<function at remote 0x911cca4>)
>     at ../Python/ceval.c:4107
> #24 call_function (oparg=0, pp_stack=0xbfa5c024) at ../Python/ceval.c:4042
> #25 PyEval_EvalFrameEx (f=
>     Frame 0x91cab1c, for file /usr/lib/pymodules/python2.7/gnutls/interfaces/twisted/__init__.py, line 187, in doHandshake (self=<TLSClient(_tempDataBuffer=[], fileno=<instancemethod at remote 0x915e194>, protocol=None, reactor=<EPollReactor(_writes={}, _newTimedCalls=[], _pendingTimedCalls=[<DelayedCall(resetter=<instancemethod at remote 0x91564dc>, seconds=<built-in function time>, args=(), canceller=<instancemethod at remote 0x9156dc4>, delayed_time=0, kw={}, func=<RecurrentCall(callid=<...>, args=(...), period=15, next=None, func=<instancemethod at remote 0x912166c>, kwargs={}, now=None) at remote 0x9186ccc>, time=<float at remote 0x8facefc>, cancelled=0, called=0) at remote 0x9186cec>, <DelayedCall(resetter=<instancemethod at remote 0x915e3c4>, seconds=<built-in function time>, args=(<TimeoutError(osError=None) at remote 0x915e3ec>,), canceller=<instancemethod at remote 0x915634c>, delayed_time=0, kw={}, func=<instancemethod at remote 0x9156504>, time=<float at remote 0x8faceec>, cancelled=0, called=0) at re...(truncated), throwflag=0) at ../Python/ceval.c:2666
> #26 0x080f9e98 in fast_function (nk=<optimized out>, na=147279952, n=<optimized out>, pp_stack=0xbfa5c0f4, func=<function at remote 0x91206bc>)
>     at ../Python/ceval.c:4107
> #27 call_function (oparg=0, pp_stack=0xbfa5c0f4) at ../Python/ceval.c:4042
> #28 PyEval_EvalFrameEx (f=
>     Frame 0x91ca9c4, for file /usr/lib/pymodules/python2.7/gnutls/interfaces/twisted/__init__.py, line 218, in startTLS (self=<TLSClient(_tempDataBuffer=[], 
> I had the stable and unstable repositories configured on apt, so I disabled the stable repo and reinstalled everything but the problem persists. Thanks for your help.

I've tried to reproduce this but unfortunately I haven't been able to do so :-S I used a 64bit Debian wheezy/sid machine.

I'd suggest you install libgcrypt and libgnutls -dbg packages so that your backtrace is more complete and see if there are any open bug reports about any of them.

Sorry I can't be of any more help :-S


Saúl Ibarra Corretgé
AG Projects

More information about the Users mailing list