[Spce-user] Recurring Valkey Crashes Affecting Kamailio and CDR Processing – SIPWise mr14.0.1

Jeremie Chism jchism2 at gmail.com
Sat Oct 10 23:01:06 EDT 2026


Hello SIPWise Support,

We are experiencing recurring Valkey crashes on our primary production
SIPWise CE mr14.0.1 server running Debian 13.

Both crashes occurred at the exact same instruction in Valkey's
expiration-processing code.

Server: Dallas (Primary Production) SIPWise Version: mr14.0.1 Operating
System: Debian 13 Valkey Version: 8.1.1+dfsg1-3+deb13u1

Confirmed Crashes (Server Time):

October 8, 2026 – 09:56:36 October 10, 2026 – 19:54:55

Both incidents resulted in Valkey terminating with SIGSEGV (signal 11).

The stack traces from both crashes contain identical executable offsets:

expireScanCallback +0x1996fe activeExpireCycle +0x199a35 databasesCron
+0x8e3bd serverCron +0x8f033

This strongly suggests that the same failure is recurring.

PRODUCTION IMPACT

During the October 10 incident:

   1. Valkey crashed and restarted automatically.

   2. Kamailio LB stopped and restarted approximately 11 seconds later,
   creating a potential interruption to SIP signaling.

   3. ngcp-mediator exited successfully but did not automatically restart.

   4. CDR processing remained interrupted until mediator was manually
   restarted.


As a temporary safeguard, we configured ngcp-mediator with:

Restart=always RestartSec=15s

Valkey itself is configured with Restart=always and RestartSec=100ms.

ADDITIONAL FINDINGS

Valkey database 21 currently contains approximately 1.25 million accounting
keys, none of which have expiration timers.

The mediator configuration includes:

redis-db=21 max-acc-age=1209600 interval=10

We have also identified historical accounting records in DB21 older than
the configured 14-day maximum accounting age.

We have not established whether the retained accounting records contribute
to the crashes.

All three of our production SIPWise switches (Dallas, Chicago, and LAX) use
Valkey 8.1.1. However, we have only confirmed these crashes on Dallas.

We also identified an available Debian security update:

8.1.1+dfsg1-3+deb13u2

We have not installed this update because we cannot confirm whether it
addresses the expireScanCallback segmentation fault.

REQUEST FOR ENGINEERING ASSISTANCE

Could your engineering team please advise on the following?

1. Is this a known Valkey 8.1.x bug involving expireScanCallback or
activeExpireCycle?

2. Is there a confirmed upstream patch or Valkey version that resolves this
specific segmentation fault?

3. Is that version compatible with SIPWise CE mr14.0.1?

4. Is there a recommended workaround that can prevent this crash without
restarting Valkey or interrupting production SIP traffic?

5. Is it expected behavior for Kamailio LB to stop and restart when Valkey
crashes?

6. Is our mediator automatic restart configuration appropriate, or is there
a SIPWise-supported method to ensure CDR processing resumes automatically
after Valkey recovery?

7. Is the accumulation of approximately 1.25 million accounting keys in
Valkey DB21 expected, given the configured max-acc-age of 14 days?

Dallas is our primary production switch handling live customer traffic. We
cannot risk an untested update or a prolonged service interruption.

We would appreciate guidance on a confirmed fix and the safest supported
deployment procedure.

We can provide the complete crash stack traces, relevant syslog entries,
and additional diagnostic information if needed.
-- 
Jeremie Chism
Triton Communications
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20261010/63604c97/attachment.htm>


More information about the Spce-user mailing list