Opensips crashed - problem with MD5?

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

Opensips crashed - problem with MD5?

Carlo Dimaggio
Hi all,

My opensips 1.5.0 has crashed twice in the last 5 days. It had low  
load (few registrations)...
In opensipsctlrc I have:
        MD5="md5sum"
        STORE_PLAINTEXT_PW=0

in opensips.cfg:
        modparam("auth_db", "calculate_ha1", 0)
        modparam("auth_db", "password_column", "ha1")
        modparam("auth_db", "password_column_2", "ha1b")


Below the backtrace. Is it a bug?


Thank you!
Carlo Dimaggio


------

carlo@sip:~$ sudo gdb opensips core.opensips.sig11.22690
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html 
 >
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show  
copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Cannot access memory at address 0xf830e900
(gdb) bt
#0  0xb794781f in ?? ()
#1  0xb7af3894 in ?? ()
#2  0xb7af5c8b in ?? ()
#3  0xb7aebb79 in ?? ()
#4  0x08056ee2 in do_action (a=0x81d2b90, msg=0x8203db8) at action.c:426
#5  0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
#6  0x080aac21 in mk_action (type=136129528, n=136330680, elem=0x0,  
line=0) at route_struct.c:124
#7  0x080aa9c4 in mk_action (type=136129568, n=136330680, elem=0x0,  
line=3) at route_struct.c:113
#8  0x080aa9ec in mk_action (type=136129608, n=136330680, elem=0x0,  
line=0) at route_struct.c:113
#9  0x080570de in do_action (a=0x81d2ed8, msg=0x8203db8) at action.c:674
#10 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
#11 0x08059013 in do_action (a=0x81d4710, msg=0x8203db8) at parser/../
ip_addr.h:385
#12 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
#13 0x0805840d in do_action (a=0x81d1d68, msg=0x8203db8) at parser/../
ip_addr.h:378
#14 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
#15 0x08059013 in do_action (a=0x81d1e38, msg=0x8203db8) at parser/../
ip_addr.h:385
#16 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
#17 0x0805a75a in delete_expired_routine (ticks=136098008,  
param=0x8203db8) at mem/../fastlock.h:88
#18 0x0809a2c3 in dns_a_parser (
     rdata=0x819dba0 "REGISTER sip:sip.xxx.it SIP/2.0\r\nVia: SIP/2.0/
UDP 10.0.6.83:5060;branch=z9hG4bK2f7b8b41;rport\r\nMax-Forwards: 69\r
\nFrom: <sip:[hidden email]>;tag=as24ad03ef\r\nTo: <sip:vpbx1"...,  
end=0x298 <Address 0x298 out of bounds>) at resolve.c:314
#19 0x080e027b in parse_avp_name (name=0xbfa8ca58, type=0x15,  
avp_name=0x81f52d8) at usr_avp.c:552
#20 0x0807229f in MD5Transform (state=0x0, block=<value optimized  
out>) at md5.c:268
#21 0xb7c59450 in ?? ()
#22 0x08055761 in do_assign (msg=Cannot access memory at address 0x8
) at action.c:242
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

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

Re: Opensips crashed - problem with MD5?

Bogdan-Andrei Iancu
Hi Carlo,

The backtrace looks really broken.....it might be a core overwrite.....

What revision on 1.5.0 are you using (do opensips -V) ? there are
several mysql related bugs fixed since the 1.5.0 release. If you have a
SVN copy, do a SVN update to get the latest fixes. Otherwise I recomand
upgrading to 1.5.1 (see the download section on the web site).

Regards,
Bogdan

Carlo Dimaggio wrote:

> Hi all,
>
> My opensips 1.5.0 has crashed twice in the last 5 days. It had low  
> load (few registrations)...
> In opensipsctlrc I have:
> MD5="md5sum"
> STORE_PLAINTEXT_PW=0
>
> in opensips.cfg:
> modparam("auth_db", "calculate_ha1", 0)
> modparam("auth_db", "password_column", "ha1")
> modparam("auth_db", "password_column_2", "ha1b")
>
>
> Below the backtrace. Is it a bug?
>
>
> Thank you!
> Carlo Dimaggio
>
>
> ------
>
> carlo@sip:~$ sudo gdb opensips core.opensips.sig11.22690
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html 
>  >
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show  
> copying"
> and "show warranty" for details.
> This GDB was configured as "i486-linux-gnu"...
> Cannot access memory at address 0xf830e900
> (gdb) bt
> #0  0xb794781f in ?? ()
> #1  0xb7af3894 in ?? ()
> #2  0xb7af5c8b in ?? ()
> #3  0xb7aebb79 in ?? ()
> #4  0x08056ee2 in do_action (a=0x81d2b90, msg=0x8203db8) at action.c:426
> #5  0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
> #6  0x080aac21 in mk_action (type=136129528, n=136330680, elem=0x0,  
> line=0) at route_struct.c:124
> #7  0x080aa9c4 in mk_action (type=136129568, n=136330680, elem=0x0,  
> line=3) at route_struct.c:113
> #8  0x080aa9ec in mk_action (type=136129608, n=136330680, elem=0x0,  
> line=0) at route_struct.c:113
> #9  0x080570de in do_action (a=0x81d2ed8, msg=0x8203db8) at action.c:674
> #10 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
> #11 0x08059013 in do_action (a=0x81d4710, msg=0x8203db8) at parser/../
> ip_addr.h:385
> #12 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
> #13 0x0805840d in do_action (a=0x81d1d68, msg=0x8203db8) at parser/../
> ip_addr.h:378
> #14 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
> #15 0x08059013 in do_action (a=0x81d1e38, msg=0x8203db8) at parser/../
> ip_addr.h:385
> #16 0x0805a38d in destroy_black_lists () at mem/../fastlock.h:88
> #17 0x0805a75a in delete_expired_routine (ticks=136098008,  
> param=0x8203db8) at mem/../fastlock.h:88
> #18 0x0809a2c3 in dns_a_parser (
>      rdata=0x819dba0 "REGISTER sip:sip.xxx.it SIP/2.0\r\nVia: SIP/2.0/
> UDP 10.0.6.83:5060;branch=z9hG4bK2f7b8b41;rport\r\nMax-Forwards: 69\r
> \nFrom: <sip:[hidden email]>;tag=as24ad03ef\r\nTo: <sip:vpbx1"...,  
> end=0x298 <Address 0x298 out of bounds>) at resolve.c:314
> #19 0x080e027b in parse_avp_name (name=0xbfa8ca58, type=0x15,  
> avp_name=0x81f52d8) at usr_avp.c:552
> #20 0x0807229f in MD5Transform (state=0x0, block=<value optimized  
> out>) at md5.c:268
> #21 0xb7c59450 in ?? ()
> #22 0x08055761 in do_assign (msg=Cannot access memory at address 0x8
> ) at action.c:242
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> (gdb)
>
> _______________________________________________
> 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: Opensips crashed - problem with MD5?

Carlo Dimaggio

Il giorno 15/apr/09, alle ore 13:36, Bogdan-Andrei Iancu ha scritto:

> Hi Carlo,
>
> The backtrace looks really broken.....it might be a core  
> overwrite.....
>
> What revision on 1.5.0 are you using (do opensips -V) ? there are  
> several mysql related bugs fixed since the 1.5.0 release. If you  
> have a SVN copy, do a SVN update to get the latest fixes. Otherwise  
> I recomand upgrading to 1.5.1 (see the download section on the web  
> site).

Ok Bogdan,

I have upgraded to 1.5.1.
One question: why I see version 1.4.3 from opensips -V and 1.5.1 from  
osipsconsole (monitor)?


Thanks and Regards,
Carlo

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

Re: Opensips crashed - problem with MD5?

Bogdan-Andrei Iancu
hmmm...

how did you do the upgrade ? maybe you have a mixture of installations
between the versions....

This is what I get for the 1.5.1 SVN :

$ ./opensips -V
version: opensips 1.5.1-notls (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:5637
@(#) $Id: main.c 5469 2009-03-18 12:43:10Z bogdan_iancu $
main.c compiled on 16:03:06 Apr 15 2009 with gcc 4.1.3

Regards,
Bogdan

Carlo Dimaggio wrote:

>
> Il giorno 15/apr/09, alle ore 13:36, Bogdan-Andrei Iancu ha scritto:
>
>> Hi Carlo,
>>
>> The backtrace looks really broken.....it might be a core overwrite.....
>>
>> What revision on 1.5.0 are you using (do opensips -V) ? there are
>> several mysql related bugs fixed since the 1.5.0 release. If you have
>> a SVN copy, do a SVN update to get the latest fixes. Otherwise I
>> recomand upgrading to 1.5.1 (see the download section on the web site).
>
> Ok Bogdan,
>
> I have upgraded to 1.5.1.
> One question: why I see version 1.4.3 from opensips -V and 1.5.1 from
> osipsconsole (monitor)?

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

Re: Opensips crashed - problem with MD5?

Carlo Dimaggio

Il giorno 15/apr/09, alle ore 15:05, Bogdan-Andrei Iancu ha scritto:

> hmmm...
>
> how did you do the upgrade ? maybe you have a mixture of  
> installations between the versions....
>
> This is what I get for the 1.5.1 SVN :

I have downloaded the 1.5.1 src and compiled/installed with

sudo make prefix=/ all
sudo make prefix=/ install

after having stopped the old version. What is the best practice to  
upgrade opensips?

Thanks

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

Re: Opensips crashed - problem with MD5?

Bogdan-Andrei Iancu
Carlo Dimaggio wrote:

>
> Il giorno 15/apr/09, alle ore 15:05, Bogdan-Andrei Iancu ha scritto:
>
>> hmmm...
>>
>> how did you do the upgrade ? maybe you have a mixture of
>> installations between the versions....
>>
>> This is what I get for the 1.5.1 SVN :
>
> I have downloaded the 1.5.1 src and compiled/installed with
>
> sudo make prefix=/ all
> sudo make prefix=/ install
>
> after having stopped the old version. What is the best practice to
> upgrade opensips?
this should be enough, but as there is no "uninstall", there is the risk
of keeping some old files that were not removed by previous installation.

What I do (when having more versions on the same server) is to install
the whole stuff (for a version) under a single directory:
    make prefix=/usr/local/opensips-X.Y install

In this way there is no way of having overlaps.


In your case, I suspect the binary file (opensips) is still from the old
installation - check the creation time.

Regards,
Bogdan


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