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

[CRASH] B2B_LOGIC restoring from cachedb_redis always crashes #3537

Open
Mercury109 opened this issue Dec 5, 2024 · 1 comment
Open

[CRASH] B2B_LOGIC restoring from cachedb_redis always crashes #3537

Mercury109 opened this issue Dec 5, 2024 · 1 comment
Labels

Comments

@Mercury109
Copy link

OpenSIPS version you are running
version: opensips 3.4.9 (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: cd02af8
main.c compiled on with gcc 12

To Reproduce

  1. Configure B2B_LOGIC module with cachedb_url redis://127.0.0.1:6379/10
  2. Send traffic to open sips
  3. Restart OpenSips with traffic running and it will crash will trying to restore the B2B sessions

Relevant System Logs
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] DBG:cachedb_redis:redis_connect: single instance mode
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] DBG:cachedb_redis:redis_connect_node: SELECT [10] - OK
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] DBG:b2b_logic:b2bl_add_tuple: Add tuple key [16413.0]
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] DBG:b2b_logic:b2bl_parse_key: hash_index = [16413] - local_index= [0]
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] CRITICAL:core:sig_usr: segfault in attendant (starter) process!
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] DBG:core:restore_segv_handler: restoring SIGSEGV handler...
Dec 05 21:36:56 ss-billing-v1 opensips[21841]: Dec 5 21:36:56 [21841] DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler
Dec 05 21:36:56 ss-billing-v1 opensips[21839]: Dec 5 21:36:56 [21839] DBG:core:wait_status_code: read code 0 (0 byte)

OS/environment information

  • Operating System: Debian Bookworm
  • OpenSIPS installation: Debs

Additional context
Once the Redis DB is flushed, OpenSips will start normally again.

There is no crash with restoring B2B_ENTITES, only B2B_LOGIC

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 Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant