Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Timer route NULL #3003

Closed
volga629-1 opened this issue Jan 28, 2023 · 10 comments
Closed

[BUG] Timer route NULL #3003

volga629-1 opened this issue Jan 28, 2023 · 10 comments

Comments

@volga629-1
Copy link

Version

 opensips -V
version: opensips 3.2.8 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: d2496fed5
main.c compiled on 00:00:00 Dec 20 2022 with gcc 11

Issue

In runtime any access to NULL or var init to NULL produce errors


Jan 26 13:55:23  /usr/sbin/opensips[676153]: ALERT:core:do_action: BUG - unknown type 1262695504
Jan 26 13:55:23  /usr/sbin/opensips[676153]: ERROR:core:do_action: error in /etc/opensips/opensips-route-prod.cfg:1938
Jan 26 13:55:23  /usr/sbin/opensips[676153]: ERROR:core:do_assign: read only PV in left expression
Jan 26 13:55:23  /usr/sbin/opensips[676153]: ERROR:core:do_assign: error at /etc/opensips/opensips-route-prod.cfg:1938
Jan 26 13:55:23  /usr/sbin/opensips[676153]: ERROR:core:pv_get_spec_index: invalid index value
Jan 26 13:55:23  /usr/sbin/opensips[676153]: ERROR:core:pv_get_avp: invalid index

Line Code match

Screenshot 2023-01-27 at 9 39 48 PM

@razvancrainea
Copy link
Member

I've just tested this code and seems quite file.
There seems to be some sort of corruption in your case, as the type that is triggering the BUG can only be between [0, 32), not sure how that 1262695504 got there. Are you able to run with Q_MALLOC_DBG allocator to gather more information?
Does OpenSIPS eventually crash after a while?

@volga629-1
Copy link
Author

Eventually yes it will segfault. Let me try Q_MALLOC_DBG

@volga629-1
Copy link
Author

I started opensips

/usr/sbin/opensips -P /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 8192 -M 256 -a Q_MALLOC_DBG

@github-actions
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Feb 18, 2023
@volga629-1
Copy link
Author

Hello @razvancrainea
I noticed that happening in different parts of script

Feb 27 10:07:46 acs01 /usr/sbin/opensips[128211]: ALERT:core:do_action: BUG - unknown type 1886806387
Feb 27 10:07:46 acs01 /usr/sbin/opensips[128211]: ERROR:core:do_action: error in /etc/opensips/opensips-route-prod.cfg:27

Feb 27 10:09:16 acs01 /usr/sbin/opensips[128211]: ALERT:core:do_action: BUG - unknown type 1818653545
Feb 27 10:09:16 acs01 /usr/sbin/opensips[128211]: ERROR:core:do_action: error in /etc/opensips/opensips-route-prod.cfg:997
Feb 27 10:09:16 acs01 /usr/sbin/opensips[128211]: ALERT:core:do_action: BUG - unknown type 1834972009
Feb 27 10:09:16 acs01 /usr/sbin/opensips[128211]: ERROR:core:do_action: error in /etc/opensips/opensips-route-prod.cfg:1021

I wondering if it something to do with

opensips-cli -x mi reload_routes

@stale stale bot removed the stale label Feb 27, 2023
@volga629-1
Copy link
Author

I switch to -a Q_MALLOC_DBG

Feb 27 11:32:05 acs01 /usr/sbin/opensips[133863]: ALERT:core:do_action: BUG - unknown type 1752457582
Feb 27 11:32:05 acs01 /usr/sbin/opensips[133863]: ERROR:core:do_action: error in /etc/opensips/opensips-route-prod.cfg:1958
Feb 27 11:32:05 acs01 /usr/sbin/opensips[133863]: ALERT:core:do_action: BUG - unknown type -685730832
Feb 27 11:32:05 acs01 /usr/sbin/opensips[133863]: ERROR:core:do_action: error in (null):0

@github-actions
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Mar 15, 2023
@volga629-1
Copy link
Author

In progress

@stale stale bot removed the stale label Mar 17, 2023
@github-actions
Copy link

github-actions bot commented Apr 1, 2023

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Apr 1, 2023
@bogdan-iancu
Copy link
Member

@volga629-1 , this indeed related to an issue with reloading in the timer routes . The problem is know, already mentioned in #2382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants