"systemd-bootchart" segfaults while writing svg file

REPRODUCIBILITY: 100%
OS VERSION: 5.0.0.43
HARDWARE: “Reeder S19 Max Pro S”
UI LANGUAGE: en
REGRESSION: yes, was working in some 4.x version I can’t remember.

DESCRIPTION:

systemctl status systemd-bootchart
● systemd-bootchart.service - Boot Process Profiler
   Loaded: loaded (/usr/lib/systemd/system/systemd-bootchart.service; disabled; vendor preset: enabled)
   Active: failed (Result: core-dump) since Sun 2024-12-15 18:33:08 CET; 2h 12min ago
     Docs: man:systemd-bootchart.service(1)
           man:bootchart.conf(5)
 Main PID: 20135 (code=dumped, signal=SEGV)

PRECONDITIONS:

Unknown.

STEPS TO REPRODUCE:

  1. pkcon install systemd-bootchart
  2. pkcon install systemd-bootchart-config
  3. systemctl start systemd-bootchart
  4. OR just /usr/lib/systemd/systemd-bootchart -r

EXPECTED RESULT:

The tool should write a correct SVG file to the output location (default: /run/log)

ACTUAL RESULT:

Tool segfaults, leaves a half-written SVG file in the output location.

MODIFICATIONS:

  • Patchmanager
  • Openrepos
  • Chum

ADDITIONAL INFORMATION:


Program received signal SIGSEGV, Segmentation fault.
0x00000055555593b4 in svg_ps_bars (interval=<optimized out>, graph_start=13393.735526488999, ps_first=0x5555589620, n_cpus=<optimized out>, n_samples=499, head=0x55555897c0, of=0x55555893e0) at src/svg.c:1187
1187            i = ps->sample->next->sampledata->counter;
(gdb) backtrace
#0  0x00000055555593b4 in svg_ps_bars (interval=<optimized out>, graph_start=13393.735526488999, ps_first=0x5555589620, n_cpus=<optimized out>, n_samples=499,
    head=0x55555897c0, of=0x55555893e0) at src/svg.c:1187
#1  svg_do (overrun=84, interval=<optimized out>, log_start=13393.735526488999, graph_start=13393.735526488999, n_cpus=<optimized out>, pscount=<optimized out>,
    n_samples=499, ps_first=0x5555589620, head=0x55555897c0, build=0x5555589b00 "Sailfish OS 5.0.0.43 (Tampella)", of=0x55555893e0) at src/svg.c:1371
#2  main (argc=<optimized out>, argv=<optimized out>) at src/bootchart.c:497
3 Likes