Actions
Bug #6299
closedlogging: segmentation fault in _output_buf()
Start date:
12/10/2023
Due date:
% Done:
100%
Spec Reference:
Description
ttcn3-bts-test is broken for a few days. The Console Output indicates that something is wrong with the virtphy container:
https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-bts-test/2240/console
Error response from daemon: Cannot kill container: jenkins-ttcn3-bts-test-2240-virtphy: No such container: jenkins-ttcn3-bts-test-2240-virtphy
The artifacts contain a core file:
https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-bts-test/2240/artifact/logs/virtphy/
I can reproduce the problem locally, virtphy crashes immediately after being started:
(gdb) r Starting program: /home/fixeria/projects/osmocom/bb/src/host/virt_phy/src/virtphy [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7d31468 in ?? () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff7d31468 in ?? () from /usr/lib/libc.so.6 #1 0x00007ffff7d0be16 in snprintf () from /usr/lib/libc.so.6 #2 0x00007ffff7d799c7 in ?? () from /usr/lib/libc.so.6 #3 0x00007ffff7d79b2f in ctime_r () from /usr/lib/libc.so.6 #4 0x00007ffff7f67037 in _output_buf (buf=buf@entry=0x7fffffffcc90 "", buf_len=buf_len@entry=4096, target=target@entry=0x555555588140, subsys=subsys@entry=2, level=level@entry=3, file=file@entry=0x5555555643ce "virtphy.c", line=248, cont=0, format=0x5555555643e0 "Virtual physical layer starting up...\n", ap=0x7fffffffdd00) at ../../../../src/libosmocore/src/core/logging.c:520 #5 0x00007ffff7f675de in _output (target=target@entry=0x555555588140, subsys=subsys@entry=2, level=level@entry=3, file=file@entry=0x5555555643ce "virtphy.c", line=line@entry=248, cont=cont@entry=0, format=0x5555555643e0 "Virtual physical layer starting up...\n", ap=0x7fffffffdd00) at ../../../../src/libosmocore/src/core/logging.c:606 #6 0x00007ffff7f678ee in osmo_vlogp (subsys=<optimized out>, level=3, file=0x5555555643ce "virtphy.c", line=248, cont=0, format=0x5555555643e0 "Virtual physical layer starting up...\n", ap=0x7fffffffdd70) at ../../../../src/libosmocore/src/core/logging.c:698 #7 0x00007ffff7f67adf in logp2 (subsys=<optimized out>, level=<optimized out>, file=<optimized out>, line=<optimized out>, cont=<optimized out>, format=<optimized out>) at ../../../../src/libosmocore/src/core/logging.c:734 #8 0x0000555555557bd8 in main (argc=1, argv=0x7fffffffdf78) at virtphy.c:248
Related issues
Actions