[OpenSIPS-Users] mediaproxy segmentation fault

Gabriel Bermudez elgabo81 at gmail.com
Thu Oct 13 16:50:46 CEST 2011


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.

Regards,

2011/10/13 Saúl Ibarra Corretgé <saul at ag-projects.com>

> Hi,
>
> On Oct 13, 2011, at 12:44 AM, Gabriel Bermudez wrote:
>
> > Hi Saul,
> >
> > Im running debian wheezy with the following versions
> >
> > root at server2:~# aptitude show libgnutls26
> > Paquete: libgnutls26
> > Estado: instalado
> > Instalado automáticamente: no
> > Versión: 2.12.10-2
> >
> > root at server2:~# aptitude show python-gnutls
> > Paquete: python-gnutls
> > Estado: instalado
> > Instalado automáticamente: sí
> > Versión: 1.2.1squeeze
> >
> > I also installed gnutls-bin just in case
> > root at server2:~# aptitude show gnutls-bin
> > Paquete: gnutls-bin
> > Estado: instalado
> > Instalado automáticamente: no
> > Versión: 2.12.10-2
> >
> > I tried running mediaproxy-relay with the --no-fork option and this is
> what I get
> >
> > root at server2:~# /etc/init.d/mediaproxy-dispatcher start
> > Starting MediaProxy dispatcher: media-dispatcher.
> > root at server2:~# media-relay --no-fork
> > Starting MediaProxy Relay 2.5.2
> > using set_wakeup_fd
> > Set resource limit for maximum open file descriptors to 11000
> > gc: collectable <tuple 0xa388e4c>
> > gc: collectable <StgDict 0xa35829c>
> > gc: collectable <_ctypes.ArrayType 0xa3fa48c>
> > gc: collectable <getset_descriptor 0xa382f8c>
> > gc: collectable <getset_descriptor 0xa3ad0ac>
> > gc: collectable <tuple 0xb73253ec>
> > gc: collectable <tuple 0xa3ad0cc>
> > gc: collectable <StgDict 0xa35836c>
> > gc: collectable <_ctypes.ArrayType 0xa3fecc4>
> > gc: collectable <getset_descriptor 0xa3ad18c>
> > gc: collectable <getset_descriptor 0xa3ad1ac>
> > gc: collectable <tuple 0xa385dec>
> > gc: collectable <getset_descriptor 0xa3ad1cc>
> > gc: collectable <getset_descriptor 0xa3ad1ec>
> > debug: Adding new dispatcher at 212.231.8.132:25060
> > Violación de segmento
> >
>
> Can you enable core dumping (ulimit -c unlimited) run it again and paste
> the backtrace? You can get as follows:
>
> gdb python path_to_the_core_file
>
> And in the prompt just type:
>
> bt
>
> Please make sure you have -dbg package installed for MediaProxy.
>
>
> Regards,
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111013/6d61b040/attachment-0001.htm>


More information about the Users mailing list