Re: HTTP Interface gives segmentation fault
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Centrium GmbH |
| Message-ID | <[email protected]> |
Hi, first of all, if you have segfault please file a bug report for it... You can try to set: ulimit -c in your start script and enable debug level (0) for bearerbox. Last ~100 lines of debug log would get possible place that cause segfault. For the 'ulimit -c', you can add to your start script lines like this: cd /my_place_for_coredump ulimit -c 10000 bearerbox ... Please note that you should compile your bearerbox as well smsbox with '-g' gcc option, like this: CFLAGS="-g" ./configure ... Good luck! On Friday 05 September 2003 08:36, Jeetendra Singh wrote: > I couldn't find a Softice like tool to work on Linux. I tried gdb but its > no good for multi threaded environment. > > The solution you proposed may work for once a week crash but in my case it > is sometimes just 500 messages or it has gone upto 50K at times when the > crash takes place. With a rate in excess of 20 msgs/sec (on my test setup > where I am load testing it right now), I would not prefer this solution. > > Can somebody throw some light on this crash? > > I am including devel people in it. May be they need to know and can help. > > TIA, > Jeetendra > ----- Original Message ----- > From: Navjot Singh > To: Jeetendra Singh ; 'Kannel Users' > Sent: Thursday, September 04, 2003 4:21 PM > Subject: RE: HTTP Interface gives segmentation fault > > > I had also observed this problem around 2 months back but little > differently. > > I was using HTTP SMSC relay and figured out that after some heavy > traffic, the kannel just keeps mum. My OS(Linux 7.3) doesn't show me > Segmentation fault but it just has to be restarted to bring back to it's > normal life. > > I fixed the problem by listening to kannel/status at fixed periods. kill > the earlier PID and starts fresh. Not a nice solution but my problem is > also not frequent. Once in a week or so. > > Curious to know why this happens? > If you have some nice debugger(like softice) / memory snapshot tool, just > try to run and send bulk SMS to force the kannel to throw Segmentation > fault. You will get to know what the problem is. Unless someone can come up > with a known reason. > > regards > Navjot Singh > -----Original Message----- > From: [email protected] [mailto:[email protected]]On Behalf > Of Jeetendra Singh Sent: Thursday, September 04, 2003 3:55 PM > To: 'Kannel Users' > Subject: HTTP Interface gives segmentation fault > > > I am facing a very peculiar problem. Am using Kannel to interface with > a SMSC which gives HTTP interface to send sms. It has been observed that > this Kannel gateway is dying due to segmentation fault after handling some > random number of messages . We have tried it with varied throughput but it > dies always. The number of messages handled has varied from 500-50K. The > reason for seg fault is beyond me. > > Has anybody else observed the same problem? > > I am using 18th August Kannel Snapshot on Linux Red Hat OS. > > TIA, > Jeetendra -- Best regards / Mit besten Grüßen aus Düsseldorf Dipl.-Ing. Alexander Malysh ___________________________________________ Centrium GmbH Vogelsanger Weg 80 40470 Düsseldorf Fon: +49 (0211) 74 84 51 80 Fax: +49 (0211) 277 49 109 email: a.malysh at centrium.de web: www.centrium.de msn: olek2002 at hotmail.com icq: 98063111 ___________________________________________ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html