[Sems] Xmlrpc causing random crash
stefan.sayer at iptego.com
Tue Jun 2 11:38:54 CEST 2009
o Tom van der Geer [06/02/09 11:26]:
> Hi DanB,
> Good to hear it fixed your problem. I'm currently fighting another crash
> in the same area. Currently SEMS segfaults when XmlRpc calls close() on
> the XmlRpcSource object:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1217008720 (LWP 12051)]
> 0xb7c8c07a in SSL_shutdown () from /usr/lib/i686/cmov/libssl.so.0.9.8
> (gdb) bt
> #0 0xb7c8c07a in SSL_shutdown () from /usr/lib/i686/cmov/libssl.so.0.9.8
> #1 0xb7cca05c in XmlRpc::XmlRpcSource::close (this=0x746e6f43) at
> #2 0xb7cc3269 in XmlRpc::XmlRpcDispatch::waitForAndProcessEvents
> (this=0x8128490, timeout=-1) at src/XmlRpcDispatch.cpp:260
> #3 0xb7cc34f2 in XmlRpc::XmlRpcDispatch::work (this=0x8128490,
> timeout=-1) at src/XmlRpcDispatch.cpp:87
> #4 0xb7cb1256 in XmlRpc::WorkerThread::run (this=0x8128400) at
> #5 0x080eec15 in AmThread::_start (_t=0x8128400) at AmThread.cpp:70
> #6 0xb7f07240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #7 0xb7dac49e in clone () from /lib/tls/i686/cmov/libc.so.6
> For some reason it evaluates (_ssl_ssl != (SSL *) NULL) as true in
> XmlRpcSource.cpp:34 to be able to reach line the SSL_shutdown at line
> 35. In the constructor of XmlRpcSource the _ssl_ssl parameter is set to
> NULL (see revision r1249) and I can't find any other place where
> _ssl_ssl is changed to another value.
does this really happen with r1269 applied? Are you using SSL at all?
Seems to me like you need to rebuild (maybe make clean did not clean
> This happened somewhere in the middle of a test run of 40.000 calls. But
> it also happened after approx. 1500 calls.
> Does anybody have a clue what's going on here? Is there anything I can
> do to further pinpoint the problem?
> -------- Originele bericht --------
> Onderwerp: Re: [Sems] Xmlrpc causing random crash
> Van: Dan-Cristian Bogos <danb.lists at googlemail.com>
> Aan: tom.vandergeer at xs4all.nl
> CC: sems at lists.iptel.org
> Datum: 2-6-2009 9:53
>> Hi Tom,
>> many thanks for the tip.
>> I have checked out the r1269 and installed xmlrpc2di on top of the 1.1.0
>> engine I had from the packages and it looks like a successful recipe: I
>> have no more crashes. You saved me a loot of time for
>> troubleshooting ;-).
>> Since it looks like a fixed bug, is there any plan to release a package
>> with the fix included anytime soon?
>> On Mon, 2009-06-01 at 22:29 +0200, Tom van der Geer wrote:
>>> Hi DanB,
>>> I had the same, or at least a very similar issue a while ago. In my case
>>> it turned out that I was missing a fix which is not in the 1.1.0 tarbal,
>>> but it's available when you checkout branches/1.1 from subversion. The
>>> relevant change set is r1269:
>>> Might be the same problem that you're having now...
>>> Best regards,
>>> Dan-Cristian Bogos schreef:
>>>> I have recently upgraded from sems 1.0 running own compiled xmlrpc to
>>>> the package provided from iptel.org website (running debian lenny).
>>>> After update, I cannot longer run it in production since sems is
>>>> randomly crashing (quite often I would say, but without being able to
>>>> spot any pattern).
>>>> I was running both in debug and daemon mode, and noticed that the
>>>> crashes are more often in daemon than debug one.
>>>> All I could spot was in my syslog the following sentence(when in
>>>> "kernel: [4822269.946788] sems: segfault at 76726573 ip b7a6d935
>>>> sp b76e7010 error 4 in libssl.so.0.9.8[b7a3e000+42000]"
>>>> I run the following versions:
>>>> ii sems 1.1.0-1 SIP
>>>> Express Media Server, very fast and flexible SIP media ser
>>>> ii sems-python-modules 1.1.0-1
>>>> the python modules for SEMS
>>>> ii libssl0.9.8 0.9.8g-16 SSL
>>>> shared libraries
>>>> Anyone there having same issues?
>>>> I would appreciate any kind of tips.
>>>> Sems mailing list
>>>> Sems at lists.iptel.org
> Sems mailing list
> Sems at lists.iptel.org
stefan.sayer at iptego.com
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
More information about the Sems