[SR-Users] Re: Restarts Kamailio after general protection fault

2023-10-17 Thread Daian Conrad via sr-users
Sorry, I forgot to add this information

version: kamailio 5.6.4 (x86_64/linux)
> flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
> F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST,
> HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
> ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024,
> BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled with gcc 8.3.0
>

Em ter., 17 de out. de 2023 às 14:26, Henning Westerholt 
escreveu:

> Hello,
>
>
>
> maybe I missed it, but what version of Kamailio you are using? If its an
> older version, it might be a good idea to update to a maintained version,
> e.g. the latest 5.7.x.
>
>
>
> Regarding further debugging if it happens on a recent version, try to
> generate a core dump. Documentation about that can be found e.g. here
> https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* Daian Conrad via sr-users 
> *Sent:* Dienstag, 17. Oktober 2023 18:41
> *To:* sr-users@lists.kamailio.org
> *Cc:* Daian Conrad 
> *Subject:* [SR-Users] Re: Restarts Kamailio after general protection fault
>
>
>
> More info if some body can help
>
>
>
> Oct 17 13:38:21 proxy kernel: [2471140.725674] kamailio[24471]: segfault
> at 5f96000e ip 5f96000e sp 7ffc26aed398 error 14 in zero
> (deleted)[7f9fd0e6a000+1000]
> Oct 17 13:38:21 proxy kernel: [2471140.744537] Code: Unable to access
> opcode bytes at RIP 0x5f95ffe4.
> Oct 17 13:38:21 proxy /usr/sbin/kamailio[24491]: CRITICAL: 
> [core/pass_fd.c:277]: receive_fd(): EOF on 18
> Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: ALERT: 
> [main.c:774]: handle_sigs(): child process 24471 exited by a signal 11
> Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: ALERT: 
> [main.c:777]: handle_sigs(): core was not generated
> Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: WARNING: tm
> [h_table.c:160]: free_cell_helper(): unexpected tm cell content:
> 0x7f9fd11f3018
> Oct 17 13:38:21 proxy kernel: [2471140.791481] kamailio[24455]: segfault
> at 113d0f3000d ip 7f9fe3b5bc84 sp 7ffc26aed060 error 4 in
> tm.so[7f9fe3b44000+11f000]
> Oct 17 13:38:21 proxy kernel: [2471140.801642] Code: 30 48 8b 45 f0 b9 d2
> 01 00 00 48 8d 15 06 98 10 00 be 01 00 00 00 48 89 c7 e8 25 c8 ff ff 48 8b
> 45 f8 48 89 45 f0 48 8b 45 f0 <48> 8b 00 48 89 45 f8 48 8b 05 2e 81 13 00
> 48 8b 00 8b 55 ec 48 63
> Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Main process exited,
> code=killed, status=11/SEGV
> Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Failed with result
> 'signal'.
> Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Service
> RestartSec=100ms expired, scheduling restart.
> Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Scheduled restart job,
> restart counter is at 33.
> Oct 17 13:38:21 proxy systemd[1]: Stopped Kamailio - the Open Source SIP
> Server.
>
>
>
> Em seg., 16 de out. de 2023 às 21:43, Daian Conrad 
> escreveu:
>
> Hi all,
>
>
>
> I have started using kamailio as a proxy register for asterisk's and works
> fine, but in some moment kamailio show WARNINGs, ALERTS and CRITICAL logs
> and restart.
>
>
>
> I don't no how debug correctly, but the crash show this log lines
>
>
>
> *Oct 16 21:34:26 proxy /usr/sbin/kamailio[2148]: CRITICAL: 
> [core/mem/q_malloc.c:123]: qm_debug_check_frag(): BUG: qm: fragm.
> 0x7f14a27a5ab8 (address 0x7f14a27a5af0) beginning overwritten
> (7f14a27a8e58)! Memory allocator was called from uac: uac_send.c:860.
> Fragment marked by UH**��AWAVAUATSH**��:139726602009368. Exec from
> core/mem/q_malloc.c:511.*
>
>
>
> -
>
>
>
>
>
>
>
>
>
>
>
> *Oct 16 21:39:46 proxy /usr/sbin/kamailio[2556]: CRITICAL: 
> [core/mem/q_malloc.c:123]: qm_debug_check_frag(): BUG: qm: fragm.
> 0x7ff7ad456330 (address 0x7ff7ad456368) beginning overwritten (0)! Memory
> allocator was called from uac: uac_send.c:860. Fragment marked by (null):0.
> Exec from core/mem/q_malloc.c:511. Oct 16 21:39:46 proxy
> /usr/sbin/kamailio[2578]: CRITICAL:  [core/pass_fd.c:277]:
> receive_fd(): EOF on 19 Oct 16 21:39:46 proxy /usr/sbin/kamailio[2539]:
> ALERT:  [main.c:774]: handle_sigs(): child process 2556 exited by a
> signal 6 Oct 1

[SR-Users] Re: Restarts Kamailio after general protection fault

2023-10-17 Thread Henning Westerholt via sr-users
Hello,

maybe I missed it, but what version of Kamailio you are using? If its an older 
version, it might be a good idea to update to a maintained version, e.g. the 
latest 5.7.x.

Regarding further debugging if it happens on a recent version, try to generate 
a core dump. Documentation about that can be found e.g. here 
https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: Daian Conrad via sr-users 
Sent: Dienstag, 17. Oktober 2023 18:41
To: sr-users@lists.kamailio.org
Cc: Daian Conrad 
Subject: [SR-Users] Re: Restarts Kamailio after general protection fault

More info if some body can help

Oct 17 13:38:21 proxy kernel: [2471140.725674] kamailio[24471]: segfault at 
5f96000e ip 5f96000e sp 7ffc26aed398 error 14 in zero 
(deleted)[7f9fd0e6a000+1000]
Oct 17 13:38:21 proxy kernel: [2471140.744537] Code: Unable to access opcode 
bytes at RIP 0x5f95ffe4.
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24491]: CRITICAL:  
[core/pass_fd.c:277]: receive_fd(): EOF on 18
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: ALERT:  [main.c:774]: 
handle_sigs(): child process 24471 exited by a signal 11
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: ALERT:  [main.c:777]: 
handle_sigs(): core was not generated
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: WARNING: tm [h_table.c:160]: 
free_cell_helper(): unexpected tm cell content: 0x7f9fd11f3018
Oct 17 13:38:21 proxy kernel: [2471140.791481] kamailio[24455]: segfault at 
113d0f3000d ip 7f9fe3b5bc84 sp 7ffc26aed060 error 4 in 
tm.so[7f9fe3b44000+11f000]
Oct 17 13:38:21 proxy kernel: [2471140.801642] Code: 30 48 8b 45 f0 b9 d2 01 00 
00 48 8d 15 06 98 10 00 be 01 00 00 00 48 89 c7 e8 25 c8 ff ff 48 8b 45 f8 48 
89 45 f0 48 8b 45 f0 <48> 8b 00 48 89 45 f8 48 8b 05 2e 81 13 00 48 8b 00 8b 55 
ec 48 63
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Main process exited, 
code=killed, status=11/SEGV
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Failed with result 'signal'.
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Service RestartSec=100ms 
expired, scheduling restart.
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Scheduled restart job, 
restart counter is at 33.
Oct 17 13:38:21 proxy systemd[1]: Stopped Kamailio - the Open Source SIP Server.

Em seg., 16 de out. de 2023 às 21:43, Daian Conrad 
mailto:daian.con...@gmail.com>> escreveu:
Hi all,

I have started using kamailio as a proxy register for asterisk's and works 
fine, but in some moment kamailio show WARNINGs, ALERTS and CRITICAL logs and 
restart.

I don't no how debug correctly, but the crash show this log lines

Oct 16 21:34:26 proxy /usr/sbin/kamailio[2148]: CRITICAL:  
[core/mem/q_malloc.c:123]: qm_debug_check_frag(): BUG: qm: fragm. 
0x7f14a27a5ab8 (address 0x7f14a27a5af0) beginning overwritten (7f14a27a8e58)! 
Memory allocator was called from uac: uac_send.c:860. Fragment marked by 
UH��AWAVAUATSH��:139726602009368. Exec from core/mem/q_malloc.c:511.

-

Oct 16 21:39:46 proxy /usr/sbin/kamailio[2556]: CRITICAL:  
[core/mem/q_malloc.c:123]: qm_debug_check_frag(): BUG: qm: fragm. 
0x7ff7ad456330 (address 0x7ff7ad456368) beginning overwritten (0)! Memory 
allocator was called from uac: uac_send.c:860. Fragment marked by (null):0. 
Exec from core/mem/q_malloc.c:511.
Oct 16 21:39:46 proxy /usr/sbin/kamailio[2578]: CRITICAL:  
[core/pass_fd.c:277]: receive_fd(): EOF on 19
Oct 16 21:39:46 proxy /usr/sbin/kamailio[2539]: ALERT:  [main.c:774]: 
handle_sigs(): child process 2556 exited by a signal 6
Oct 16 21:39:46 proxy /usr/sbin/kamailio[2539]: ALERT:  [main.c:777]: 
handle_sigs(): core was not generated
Oct 16 21:39:46 proxy systemd[1]: kamailio.service: Main process exited, 
code=exited, status=1/FAILURE
Oct 16 21:39:46 proxy systemd[1]: kamailio.service: Failed with result 
'exit-code'.
Oct 16 21:39:46 proxy systemd[1]: kamailio.service: Service RestartSec=100ms 
expired, scheduling restart.
Oct 16 21:39:46 proxy systemd[1]: kamailio.service: Scheduled restart job, 
restart counter is at 9.
Oct 16 21:39:46 proxy systemd[1]: Stopped Kamailio - the Open Source SIP Server.


any advice is apreciated

--

**Daian Conrad**

E-mail: daian.con...@gmail.com<mailto:daian.con...@gmail.com>
OpenS Team (DaCoD)
Linux user: #248912

Linux user: #248912


__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Restarts Kamailio after general protection fault

2023-10-17 Thread Daian Conrad via sr-users
More info if some body can help

Oct 17 13:38:21 proxy kernel: [2471140.725674] kamailio[24471]: segfault at
5f96000e ip 5f96000e sp 7ffc26aed398 error 14 in zero
(deleted)[7f9fd0e6a000+1000]
Oct 17 13:38:21 proxy kernel: [2471140.744537] Code: Unable to access
opcode bytes at RIP 0x5f95ffe4.
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24491]: CRITICAL: 
[core/pass_fd.c:277]: receive_fd(): EOF on 18
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: ALERT: 
[main.c:774]: handle_sigs(): child process 24471 exited by a signal 11
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: ALERT: 
[main.c:777]: handle_sigs(): core was not generated
Oct 17 13:38:21 proxy /usr/sbin/kamailio[24455]: WARNING: tm
[h_table.c:160]: free_cell_helper(): unexpected tm cell content:
0x7f9fd11f3018
Oct 17 13:38:21 proxy kernel: [2471140.791481] kamailio[24455]: segfault at
113d0f3000d ip 7f9fe3b5bc84 sp 7ffc26aed060 error 4 in
tm.so[7f9fe3b44000+11f000]
Oct 17 13:38:21 proxy kernel: [2471140.801642] Code: 30 48 8b 45 f0 b9 d2
01 00 00 48 8d 15 06 98 10 00 be 01 00 00 00 48 89 c7 e8 25 c8 ff ff 48 8b
45 f8 48 89 45 f0 48 8b 45 f0 <48> 8b 00 48 89 45 f8 48 8b 05 2e 81 13 00
48 8b 00 8b 55 ec 48 63
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Main process exited,
code=killed, status=11/SEGV
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Failed with result
'signal'.
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Service
RestartSec=100ms expired, scheduling restart.
Oct 17 13:38:21 proxy systemd[1]: kamailio.service: Scheduled restart job,
restart counter is at 33.
Oct 17 13:38:21 proxy systemd[1]: Stopped Kamailio - the Open Source SIP
Server.

Em seg., 16 de out. de 2023 às 21:43, Daian Conrad 
escreveu:

> Hi all,
>
> I have started using kamailio as a proxy register for asterisk's and works
> fine, but in some moment kamailio show WARNINGs, ALERTS and CRITICAL logs
> and restart.
>
> I don't no how debug correctly, but the crash show this log lines
>
>
> *Oct 16 21:34:26 proxy /usr/sbin/kamailio[2148]: CRITICAL: 
> [core/mem/q_malloc.c:123]: qm_debug_check_frag(): BUG: qm: fragm.
> 0x7f14a27a5ab8 (address 0x7f14a27a5af0) beginning overwritten
> (7f14a27a8e58)! Memory allocator was called from uac: uac_send.c:860.
> Fragment marked by UH��AWAVAUATSH��:139726602009368. Exec from
> core/mem/q_malloc.c:511.*
>
> -
>
>
>
>
>
>
>
>
>
>
> *Oct 16 21:39:46 proxy /usr/sbin/kamailio[2556]: CRITICAL: 
> [core/mem/q_malloc.c:123]: qm_debug_check_frag(): BUG: qm: fragm.
> 0x7ff7ad456330 (address 0x7ff7ad456368) beginning overwritten (0)! Memory
> allocator was called from uac: uac_send.c:860. Fragment marked by (null):0.
> Exec from core/mem/q_malloc.c:511.Oct 16 21:39:46 proxy
> /usr/sbin/kamailio[2578]: CRITICAL:  [core/pass_fd.c:277]:
> receive_fd(): EOF on 19Oct 16 21:39:46 proxy /usr/sbin/kamailio[2539]:
> ALERT:  [main.c:774]: handle_sigs(): child process 2556 exited by a
> signal 6Oct 16 21:39:46 proxy /usr/sbin/kamailio[2539]: ALERT: 
> [main.c:777]: handle_sigs(): core was not generatedOct 16 21:39:46 proxy
> systemd[1]: kamailio.service: Main process exited, code=exited,
> status=1/FAILUREOct 16 21:39:46 proxy systemd[1]: kamailio.service: Failed
> with result 'exit-code'.Oct 16 21:39:46 proxy systemd[1]: kamailio.service:
> Service RestartSec=100ms expired, scheduling restart.Oct 16 21:39:46 proxy
> systemd[1]: kamailio.service: Scheduled restart job, restart counter is at
> 9.Oct 16 21:39:46 proxy systemd[1]: Stopped Kamailio - the Open Source SIP
> Server.*
>
>
> any advice is apreciated
>
> --
> 
> **Daian Conrad**
>
> E-mail: daian.con...@gmail.com
> OpenS Team (DaCoD)
> Linux user: #248912
>
>
>

-- 

**Daian Conrad**

E-mail: daian.con...@gmail.com
OpenS Team (DaCoD)
Linux user: #248912
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: