Firstly, that is the incorrect way to use gdb and a core file. The correct way:
gdb /path/to/asterisk -c /path/to/core Then you can do bt. Do a bt on the core like above then post. Matthew > From: Iqbal <[EMAIL PROTECTED]> > Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion > <[EMAIL PROTECTED]> > Date: Mon, 25 Oct 2004 22:49:12 +0100 > To: <[EMAIL PROTECTED]> > Subject: [Asterisk-Users] asterisk + rate_engine (trollphone) core dump > > > Hi > > for the past few days have pbeen playing with various rating engines, and > prepaid options, tried astcc looks fine, but doesnt include rating, > looked at vanilla cdr, etc etc, then stumbled upon rate_engine by > Trollphone, so decided to plug that in , and give it a go. It compiles > fine, > > but now when I start asterisk I get a coredump > > looked through the pages to analyse a coredump, but alas I'm as confused > as ever. heres the last few lines of startup > > /usr/sbin/asterisk -vvvvvvvgc > > => (Call Routing and Rating Application) > Oct 25 23:18:13 DEBUG[-150105984]: config.c:787 __ast_load: Parsing > /etc/asterisk/rate_engine.conf > -- System Name: IPClouds >> DB Host: localhost >> DB Username: asterisk >> DB Password: [set] > -- Database: asterisk >> Reload Rates: manually >> CDR Table: cdr_rate >> Drop Threshold: 1000 entries >> Warning Threshold: 500 entries >> Warning Frequency: every 25 entries >> Error Table: exception >> Egress Table: egress >> Cost Table: rate >> Average Call Length: 180s > -- Connected to database: asterisk >> Egress route exists to sip[10.0.0.1] (default route to mag cisco) > Segmentation fault (core dumped) > > ------- > So it seems to be aproblem in the rate_engine > > I tried to backtrace with gdb , but it didnt help much > gdb core.7411 > GNU gdb Red Hat Linux (6.0post-0.20040223.19rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as > "i386-redhat-linux-gnu"..."/sip/srcfiles/rate-engine-0.5.4/core.7411": > not in executable format: File format not recognized > > (gdb) bt > No stack. > (gdb) > > which kind of means there is no core...which dont make sense since there > is a core file :-), it dont seem to recognise the core file > ----- > so instead I ran it with gdb and I got this > > gdb /usr/sbin/asterisk > GNU gdb Red Hat Linux (6.0post-0.20040223.19rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-redhat-linux-gnu"...Using host > libthread_db library "/lib/tls/libthread_db.so.1". > > (gdb) run > Starting program: /usr/sbin/asterisk > Error while mapping shared library sections: > : Success. > Error while reading shared library symbols: > : No such file or directory. > [Thread debugging using libthread_db enabled] > [New Thread -150572928 (LWP 7439)] > Error while reading shared library symbols: > : No such file or directory. > Error while reading shared library symbols: > : No such file or directory. > Detaching after fork from child process 7442. > > Program exited normally. > (gdb) > ----- > again none the wiser > > I am running Fedora2, the program made okay with no errors > > tks > iqbal > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
