View Issue Details

IDProjectCategoryView StatusLast Update
0005074SOGoPackaging (RedHat)public2020-08-11 15:24
Reporterzhb Assigned To 
PrioritylowSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Platform[Server] LinuxOSRHEL/CentOSOS Version7
Product Version4.3.2 
Summary0005074: Failed to start sogo service
Description

After package updates, sogo failed to start, no error on console or the output of "systemctl status sogod.service" command. but /var/log/messages contains one error line:

Jul  8 12:33:20 mail kernel: sogod[19319]: segfault at 7ffd721bcb38 ip 00007fcb1b68a9cf sp 00007ffd721bcb20 error 6 in libgnustep-base.so.1.24.9[7fcb1b2f8000+4dc000]

Package gnustep-base was installed from EPEL repo, version 1.24.9-1.el7. I tried the gnustep packages in SOGo repo, it didn't raise segfault error like above log line, but it just hangs there and never start sogo service and put it to background.

Any idea to fix this issue?

######################
# rpm -qi gnustep-base
Name        : gnustep-base
Version     : 1.24.9
Release     : 1.el7
Architecture: x86_64
Install Date: Wed Jul  8 12:02:35 2020
Group       : Development/Libraries
Size        : 838317
License     : GPLv2+ and GPLv3+
Signature   : RSA/SHA256, Thu Sep  8 19:21:35 2016, Key ID 6a2faea2352c64e5
Source RPM  : gnustep-base-1.24.9-1.el7.src.rpm
Build Date  : Thu Sep  8 10:57:39 2016
Build Host  : buildhw-11.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.gnustep.org/
Summary     : GNUstep Base library package
######################

And SOGo/SOPE package versions:

######################
# rpm -qa |grep -Ei '(sogo|sope|libwbxml)'
sope49-xml-4.9-20200704_1664.el7.1.x86_64
sope49-gdl1-contentstore-4.3.2.20200708-1.el7.x86_64
sogo-4.3.2.20200708-1.el7.x86_64
sope49-mime-4.9-20200704_1664.el7.1.x86_64
sope49-gdl1-mysql-4.9-20200704_1664.el7.1.x86_64
sogo-tool-4.3.2.20200708-1.el7.x86_64
sope49-core-4.9-20200704_1664.el7.1.x86_64
sope49-sbjson-2.3.1-20200704_1664.el7.1.x86_64
sope49-ldap-4.9-20200704_1664.el7.1.x86_64
sogo-activesync-4.3.2.20200708-1.el7.x86_64
sope49-gdl1-4.9-20200704_1664.el7.1.x86_64
sope49-appserver-4.9-20200704_1664.el7.1.x86_64
sogo-ealarms-notify-4.3.2.20200708-1.el7.x86_64
sope49-cards-4.3.2.20200708-1.el7.x86_64
libwbxml-0.11.6-1.el7.centos.x86_64
######################
TagsNo tags attached.

Activities

ludovic

ludovic

2020-07-08 12:24

administrator   ~0014464

Produce a stack trace, we don't have this issue.

zhb

zhb

2020-07-08 12:46

reporter   ~0014465

Last edited: 2020-07-08 12:51

Following this tutorial: https://sogo.nu/support/faq/how-do-i-debug-sogo.html
Running on CentOS 7:

# su -s /bin/bash sogo
bash-4.2$ gdb --args /usr/sbin/sogod -WOUseWatchDog NO -WONoDetach YES -WOPort 20000 -WOWorkersCount 1 -WOLogFile - -WOPidFile /tmp/sogo.pid
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/sogod...Reading symbols from /usr/sbin/sogod...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install sogo-4.3.2.20200708-1.el7.x86_64
(gdb) r
Starting program: /usr/sbin/sogod -WOUseWatchDog NO -WONoDetach YES -WOPort 20000 -WOWorkersCount 1 -WOLogFile - -WOPidFile /tmp/sogo.pid
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff54c19cf in GSToUnicode () from /lib64/libgnustep-base.so.1.24
ludovic

ludovic

2020-07-08 12:50

administrator   ~0014466

Show the full stack trace, not just the last frame.

zhb

zhb

2020-07-08 12:55

reporter   ~0014467

That's all i got. let me show you the "full" stack trace:

bash-4.2$ gdb --args /usr/sbin/sogod -WOUseWatchDog NO -WONoDetach YES -WOPort 20000 -WOWorkersCount 1 -WOLogFile - -WOPidFile /tmp/sogo.pid
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/sogod...Reading symbols from /usr/sbin/sogod...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install sogo-4.3.2.20200708-1.el7.x86_64
(gdb) r
Starting program: /usr/sbin/sogod -WOUseWatchDog NO -WONoDetach YES -WOPort 20000 -WOWorkersCount 1 -WOLogFile - -WOPidFile /tmp/sogo.pid
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff54c19cf in GSToUnicode () from /lib64/libgnustep-base.so.1.24
(gdb) b [NSException raise]
Breakpoint 1 at 0x7ffff536c930
(gdb) b abort 
Breakpoint 2 at 0x7ffff465c930 (2 locations)
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
zhb

zhb

2020-07-08 12:56

reporter   ~0014468

sogod exits (Segmentation fault) when i typed the first command - "r".

ludovic

ludovic

2020-07-08 12:56

administrator   ~0014469

Type "bt".

zhb

zhb

2020-07-08 13:03

reporter   ~0014470

Full stack attached. Thank you very much for helping. :)

gdb.txt.bz2 (61,174 bytes)
zhb

zhb

2020-07-09 01:57

reporter   ~0014474

Dear @ludovic,

Could you help take a look at the full trace stack? Thanks. :)

ludovic

ludovic

2020-07-09 15:52

administrator   ~0014480

Looks like a GNUstep issue, not a SOGo issue. Check your sogo.conf for "weird" characters.

zhb

zhb

2020-07-09 16:25

reporter   ~0014481

You mean sogo.conf file may contain invalid characters somewhere?

ludovic

ludovic

2020-07-09 16:26

administrator   ~0014482

Yes

zhb

zhb

2020-07-09 16:42

reporter   ~0014483

Any recommend tool/command to help check invalid character in sogo.conf? Or have to check line by line manually?

ludovic

ludovic

2020-07-09 16:43

administrator   ~0014484

Byte by byte.

zhb

zhb

2020-07-09 16:46

reporter   ~0014485

No idea how to do this. :(

zhb

zhb

2020-07-09 17:43

reporter   ~0014491

I copied sogo.conf from a working machine, replaced SQL related values, restart sogod service. In syslog, i got this:

Jul 9 19:38:50 mail kernel: sogod[15385]: segfault at 7ffd7bb86ff8 ip 00007feac7f419eb sp 00007ffd7bb86ff0 error 6 in libgnustep-base.so.1.24.9[7feac7baf000+4dc000]
Jul 9 19:38:50 mail systemd: Can't open PID file /var/run/sogo/sogo.pid (yet?) after start: No such file or directory

Directory /var/run/sogo/ is set to 0777 (for testing purpose), still this error. It also seems not caused by "weird" characters in sogo.conf since same config file works on another CentOS 7 server.

Any idea?

ludovic

ludovic

2020-07-09 17:57

administrator   ~0014492

Then try the same GNUstep version as the other CentOS 7 box. As I said, it's not a SOGo bug.

zhb

zhb

2020-07-10 02:36

reporter   ~0014505

Both runs same gnustep version from EPEL repo.

zhb

zhb

2020-08-11 15:05

reporter   ~0014667

Eventually got SOGo running, the fix is just removing ~sogo/GNUStep/ directory.

Issue History

Date Modified Username Field Change
2020-07-08 10:37 zhb New Issue
2020-07-08 12:24 ludovic Note Added: 0014464
2020-07-08 12:46 zhb Note Added: 0014465
2020-07-08 12:50 ludovic Note Added: 0014466
2020-07-08 12:51 francis Note Edited: 0014465
2020-07-08 12:52 francis Description Updated
2020-07-08 12:55 zhb Note Added: 0014467
2020-07-08 12:56 zhb Note Added: 0014468
2020-07-08 12:56 ludovic Note Added: 0014469
2020-07-08 13:03 zhb File Added: gdb.txt.bz2
2020-07-08 13:03 zhb Note Added: 0014470
2020-07-09 01:57 zhb Note Added: 0014474
2020-07-09 15:52 ludovic Note Added: 0014480
2020-07-09 15:53 ludovic Priority urgent => low
2020-07-09 16:25 zhb Note Added: 0014481
2020-07-09 16:26 ludovic Note Added: 0014482
2020-07-09 16:42 zhb Note Added: 0014483
2020-07-09 16:43 ludovic Note Added: 0014484
2020-07-09 16:46 zhb Note Added: 0014485
2020-07-09 17:43 zhb Note Added: 0014491
2020-07-09 17:57 ludovic Note Added: 0014492
2020-07-10 02:36 zhb Note Added: 0014505
2020-08-11 15:05 zhb Note Added: 0014667
2020-08-11 15:24 francis Status new => closed
2020-08-11 15:24 francis Resolution open => no change required