[Asterisk-Users] asterisk + rate_engine (trollphone) core dump

Iqbal iqbal at gigo.co.uk
Tue Oct 26 02:50:33 MST 2004


Hi

thnaks, i just followed the docs on the voip wiki, anyhow thanks for the
info I tried again, and this is what I get

0x00b730f0 in ____strtol_l_internal () from /lib/tls/libc.so.6
#1  0x00b72e91 in __strtol_internal () from /lib/tls/libc.so.6
#2  0x00256f99 in load_rates (cli=1) at stdlib.h:317
#3  0x00257655 in load_module () at rate_engine.c:2060
#4  0x08056a39 in ast_load_resource (resource_name=0x93fb937
"rate_engine.so")
    at loader.c:333
#5  0x08057320 in load_modules () at loader.c:428
#6  0x0809bdec in main (argc=-18537600, argv=0x809d1e0) at asterisk.c:1844

hope that helps someone

tks
Iqbal

On 10/26/2004, "Matthew Boehm" <mboehm at cytelcom.com> wrote:

>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 <iqbal at gigo.co.uk>
>> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
>> <asterisk-users at lists.digium.com>
>> Date: Mon, 25 Oct 2004 22:49:12 +0100
>> To: <asterisk-users at lists.digium.com>
>> 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
>> Asterisk-Users at lists.digium.com
>> 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
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>



More information about the asterisk-users mailing list