Re: [SR-Users] Segmentation fault when loading dialplan

2011-01-03 Thread Javier Gallart
Thanks Juha...that was it. Regards Javi On Mon, Jan 3, 2011 at 4:37 PM, Juha Heinanen wrote: > Javier Gallart writes: > > > ,whereas the mi command output is: > > sercmd> mi dp_translate 1 "01123456789" > > try > > mi dp_translate 1 s:01123456789 > > -- juha > __

Re: [SR-Users] Segmentation fault when loading dialplan

2011-01-03 Thread Juha Heinanen
Javier Gallart writes: > ,whereas the mi command output is: > sercmd> mi dp_translate 1 "01123456789" try mi dp_translate 1 s:01123456789 -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.or

Re: [SR-Users] Segmentation fault when loading dialplan

2011-01-03 Thread Javier Gallart
Hi Daniel thanks for looking into this issue...it works now!. Kamailio is starting up smoothly with the latest git loading a non-empty diaplan. I've tested the dp_translate() function in the config and it also works fine. There is a small problem with the "mi dp_translate" command. This is the di

Re: [SR-Users] Segmentation fault when loading dialplan

2011-01-03 Thread Daniel-Constantin Mierla
Hi Javier, I got access to a troubleshooting environment where the issue could be reproduced. So now it is fixed on latest version of branch 3.1. Please give it a try and let me know if works ok for you. It was a 32b to 64b issues with a parameter given to pcre library (the reason didn't repr

Re: [SR-Users] Segmentation fault when loading dialplan

2010-12-06 Thread Javier Gallart
Hi Daniel it's a clean 64 bit instalallation. This is the list of loaded modules: loadmodule "db_mysql.so" #!endif loadmodule "db_postgres.so" loadmodule "mi_fifo.so" loadmodule "debugger.so" loadmodule "kex.so" loadmodule "tm.so" loadmodule "tmx.so" loadmodule "sl.so" loadmodule "rr.so" loadmodu

Re: [SR-Users] Segmentation fault when loading dialplan

2010-12-06 Thread Daniel-Constantin Mierla
Hello, On 12/6/10 11:08 AM, Javier Gallart wrote: Hello I haven't been able to fix this problem yet. Has anyone run into a similar issue? is it a clean 64b install, or is a mixed 32b - 64b. I wonder if the modules are linked to a different version of the library. I will try to get to a 64b

Re: [SR-Users] Segmentation fault when loading dialplan

2010-12-06 Thread Javier Gallart
Hello I haven't been able to fix this problem yet. Has anyone run into a similar issue? Thanks Javi On Sun, Nov 28, 2010 at 5:39 PM, Javier Gallart wrote: > Hi > > as you say, it also works for me in a 32b architechture (same kamailio > version,db drivers, insert command, configuration...). I

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-28 Thread Javier Gallart
Hi as you say, it also works for me in a 32b architechture (same kamailio version,db drivers, insert command, configuration...). I've tried to load the same configuration in 2 different Ubuntu 10.04 64b and it fails in both. I've applied the ulimit command and then Ive started kamailio with -w /t

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-27 Thread Daniel-Constantin Mierla
Helllo, On 11/27/10 9:32 AM, Javier Gallart wrote: Hi sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031 be sure you do: ulimit -c unlimited Then give -w parameter with a path where is writabl

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-27 Thread Javier Gallart
Hi sorry if i didn't make myself clear. It's not starting and no core files are generated either. The startup logs are at http://pastebin.ca/2002031 best regards javi On Fri, Nov 26, 2010 at 7:56 PM, Daniel-Constantin Mierla wrote: > Hello, > > > On 11/26/10 4:30 PM, Javier Gallart wrote: >

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-26 Thread Daniel-Constantin Mierla
Hello, On 11/26/10 4:30 PM, Javier Gallart wrote: Hi Daniel no core files are generated after the last upgrade... so now is starting ok? Or still fails but no core are generated? Cheers, DAniel Javi On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla mailto:mico...@gmail.com>>

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-26 Thread Javier Gallart
Hi Daniel no core files are generated after the last upgrade... Javi On Fri, Nov 26, 2010 at 12:32 PM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > > On 11/26/10 12:12 PM, Javier Gallart wrote: > > Hi Daniel > > sorry but I'm deeply ignorant of gdb, this is what I get w

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-26 Thread Daniel-Constantin Mierla
Hello, On 11/26/10 12:12 PM, Javier Gallart wrote: Hi Daniel sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it: use gdb for the core file: gdb /path/to/kamailio /path/to/corefile Then do the commands I sent. Cheers, Daniel gdb --args ./kamailio -f ../etc/kam

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-26 Thread Javier Gallart
Hi Daniel sorry but I'm deeply ignorant of gdb, this is what I get when I try to run it: gdb --args ./kamailio -f ../etc/kamailio/kamailio.cfg GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-25 Thread Daniel-Constantin Mierla
On 11/25/10 4:54 PM, Javier Gallart wrote: Hi Daniel I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-25 Thread Javier Gallart
Hi Daniel I completely reinstalled the OS and installed the latest kamailio git, but the problem persists, although no core is generated now. Apparently it does not depend on the db engine, same thing happens for mysql and postgres. You can see the full log here: http://pastebin.ca/2002031 The arc

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-24 Thread Daniel-Constantin Mierla
Hello, On 11/23/10 12:36 PM, Javier Gallart wrote: Hi, same result after adding a second row in the table. I just did a configuration file with dialplan and a record like you showed and it started ok. My log messages are pasted next: 0(10267) DEBUG: db_mysql [km_res.c:136]: use DB1_STRING r

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-23 Thread Javier Gallart
Hi, same result after adding a second row in the table. Regards Javier On Tue, Nov 23, 2010 at 11:17 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Thanks, I will look over it and try to reproduce in the lab, it may take a > bit since I am pretty much time offline these days. > >

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-23 Thread Daniel-Constantin Mierla
Thanks, I will look over it and try to reproduce in the lab, it may take a bit since I am pretty much time offline these days. Can you add a second rule and see what happens? At the first sight of the debug messages, the result from database is ok, should not be a null value there. Cheers, D

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-23 Thread Javier Gallart
Thanks Daniel you can find both the gdb and ./kamailio output at http://pastebin.ca/1999786 Regards Javier On Mon, Nov 22, 2010 at 10:19 PM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > > On 11/22/10 5:32 PM, Javier Gallart wrote: > > Hello > >

Re: [SR-Users] Segmentation fault when loading dialplan

2010-11-22 Thread Daniel-Constantin Mierla
Hello, On 11/22/10 5:32 PM, Javier Gallart wrote: Hello I'd like to do some tests with the dialplan module, but Kamailio is crashing when it loads it. Actually the module is properly loaded if the table is empty, but it fails when a row is added; so I guess it's related with the way I've ins