{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1522","repository_url":"https://api.github.com/repos/OpenSIPS/opensips","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1522/labels{/name}","comments_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1522/comments","events_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1522/events","html_url":"https://github.com/OpenSIPS/opensips/issues/1522","id":376794190,"node_id":"MDU6SXNzdWUzNzY3OTQxOTA=","number":1522,"title":"segfault in acc.so opensips 2.4.2","user":{"login":"recourse","id":6487944,"node_id":"MDQ6VXNlcjY0ODc5NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6487944?v=4","gravatar_id":"","url":"https://api.github.com/users/recourse","html_url":"https://github.com/recourse","followers_url":"https://api.github.com/users/recourse/followers","following_url":"https://api.github.com/users/recourse/following{/other_user}","gists_url":"https://api.github.com/users/recourse/gists{/gist_id}","starred_url":"https://api.github.com/users/recourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recourse/subscriptions","organizations_url":"https://api.github.com/users/recourse/orgs","repos_url":"https://api.github.com/users/recourse/repos","events_url":"https://api.github.com/users/recourse/events{/privacy}","received_events_url":"https://api.github.com/users/recourse/received_events","type":"User","site_admin":false},"labels":[{"id":39042785,"node_id":"MDU6TGFiZWwzOTA0Mjc4NQ==","url":"https://api.github.com/repos/OpenSIPS/opensips/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"bogdan-iancu","id":3973594,"node_id":"MDQ6VXNlcjM5NzM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3973594?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false},"assignees":[{"login":"bogdan-iancu","id":3973594,"node_id":"MDQ6VXNlcjM5NzM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3973594?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OpenSIPS/opensips/milestones/11","html_url":"https://github.com/OpenSIPS/opensips/milestone/11","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/milestones/11/labels","id":2439017,"node_id":"MDk6TWlsZXN0b25lMjQzOTAxNw==","number":11,"title":"2.4.4","description":"","creator":{"login":"bogdan-iancu","id":3973594,"node_id":"MDQ6VXNlcjM5NzM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3973594?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":59,"state":"open","created_at":"2017-04-06T09:11:31Z","updated_at":"2018-12-08T18:28:50Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-11-02T12:40:49Z","updated_at":"2018-12-11T15:25:17Z","closed_at":null,"author_association":"NONE","body":"Been seeing segfault/crash in opensips 2.4.2 on centos 7 boxes that have accounting records being written to disk. \r\n\r\nFrom opensips log\r\n\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22121]: CRITICAL:core:sig_usr: segfault in process pid: 22121, id: 10\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:handle_sigs: child process 22121 exited by a signal 11\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:handle_sigs: core was not generated\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:handle_sigs: terminating due to SIGCHLD\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22113]: INFO:core:sig_usr: signal 15 received\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22115]: INFO:core:sig_usr: signal 15 received\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 1(22112) [SNMP AgentX] terminated, still waiting for 11 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 2(22113) [MI FIFO] terminated, still waiting for 10 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 4(22115) [timer] terminated, still waiting for 9 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 5(22116) [SIP receiver udp:173.230.154.13:5060 ] terminated, still waiting for 8 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 6(22117) [SIP receiver udp:173.230.154.13:5060 ] terminated, still waiting for 7 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 7(22118) [SIP receiver udp:173.230.154.13:5060 ] terminated, still waiting for 6 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 8(22119) [SIP receiver udp:173.230.154.13:5060 ] terminated, still waiting for 5 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 9(22120) [SIP receiver udp:45.79.89.165:5060 ] terminated, still waiting for 4 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 11(22122) [SIP receiver udp:45.79.89.165:5060 ] terminated, still waiting for 3 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22114]: INFO:core:sig_usr: signal 15 received\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 12(22123) [SIP receiver udp:45.79.89.165:5060 ] terminated, still waiting for 2 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 3(22114) [time_keeper] terminated, still waiting for 1 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:shutdown_opensips: process 13(22124) [Timer handler] terminated, still waiting for 0 more\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:core:cleanup: cleanup\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:snmpstats:mod_destroy: The SNMPStats module got the kill signal\r\nOct 30 19:52:50 tfre-west /usr/local/opensips/sbin/opensips[22110]: INFO:snmpstats:mod_destroy: Shutting down the AgentX Sub-Agent!\r\n\r\n\r\nFrom dmesg - \r\n\r\n[Tue Oct 30 19:53:05 2018] opensips[22121]: segfault at 0 ip 00007f5c2beca3f8 sp 00007ffe1864ae10 error 6 in acc.so[7f5c2beb6000+25000]\r\n\r\n opensips -V\r\nversion: opensips 2.4.2 (x86_64/linux)\r\nflags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT\r\nADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535\r\npoll method support: poll, epoll, sigio_rt, select.\r\ngit revision: 9b1af1d\r\nmain.c compiled on 15:15:07 Sep 11 2018 with gcc 4.8.5\r\n\r\nuname -a\r\nLinux tfre-west.aninetworks.net 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/comments/446241943","html_url":"https://github.com/OpenSIPS/opensips/issues/1522#issuecomment-446241943","issue_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1522","id":446241943,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjI0MTk0Mw==","user":{"login":"bogdan-iancu","id":3973594,"node_id":"MDQ6VXNlcjM5NzM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3973594?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T15:25:17Z","updated_at":"2018-12-11T15:25:17Z","author_association":"MEMBER","body":"Hi @recourse , we just fixed a very very similar crash last week - the {sdp.a} transformation was randomly corrupting memory and the acc module was the most affected. So - do you use that transformation in your script ? if YES, do an update to the latest 2.3.x and give it a try again"}}
{"actor":{"display_login":"bogdan-iancu"}}