[SR-Users] kamailio rabbitmq segfault

Rick Barenthin dunst0 at gmail.com
Thu Jan 10 11:47:44 CET 2019


Hi,

Just a little question, did you set any module parameter? Because in the
stacktrace it looks like the amqp URL is set to "guest:guest at localhost
:5672/%2F".

Am Mi., 9. Jan. 2019, 19:50 hat Dmitri Savolainen <savolainen at erinaco.ru>
geschrieben:

> Can you please try the bt full to get full trace?
>
>
> (gdb) bt full
> #0  find_delim (pp=pp at entry=0x7fff0ecf6568,
> colon_and_at_sign_are_delims=colon_and_at_sign_are_delims at entry=1)
>     at /usr/src/debug/rabbitmq-c-0.8.0/librabbitmq/amqp_url.c:109
>         ch = 103 'g'
>         from = 0x7f1838790ab8 "uest:guest at localhost:5672/%2F"
>         to = 0x7f1838790ab8 "uest:guest at localhost:5672/%2F"
> #1  0x00007f183857bb73 in amqp_parse_url (url=0x7f1838790ab7
> "guest:guest at localhost:5672/%2F", parsed=0x7f1838994440 <amqp_info>)
>     at /usr/src/debug/rabbitmq-c-0.8.0/librabbitmq/amqp_url.c:137
>         res = -8
>         delim = <optimized out>
>         start = 0x7f1838790ab7 "guest:guest at localhost:5672/%2F"
>         host = 0x7f1838790ab7 "guest:guest at localhost:5672/%2F"
>         port = 0x0
> #2  0x00007f1838785068 in mod_init () at rabbitmq.c:153
>         __FUNCTION__ = "mod_init"
> #3  0x000000000055cbd4 in init_mod (m=0x7f183f4782f0) at
> core/sr_module.c:910
>         __FUNCTION__ = "init_mod"
> #4  0x000000000055c90f in init_mod (m=0x7f183f479728) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #5  0x000000000055c90f in init_mod (m=0x7f183f47b050) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #6  0x000000000055c90f in init_mod (m=0x7f183f47b728) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #7  0x000000000055c90f in init_mod (m=0x7f183f47bed8) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #8  0x000000000055c90f in init_mod (m=0x7f183f47c850) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #9  0x000000000055c90f in init_mod (m=0x7f183f47e398) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #10 0x000000000055c90f in init_mod (m=0x7f183f47e840) at
> core/sr_module.c:907
>         __FUNCTION__ = "init_mod"
> #11 0x000000000055cf0c in init_modules () at core/sr_module.c:939
>         t = 0xffffffff
>         i = -1
>         __FUNCTION__ = "init_modules"
> #12 0x000000000042bc9e in main (argc=5, argv=0x7fff0ecf6df8) at main.c:2608
>         cfg_stream = 0x196e010
>         c = -1
>         r = 248474720
>         tmp = 0x7f18405e2a68 "\230)^@\030\177"
>         tmp_len = 0
>         port = 0
>         proto = 0
> ---Type <return> to continue, or q <return> to quit---
>         options = 0x772588
> ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
>         ret = -1
>         seed = 2312464215
>         rfd = 4
>         debug_save = 0
>         debug_flag = 0
>         dont_fork_cnt = 0
>         n_lst = 0x2
>         p = 0x0
>         st = {st_dev = 65, st_ino = 53864310, st_nlink = 2, st_mode =
> 16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40,
> st_blksize = 4096,
>           st_blocks = 0, st_atim = {tv_sec = 1547033509, tv_nsec =
> 33940665}, st_mtim = {tv_sec = 1547049759, tv_nsec = 197964743}, st_ctim =
> {tv_sec = 1547049759,
>             tv_nsec = 197964743}, __unused = {0, 0, 0}}
>         __FUNCTION__ = "main"
>
>
> On Wed, 9 Jan 2019 at 21:14, Rick Barenthin <dunst0 at gmail.com> wrote:
>
>> Hi,
>>
>> Can you please try the bt full to get full trace?
>>
>> Greetings
>> Rick
>>
>> Am Mi., 9. Jan. 2019, 17:16 hat Dmitri Savolainen <savolainen at erinaco.ru>
>> geschrieben:
>>
>>> Hello.
>>> I also have segfault for current master just after adding  'loadmodule
>>> "rabbitmq.so"' string to cfg file (centos7).
>>> Here is my backtrace:
>>>
>>> [root at centos_new sbin]#  gdb -c /tmp/core.30978  -f
>>> /usr/local/dev_kamailio/sbin/kamailio
>>> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
>>> Copyright (C) 2013 Free Software Foundation, Inc.
>>> License GPLv3+: GNU GPL version 3 or later <
>>> http://gnu.org/licenses/gpl.html>
>>> This is free software: you are free to change and redistribute it.
>>> There is NO WARRANTY, to the extent permitted by law.  Type "show
>>> copying"
>>> and "show warranty" for details.
>>> This GDB was configured as "x86_64-redhat-linux-gnu".
>>> For bug reporting instructions, please see:
>>> <http://www.gnu.org/software/gdb/bugs/>...
>>> Reading symbols from /usr/local/dev_kamailio/sbin/kamailio...done.
>>> [New LWP 30978]
>>> [Thread debugging using libthread_db enabled]
>>> Using host libthread_db library "/lib64/libthread_db.so.1".
>>> Core was generated by `./kamailio -P /var/run/kamailio/kamailio.pid -f
>>> /usr/local/dev_kamailio/etc/kam'.
>>> Program terminated with signal 11, Segmentation fault.
>>> #0  find_delim (pp=pp at entry=0x7fff0ecf6568,
>>> colon_and_at_sign_are_delims=colon_and_at_sign_are_delims at entry=1) at
>>> /usr/src/debug/rabbitmq-c-0.8.0/librabbitmq/amqp_url.c:109
>>>
>>> /usr/src/debug/rabbitmq-c-0.8.0/librabbitmq/amqp_url.c:109:2885:beg:0x7f183857ba01
>>> (gdb) bt
>>> #0  find_delim (pp=pp at entry=0x7fff0ecf6568,
>>> colon_and_at_sign_are_delims=colon_and_at_sign_are_delims at entry=1) at
>>> /usr/src/debug/rabbitmq-c-0.8.0/librabbitmq/amqp_url.c:109
>>> #1  0x00007f183857bb73 in amqp_parse_url (url=0x7f1838790ab7
>>> "guest:guest at localhost:5672/%2F", parsed=0x7f1838994440 <amqp_info>) at
>>> /usr/src/debug/rabbitmq-c-0.8.0/librabbitmq/amqp_url.c:137
>>> #2  0x00007f1838785068 in mod_init () at rabbitmq.c:153
>>> #3  0x000000000055cbd4 in init_mod (m=0x7f183f4782f0) at
>>> core/sr_module.c:910
>>> #4  0x000000000055c90f in init_mod (m=0x7f183f479728) at
>>> core/sr_module.c:907
>>> #5  0x000000000055c90f in init_mod (m=0x7f183f47b050) at
>>> core/sr_module.c:907
>>> #6  0x000000000055c90f in init_mod (m=0x7f183f47b728) at
>>> core/sr_module.c:907
>>> #7  0x000000000055c90f in init_mod (m=0x7f183f47bed8) at
>>> core/sr_module.c:907
>>> #8  0x000000000055c90f in init_mod (m=0x7f183f47c850) at
>>> core/sr_module.c:907
>>> #9  0x000000000055c90f in init_mod (m=0x7f183f47e398) at
>>> core/sr_module.c:907
>>> #10 0x000000000055c90f in init_mod (m=0x7f183f47e840) at
>>> core/sr_module.c:907
>>> #11 0x000000000055cf0c in init_modules () at core/sr_module.c:939
>>> #12 0x000000000042bc9e in main (argc=5, argv=0x7fff0ecf6df8) at
>>> main.c:2608
>>> (gdb)
>>>
>>>
>>> On Mon, 11 Jun 2018 at 09:35, Daniel-Constantin Mierla <
>>> miconda at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> did you get a core dump file? If yes, can you send the backtrace taken
>>>> with gdb?
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>>
>>>> On 09.06.18 15:10, Sylvain Boily wrote:
>>>> > Hello,
>>>> >
>>>> > I tried to test the rabbitmq module in kamailio with the debian 9 repo
>>>> > from kamailio.org but there is a segfault when the service is
>>>> > launched. Is there is people also have this issue?
>>>> >
>>>> > /etc/init.d/kamailio restart
>>>> > [....] Restarting kamailio (via systemctl): kamailio.serviceJun  9
>>>> > 13:02:03 siprouter kamailio: DEBUG: <core> [core/cfg.y:1659]:
>>>> > yyparse(): loading module rabbitmq.so
>>>> > Jun  9 13:02:03 siprouter kamailio: DEBUG: <core>
>>>> > [core/sr_module.c:575]: load_module(): trying to load
>>>> > </usr/lib/x86_64-linux-gnu/kamailio/modules/rabbitmq.so>
>>>> > Jun  9 13:02:03 siprouter kamailio: DEBUG: <core> [core/kemi.c:1295]:
>>>> > sr_kemi_modules_add(): adding module: rabbitmq
>>>> > Jun  9 13:02:03 siprouter kamailio: DEBUG: <core> [core/cfg.lex:1737]:
>>>> > pp_define(): defining id: MOD_rabbitmq
>>>> > Jun  9 13:02:03 siprouter kernel: [159315.610811] kamailio[13226]:
>>>> > segfault at 7f03b2296287 ip 00007f03b2080ca3 sp 00007fff133285c0 error
>>>> > 7 in librabbitmq.so.4.2.0[7f03b2074000+13000]
>>>> > Jun  9 13:02:03 siprouter /usr/sbin/kamailio[13226]: DEBUG: <core>
>>>> > [core/sr_module.c:988]: init_mod(): rabbitmq
>>>> >
>>>> > Sylvain
>>>> >
>>>> > _______________________________________________
>>>> > Kamailio (SER) - Users Mailing List
>>>> > sr-users at lists.kamailio.org
>>>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>> --
>>>> Daniel-Constantin Mierla -- www.asipto.com
>>>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>>>> Kamailio World Conference -- www.kamailioworld.com
>>>>
>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>
>>>
>>> --
>>> Savolainen Dmitri
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> --
> Savolainen Dmitri
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190110/57f24eb2/attachment.html>


More information about the sr-users mailing list