mediaproxy segmentation fault

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

mediaproxy segmentation fault

Gabriel Bermudez
Hi,

When I run mediaproxy-relay a segmetation fault raises, this crashes the previously running mediaproxy-dispatcher.  I found this reference http://opensips-open-sip-server.1449251.n2.nabble.com/MediaProxy-2-3-1-td2147452.html but reinstalling the software didn't help. Changing to Ubuntu is not an option, I'm on a VPS with Debian Wheezy.

Oct  6 19:58:13 server2 media-dispatcher[25615]: Starting MediaProxy Dispatcher 2.5.2
Oct  6 19:58:13 server2 media-dispatcher[25615]: using set_wakeup_fd
Oct  6 19:58:13 server2 media-dispatcher[25615]: Twisted is using epollreactor
Oct  6 19:58:13 server2 media-dispatcher[25615]: mediaproxy.dispatcher.RelayFactory starting on 25060
Oct  6 19:58:14 server2 media-dispatcher[25615]: mediaproxy.dispatcher.OpenSIPSControlFactory starting on "'/run/mediaproxy/dispatcher.sock'"
Oct  6 19:58:14 server2 media-dispatcher[25615]: mediaproxy.dispatcher.ManagementControlFactory starting on 25061
Oct  6 19:58:24 server2 media-relay[25632]: Starting MediaProxy Relay 2.5.2
Oct  6 19:58:24 server2 media-relay[25632]: using set_wakeup_fd
Oct  6 19:58:24 server2 media-relay[25632]: Set resource limit for maximum open file descriptors to 11000
Oct  6 19:58:24 server2 media-relay[25632]: debug: Adding new dispatcher at xx.xx.xx.xx:25060
Oct  6 19:58:24 server2 media-dispatcher[25615]: debug: Connection from relay at xx.xx.xx.xx
Oct  6 19:58:24 server2 kernel: [153694.458999] media-relay[25632] general protection ip:b6e361cd sp:bffad674 error:0 in libgcrypt.so.11.7.0[b6e0b000+82000]
Oct  6 19:58:24 server2 kernel: [153694.478547] media-dispatche[25615] general protection ip:b6fa31cd sp:bf8014d4 error:0 in libgcrypt.so.11.7.0[b6f78000+820

Thanks for your help on this one.

Regards,


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Saúl Ibarra Corretgé
Hi,

On Oct 6, 2011, at 8:54 PM, Gabriel Bermudez wrote:

> Hi,
>
> When I run mediaproxy-relay a segmetation fault raises, this crashes the previously running mediaproxy-dispatcher.  I found this reference http://opensips-open-sip-server.1449251.n2.nabble.com/MediaProxy-2-3-1-td2147452.html but reinstalling the software didn't help. Changing to Ubuntu is not an option, I'm on a VPS with Debian Wheezy.
>
> Oct  6 19:58:13 server2 media-dispatcher[25615]: Starting MediaProxy Dispatcher 2.5.2
> Oct  6 19:58:13 server2 media-dispatcher[25615]: using set_wakeup_fd
> Oct  6 19:58:13 server2 media-dispatcher[25615]: Twisted is using epollreactor
> Oct  6 19:58:13 server2 media-dispatcher[25615]: mediaproxy.dispatcher.RelayFactory starting on 25060
> Oct  6 19:58:14 server2 media-dispatcher[25615]: mediaproxy.dispatcher.OpenSIPSControlFactory starting on "'/run/mediaproxy/dispatcher.sock'"
> Oct  6 19:58:14 server2 media-dispatcher[25615]: mediaproxy.dispatcher.ManagementControlFactory starting on 25061
> Oct  6 19:58:24 server2 media-relay[25632]: Starting MediaProxy Relay 2.5.2
> Oct  6 19:58:24 server2 media-relay[25632]: using set_wakeup_fd
> Oct  6 19:58:24 server2 media-relay[25632]: Set resource limit for maximum open file descriptors to 11000
> Oct  6 19:58:24 server2 media-relay[25632]: debug: Adding new dispatcher at xx.xx.xx.xx:25060
> Oct  6 19:58:24 server2 media-dispatcher[25615]: debug: Connection from relay at xx.xx.xx.xx
> Oct  6 19:58:24 server2 kernel: [153694.458999] media-relay[25632] general protection ip:b6e361cd sp:bffad674 error:0 in libgcrypt.so.11.7.0[b6e0b000+82000]
> Oct  6 19:58:24 server2 kernel: [153694.478547] media-dispatche[25615] general protection ip:b6fa31cd sp:bf8014d4 error:0 in libgcrypt.so.11.7.0[b6f78000+820
>
> Thanks for your help on this one.
>

We run Debian Sid and I have never seen this. The crash is produced in libgcrypt, which is used by GNUTLS. MediaProxy uses python bindings to GNUTLS in order to have encrypted communication between dispatcher and relay. What versions of gnutls are you running? Did you compile it yourself?


Regards,

--
Saúl Ibarra Corretgé
AG Projects






_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Gabriel Bermudez
Hi Saul,

Im running debian wheezy with the following versions

root@server2:~# aptitude show libgnutls26
Paquete: libgnutls26                             
Estado: instalado
Instalado automáticamente: no
Versión: 2.12.10-2

root@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@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@server2:~# /etc/init.d/mediaproxy-dispatcher start
Starting MediaProxy dispatcher: media-dispatcher.
root@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

Regards,


2011/10/8 Saul Ibarra Corretge <[hidden email]>
Hi,

On Oct 6, 2011, at 8:54 PM, Gabriel Bermudez wrote:

> Hi,
>
> When I run mediaproxy-relay a segmetation fault raises, this crashes the previously running mediaproxy-dispatcher.  I found this reference http://opensips-open-sip-server.1449251.n2.nabble.com/MediaProxy-2-3-1-td2147452.html but reinstalling the software didn't help. Changing to Ubuntu is not an option, I'm on a VPS with Debian Wheezy.
>
> Oct  6 19:58:13 server2 media-dispatcher[25615]: Starting MediaProxy Dispatcher 2.5.2
> Oct  6 19:58:13 server2 media-dispatcher[25615]: using set_wakeup_fd
> Oct  6 19:58:13 server2 media-dispatcher[25615]: Twisted is using epollreactor
> Oct  6 19:58:13 server2 media-dispatcher[25615]: mediaproxy.dispatcher.RelayFactory starting on 25060
> Oct  6 19:58:14 server2 media-dispatcher[25615]: mediaproxy.dispatcher.OpenSIPSControlFactory starting on "'/run/mediaproxy/dispatcher.sock'"
> Oct  6 19:58:14 server2 media-dispatcher[25615]: mediaproxy.dispatcher.ManagementControlFactory starting on 25061
> Oct  6 19:58:24 server2 media-relay[25632]: Starting MediaProxy Relay 2.5.2
> Oct  6 19:58:24 server2 media-relay[25632]: using set_wakeup_fd
> Oct  6 19:58:24 server2 media-relay[25632]: Set resource limit for maximum open file descriptors to 11000
> Oct  6 19:58:24 server2 media-relay[25632]: debug: Adding new dispatcher at xx.xx.xx.xx:25060
> Oct  6 19:58:24 server2 media-dispatcher[25615]: debug: Connection from relay at xx.xx.xx.xx
> Oct  6 19:58:24 server2 kernel: [153694.458999] media-relay[25632] general protection ip:b6e361cd sp:bffad674 error:0 in libgcrypt.so.11.7.0[b6e0b000+82000]
> Oct  6 19:58:24 server2 kernel: [153694.478547] media-dispatche[25615] general protection ip:b6fa31cd sp:bf8014d4 error:0 in libgcrypt.so.11.7.0[b6f78000+820
>
> Thanks for your help on this one.
>

We run Debian Sid and I have never seen this. The crash is produced in libgcrypt, which is used by GNUTLS. MediaProxy uses python bindings to GNUTLS in order to have encrypted communication between dispatcher and relay. What versions of gnutls are you running? Did you compile it yourself?


Regards,

--
Saúl Ibarra Corretgé
AG Projects






_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Saúl Ibarra Corretgé
Hi,

On Oct 13, 2011, at 12:44 AM, Gabriel Bermudez wrote:

> Hi Saul,
>
> Im running debian wheezy with the following versions
>
> root@server2:~# aptitude show libgnutls26
> Paquete: libgnutls26                            
> Estado: instalado
> Instalado automáticamente: no
> Versión: 2.12.10-2
>
> root@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@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@server2:~# /etc/init.d/mediaproxy-dispatcher start
> Starting MediaProxy dispatcher: media-dispatcher.
> root@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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Gabriel Bermudez
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é <[hidden email]>
Hi,

On Oct 13, 2011, at 12:44 AM, Gabriel Bermudez wrote:

> Hi Saul,
>
> Im running debian wheezy with the following versions
>
> root@server2:~# aptitude show libgnutls26
> Paquete: libgnutls26
> Estado: instalado
> Instalado automáticamente: no
> Versión: 2.12.10-2
>
> root@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@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@server2:~# /etc/init.d/mediaproxy-dispatcher start
> Starting MediaProxy dispatcher: media-dispatcher.
> root@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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Saúl Ibarra Corretgé
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


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Gabriel Bermudez
Hi Saul,

Thanks for you're help, I'll try that but I think I will resolve nat issues whith RPTProxy then.

Regards,

2011/10/14 Saúl Ibarra Corretgé <[hidden email]>
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


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy segmentation fault

Gabriel Bermudez
In reply to this post by Saúl Ibarra Corretgé
This problem was caused by a debian bug on the libgcrypt11 package for wheezy/sid (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643336) to solve it one must downgrade to version 1.4.5-2 from squeeze (can be downloaded from http://ftp.us.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.4.5-2_i386.deb). I used dpkg without problems for this.  It seems that this only happens on i686 architecture (I'm working with wheezy).  Special thank to Saul for his help on this issue.

Regards,

2011/10/14 Saúl Ibarra Corretgé <[hidden email]>
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


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users