citserver segfaults on startup on 20.04 server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
citadel (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This is on a new install of Server-20.04 with little extra.
From syslog:
Jun 2 02:35:53 cittest2 kernel: [ 393.264246] citserver[2431]: segfault at 10000014c ip 00007f3dba7f7b2d sp 00007fff479ac2b0 error 4 in libdb-5.
From gdb with dgbsym package:
Starting program: /usr/sbin/citserver -lmail
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
citserver[627176]:
citserver[627176]:
citserver[627176]: *** Citadel server engine ***
citserver[627176]: Version 917 (build b47178f) ***
citserver[627176]: Copyright (C) 1987-2018 by the Citadel development team.
citserver[627176]:
citserver[627176]: This program is open source software: you can redistribute it and/or
citserver[627176]: modify it under the terms of the GNU General Public License, version 3.
citserver[627176]:
citserver[627176]: This program is distributed in the hope that it will be useful,
citserver[627176]: but WITHOUT ANY WARRANTY; without even the implied warranty of
citserver[627176]: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
citserver[627176]: GNU General Public License for more details.
citserver[627176]:
citserver[627176]: libcitadel(
citserver[627176]: Checking directory access
citserver[627176]: Opening databases
citserver[627176]: db: mounting databases
citserver[627176]: Initializing configuration system
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff77b3b2d in __db_check_txn () from /lib/x86_
(gdb) bt
#0 0x00007ffff77b3b2d in __db_check_txn () from /lib/x86_
#1 0x00007ffff77b8ee0 in __db_get_pp () from /lib/x86_
#2 0x000055555556ec9a in cdb_fetch (cdb=cdb@entry=13, key=key@
keylen=
#3 0x00005555555723d7 in CtdlGetConfigStr (
key=
#4 0x000055555557290d in CtdlGetConfigLong (
key=
#5 0x0000555555572a3c in initialize_
#6 0x000055555556939d in master_startup () at citserver.c:150
#7 0x0000555555564ca7 in main (argc=2, argv=0x7fffffff
(gdb) f 2
#2 0x000055555556ec9a in cdb_fetch (cdb=cdb@entry=13, key=key@
keylen=
657 database.c: No such file or directory.
(gdb) p cdb
$1 = 13
(gdb) p MyThread()->tid
$4 = (DB_TXN *) 0x100000000
(gdb) p dkey
$2 = {data = 0x5555555d4b85, size = 28, ulen = 0, dlen = 0, doff = 0, app_data = 0x0, flags = 0}
(gdb) p dret
$3 = {data = 0x0, size = 0, ulen = 0, dlen = 0, doff = 0, app_data = 0x0, flags = 16}
(gdb)
-------
I tried to compile locally with debugging enabled but that compile fails also.
$ DEB_BUILD_
...
citserver.c: In function ‘cit_backtrace’:
citserver.c:50:18: error: ‘IOSTR’ undeclared (first use in this function); did you mean ‘ENOSTR’?
50 | const char *p = IOSTR;
| ^~~~~
| ENOSTR
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: citadel-server 917-4
ProcVersionSign
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckR
Date: Wed Jun 3 15:18:03 2020
InstallationDate: Installed on 2020-06-02 (1 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
SHELL=/bin/bash
LANG=C.UTF-8
TERM=xterm-
PATH=(custom, no user)
SourcePackage: citadel
UpgradeStatus: No upgrade log present (probably fresh install)
More details with libdb5.3-dbg also installed:
Program received signal SIGSEGV, Segmentation fault. entry=0x5555557 927e0, txn=0x100000000, locker= assoc_locker@ entry=0x0, read_op= read_op@ entry=1) at ../src/ common/ db_err. c:818 common/ db_err. c: No such file or directory. entry=0x5555557 927e0, txn=0x100000000, locker= assoc_locker@ entry=0x0, read_op= read_op@ entry=1) at ../src/ common/ db_err. c:818 27e0, txn=<optimized out>, key@entry= 0x7fffffffab00, data=data@ entry=0x7ffffff fab30, flags=flags@ entry=0) db/db_iface. c:710 entry=0x5555555 d4b85, keylen@ entry=28) at database.c:657 entry=0x5555555 d4b85 "c_config_ created_ or_migrated" ) key@entry= 0x5555555d4b85 "c_config_ created_ or_migrated" ) at config.c:459 config_ system () at config.c:284 ec68) at server_main.c:260
0x00007ffff77b3b2d in __db_check_txn (dbp=dbp@
assoc_
818 ../src/
(gdb) bt
#0 0x00007ffff77b3b2d in __db_check_txn (dbp=dbp@
assoc_
#1 0x00007ffff77b8ee0 in __db_get_pp (dbp=0x55555579
key=
at ../src/
#2 0x000055555556ec9a in cdb_fetch (cdb=cdb@entry=13, key=key@
keylen=
#3 0x00005555555723d7 in CtdlGetConfigStr (key=key@
at config.c:429
#4 0x000055555557290d in CtdlGetConfigLong (
key=
#5 0x0000555555572a3c in initialize_
#6 0x000055555556939d in master_startup () at citserver.c:150
#7 0x0000555555564ca7 in main (argc=2, argv=0x7fffffff