Good evening.
I have errors on the server (kamailio v 5.1.0) "kamailio [30529]: segfault at 0 ip 00007f9c00c29cfb sp 00007fffa9808310 error 4 in drouting.so [7f9c00c26000 + 39000]" which cause the service to stop. Although the drouting module has been used for a long time, this has never happened. This was done after adding the functions of the dispatcher module. What could be the reason ?
Example error in system kamailio [20728]: segfault at 0 ip 00007f32c1c8fcfb sp 00007fff78430d00 error 4 in drouting.so [7f32c1c8c000 + 39000]
in the logs of kamailio 018-09-08T22: 30: 29.0448 "ALERT: <core> [main.c: 746]: handle_sigs (): child process 10556 exited by a signal 11" 2018-09-08T22: 30: 29.0452 "ALERT: <core> [main.c: 749]: handle_sigs (): core was generated" 2018-09-08T22: 30: 29.0456 "INFO: <core> [main.c: 771]: handle_sigs (): terminating due to SIGCHLD"
Hello,
if you are using v5.1.0, then you have upgrade to latest 5.1 branch and try again, there were some fixes to drouting module that could cause the issue in your case as well.
Cheers, Daniel
On 10.09.18 09:22, Евгений Голей wrote:
Good evening.
I have errors on the server (kamailio v 5.1.0) "kamailio [30529]: segfault at 0 ip 00007f9c00c29cfb sp 00007fffa9808310 error 4 in drouting.so [7f9c00c26000 + 39000]" which cause the service to stop. Although the drouting module has been used for a long time, this has never happened. This was done after adding the functions of the dispatcher module. What could be the reason ?
Example error in system kamailio [20728]: segfault at 0 ip 00007f32c1c8fcfb sp 00007fff78430d00 error 4 in drouting.so [7f32c1c8c000 + 39000]
in the logs of kamailio 018-09-08T22: 30: 29.0448 "ALERT: <core> [main.c: 746]: handle_sigs (): child process 10556 exited by a signal 11" 2018-09-08T22: 30: 29.0452 "ALERT: <core> [main.c: 749]: handle_sigs (): core was generated" 2018-09-08T22: 30: 29.0456 "INFO: <core> [main.c: 771]: handle_sigs (): terminating due to SIGCHLD"
-- B.R. Evgeniy
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Many thanks!
Понедельник, 10 сентября 2018, 13:21 +03:00 от Daniel-Constantin Mierla miconda@gmail.com:
Hello,
if you are using v5.1.0, then you have upgrade to latest 5.1 branch and try again, there were some fixes to drouting module that could cause the issue in your case as well.
Cheers, Daniel
On 10.09.18 09:22, Евгений Голей wrote:
Good evening.
I have errors on the server (kamailio v 5.1.0) "kamailio [30529]: segfault at 0 ip 00007f9c00c29cfb sp 00007fffa9808310 error 4 in drouting.so [7f9c00c26000 + 39000]" which cause the service to stop. Although the drouting module has been used for a long time, this has never happened. This was done after adding the functions of the dispatcher module. What could be the reason ?
Example error in system kamailio [20728]: segfault at 0 ip 00007f32c1c8fcfb sp 00007fff78430d00 error 4 in drouting.so [7f32c1c8c000 + 39000]
in the logs of kamailio 018-09-08T22: 30: 29.0448 "ALERT: <core> [main.c: 746]: handle_sigs (): child process 10556 exited by a signal 11" 2018-09-08T22: 30: 29.0452 "ALERT: <core> [main.c: 749]: handle_sigs (): core was generated" 2018-09-08T22: 30: 29.0456 "INFO: <core> [main.c: 771]: handle_sigs (): terminating due to SIGCHLD"
-- B.R. Evgeniy
Kamailio (SER) - Users Mailing List sr-users@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 Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
I tried the same on versions 5.1.4 and 5.1.5. I just load the module, without using its functions in the configuration file.
kamailio[2725]: segfault at 0 ip 00007f7a76cc4cfb sp 00007fff4c640bb0 error 4 in drouting.so[7f7a76cc1000+39000]
When a crased kamailio creates a core dump, I can forward it
What could be the reason ?
Понедельник, 10 сентября 2018, 13:21 +03:00 от Daniel-Constantin Mierla miconda@gmail.com:
Hello,
if you are using v5.1.0, then you have upgrade to latest 5.1 branch and try again, there were some fixes to drouting module that could cause the issue in your case as well.
Cheers, Daniel
On 10.09.18 09:22, Евгений Голей wrote:
Good evening.
I have errors on the server (kamailio v 5.1.0) "kamailio [30529]: segfault at 0 ip 00007f9c00c29cfb sp 00007fffa9808310 error 4 in drouting.so [7f9c00c26000 + 39000]" which cause the service to stop. Although the drouting module has been used for a long time, this has never happened. This was done after adding the functions of the dispatcher module. What could be the reason ?
Example error in system kamailio [20728]: segfault at 0 ip 00007f32c1c8fcfb sp 00007fff78430d00 error 4 in drouting.so [7f32c1c8c000 + 39000]
in the logs of kamailio 018-09-08T22: 30: 29.0448 "ALERT: <core> [main.c: 746]: handle_sigs (): child process 10556 exited by a signal 11" 2018-09-08T22: 30: 29.0452 "ALERT: <core> [main.c: 749]: handle_sigs (): core was generated" 2018-09-08T22: 30: 29.0456 "INFO: <core> [main.c: 771]: handle_sigs (): terminating due to SIGCHLD"
-- B.R. Evgeniy
Kamailio (SER) - Users Mailing List sr-users@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 Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Am Montag, 10. September 2018, 20:17:27 CEST schrieb Евгений Голей:
I tried the same on versions 5.1.4 and 5.1.5. I just load the module, without using its functions in the configuration file.
kamailio[2725]: segfault at 0 ip 00007f7a76cc4cfb sp 00007fff4c640bb0 error 4 in drouting.so[7f7a76cc1000+39000]
When a crased kamailio creates a core dump, I can forward it
What could be the reason ?
Hello,
this is hard to guess. Could you please open the core dump with gdb and post the backtrace (gdb bt) here?
Best regards,
Henning
Good evening, look, did I do the right thing ?
[user@sip]# gdb /usr/local/kamailio515/sbin/gwkamailio -c /usr/local/kamailio515/core.5138 GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.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/kamailio515/sbin/gwkamailio...done. [New LWP 5138] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `/usr/local/kamailio515/sbin/gwkamailio -DD -P /var/run/kamailio/gwkamailio515.p'. Program terminated with signal 11, Segmentation fault. #0 0x00007f8b28c3ccfb in get_prefix (ptree=0x7f8b2ba08728, prefix=0x7fffcdf731d0, rgid=1) at prefix_tree.c:126 126 idx = get_node_index(*tmp); Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.1.x86_64 hiredis-0.12.1-1.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-16.el7_4.2.x86_64 libselinux-2.5-6.el7.x86_64 libstdc++-4.8.5-16.el7_4.2.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64 (gdb)
Where should I place this text?
Понедельник, 10 сентября 2018, 23:08 +03:00 от Henning Westerholt hw@kamailio.org:
Am Montag, 10. September 2018, 20:17:27 CEST schrieb Евгений Голей:
I tried the same on versions 5.1.4 and 5.1.5. I just load the module, without using its functions in the configuration file.
kamailio[2725]: segfault at 0 ip 00007f7a76cc4cfb sp 00007fff4c640bb0 error 4 in drouting.so[7f7a76cc1000+39000]
When a crased kamailio creates a core dump, I can forward it
What could be the reason ?
Hello,
this is hard to guess. Could you please open the core dump with gdb and post the backtrace (gdb bt) here?
Best regards,
Henning
-- Henning Westerholt https://skalatan.de/blog/
Hello!
I was helped to make changes to the source file /src/modules/drouting/prefix_tree.c line 101 It was if (NULL == prefix) has become if (NULL == prefix || NULL == prefix-> s).
Понедельник, 10 сентября 2018, 23:49 +03:00 от Евгений Голей goley_ev_sp@mail.ru:
Good evening, look, did I do the right thing ?
[user@sip]# gdb /usr/local/kamailio515/sbin/gwkamailio -c /usr/local/kamailio515/core.5138 GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.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/kamailio515/sbin/gwkamailio...done. [New LWP 5138] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `/usr/local/kamailio515/sbin/gwkamailio -DD -P /var/run/kamailio/gwkamailio515.p'. Program terminated with signal 11, Segmentation fault. #0 0x00007f8b28c3ccfb in get_prefix (ptree=0x7f8b2ba08728, prefix=0x7fffcdf731d0, rgid=1) at prefix_tree.c:126 126 idx = get_node_index(*tmp); Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.1.x86_64 hiredis-0.12.1-1.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-16.el7_4.2.x86_64 libselinux-2.5-6.el7.x86_64 libstdc++-4.8.5-16.el7_4.2.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64 (gdb)
Where should I place this text?
Понедельник, 10 сентября 2018, 23:08 +03:00 от Henning Westerholt < hw@kamailio.org >:
Am Montag, 10. September 2018, 20:17:27 CEST schrieb Евгений Голей:
I tried the same on versions 5.1.4 and 5.1.5. I just load the module, without using its functions in the configuration file.
kamailio[2725]: segfault at 0 ip 00007f7a76cc4cfb sp 00007fff4c640bb0 error 4 in drouting.so[7f7a76cc1000+39000]
When a crased kamailio creates a core dump, I can forward it
What could be the reason ?
Hello,
this is hard to guess. Could you please open the core dump with gdb and post the backtrace (gdb bt) here?
Best regards,
Henning
-- Henning Westerholt https://skalatan.de/blog/
B.R.Evgeniy
Am Mittwoch, 12. September 2018, 21:16:21 CEST schrieb Евгений Голей:
I was helped to make changes to the source file /src/modules/drouting/prefix_tree.c line 101 It was if (NULL == prefix) has become if (NULL == prefix || NULL == prefix-> s).
Понедельник, 10 сентября 2018, 23:49 +03:00 от Евгений Голей goley_ev_sp@mail.ru:
Good evening, look, did I do the right thing ?
Hello,
in the previous command you missed the execution of "bt" - this will give you the complete backtrace.
But you already found it, great. This bug is already fixed in master, 5.0 and 5.1 branch since 23. August. It will included in the next usual release of this branches.
Best regards,
Henning