View Issue Details

IDProjectCategoryView StatusLast Update
0005653SOGowith SOGopublic2024-07-24 19:00
Reporterds Assigned Tosebastien  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformServerOSDebianOS Version11
Product Version5.7.1 
Fixed in Version5.11.0 
Summary0005653: segmentation fault after systemctl restart sogo
Description

Problem: systemctl restart sogo (also systemctl stop sogo) can cause a
segmentation fault entry in Kernel log (journal -k). Sometimes it happens and sometimes not (see below).

Kernel log:

kernel: sogod[359451]: segfault at 7ffd8f32dee3 ip 00007fd865928c2c sp 00007ffd0f32ddf8 error 4 in libc-2.31.so[7fd8657db000+15a000]
kernel: Code: 28 7f 4f 01 62 e1 fe 28 7f 54 17 ff 62 e1 fe 28 7f 5c 17 fe c3 48 39 f7 0f 87 cb 00 00 00 0f 84 b3 fe ff ff 62 e1 fe 28 6f 26 <62> e1 fe 28 6f 6c 16 ff 62 e1 fe 28 6f 74 16 fe 62 e1 fe 28 6f 7c
...

Hypothesis: The init-Skript may cause the problem.
Systemd uses the /etc/init.d/sogo script by means of the systemd-sysv-generator.

In its start) and restart) - Section there is the line
start-stop-daemon -c $USER --stop --pidfile $PIDFILE --retry=TERM/20/KILL/5 --oknodo.
The TERM timeout value (here 20) has an impact on causing the segmentation faults because it might be to low in some cases.

Steps To Reproduce

For reproducibility, this parameter (TERM/20) can be set to a lower value, e.g. to 1, which results in segmentation fault happening at every restart/stop. The line
[WOWatchDog]> all children exited. We now terminate. will then never show up anymore in the sogo.log.

TagsNo tags attached.

Activities

sebastien

sebastien

2024-07-19 15:27

administrator   ~0017773

Last edited: 2024-07-24 19:00

Fixed in https://github.com/Alinto/sope/commit/4524ecafe27c8cfa9eef6977c6d4337d17ab99dd (NB 20240725)

Sebastien

Issue History

Date Modified Username Field Change
2022-12-01 09:15 ds New Issue
2024-07-19 15:27 sebastien Note Added: 0017773
2024-07-19 15:28 sebastien Note Edited: 0017773
2024-07-19 15:28 sebastien Assigned To => sebastien
2024-07-19 15:28 sebastien Status new => resolved
2024-07-19 15:28 sebastien Resolution open => fixed
2024-07-19 15:28 sebastien Fixed in Version => 5.11.0
2024-07-22 14:44 sebastien Note Edited: 0017773
2024-07-24 19:00 sebastien Note Edited: 0017773