[Pkg-citadel-devel] Bug#862300: Crashes during the login process

John Goerzen jgoerzen at complete.org
Wed May 10 20:53:54 UTC 2017


Package: citadel-server
Version: 902-3
Severity: grave

Hello,

I have confirmed this issue in both stretch and sid with version 902-3.  jessie with version
8.24-1+b3 is fine.

Essentially, I can neither log in with the admin account nor create a new user.
This also occurs if I make the attempt via webcit.  It results in citserver
segfaulting.

I am ataching a script output from gdb showing a backtrace from both attempts:
first the attempt to register a new user, and then an attempt to log in to the 
admin account.

I am also showing script output from the citadel client on this.

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64
 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages citadel-server depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.60
ii  libc-ares2             1.12.0-2
ii  libc6                  2.24-10
ii  libcitadel4            902-1
ii  libcurl3               7.52.1-5
ii  libdb5.3               5.3.28-12+b1
ii  libev4                 1:4.22-1+b1
ii  libexpat1              2.2.0-2
ii  libical2               2.0.0-0.5+b1
ii  libldap-2.4-2          2.4.44+dfsg-4+b1
ii  libpam0g               1.1.8-3.5
ii  libsieve2-1            2.2.6-1.3
ii  libssl1.0.2            1.0.2k-1
ii  lsb-base               9.20161125
ii  openssl                1.1.0e-2
ii  patch                  2.7.5-1+b2
ii  zlib1g                 1:1.2.8.dfsg-5

Versions of packages citadel-server recommends:
pn  db4.6-util        <none>
ii  shared-mime-info  1.8-1

Versions of packages citadel-server suggests:
ii  exim4-daemon-light [mail-transport-agent]  4.89-2

-- Configuration Files:
/etc/citadel/mail.aliases changed:
bbs,room_aide
root,room_aide
Auto,room_aide
postmaster,room_aide
abuse,room_aide
mailer-daemon,postmaster
nobody,room_aide
hostmaster,room_aide
usenet,room_aide
news,room_aide
webmaster,room_aide
www,room_aide
ftp,room_aide
noc,room_aide
security,room_aide

/etc/citadel/messages/aideopt [Errno 13] Permission denied: '/etc/citadel/messages/aideopt'
/etc/citadel/messages/changepw [Errno 13] Permission denied: '/etc/citadel/messages/changepw'
/etc/citadel/messages/dotopt [Errno 13] Permission denied: '/etc/citadel/messages/dotopt'
/etc/citadel/messages/entermsg [Errno 13] Permission denied: '/etc/citadel/messages/entermsg'
/etc/citadel/messages/entopt [Errno 13] Permission denied: '/etc/citadel/messages/entopt'
/etc/citadel/messages/goodbye [Errno 13] Permission denied: '/etc/citadel/messages/goodbye'
/etc/citadel/messages/hello [Errno 13] Permission denied: '/etc/citadel/messages/hello'
/etc/citadel/messages/help [Errno 13] Permission denied: '/etc/citadel/messages/help'
/etc/citadel/messages/mainmenu [Errno 13] Permission denied: '/etc/citadel/messages/mainmenu'
/etc/citadel/messages/newuser [Errno 13] Permission denied: '/etc/citadel/messages/newuser'
/etc/citadel/messages/readopt [Errno 13] Permission denied: '/etc/citadel/messages/readopt'
/etc/citadel/messages/register [Errno 13] Permission denied: '/etc/citadel/messages/register'
/etc/citadel/messages/roomaccess [Errno 13] Permission denied: '/etc/citadel/messages/roomaccess'
/etc/citadel/messages/unlisted [Errno 13] Permission denied: '/etc/citadel/messages/unlisted'

-- debconf information:
  citadel/BadUser:
* citadel/ServerIPAddress: 0.0.0.0
* citadel/Administrator: admin
* citadel/LoginType: Internal
  citadel/LDAPServerPort: 389
  citadel/LDAPBaseDN: (null)
  citadel/LDAPBindDNPassword: (null)
  citadel/LDAPBindDN: (null)
  citadel/LDAPServer: (null)
-------------- next part --------------
Script started on Wed 10 May 2017 03:48:34 PM CDT
root at sid:~# ps auxww | grep cits
root     17026  0.0  0.0 155672  4004 ?        Ss   15:42   0:00 /usr/sbin/citserver -d -x3 -lmail -t/dev/null
citadel  17672  0.0  0.0 422772 11864 ?        Sl   15:45   0:00 /usr/sbin/citserver -d -x3 -lmail -t/dev/null
root     17764  0.0  0.0  13080   952 pts/5    S+   15:48   0:00 grep cits
root at sid:~# gdb -p 17672
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 17672
[New LWP 17673]
[New LWP 17674]
[New LWP 17675]
[New LWP 17676]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fc1dee4d08d in nanosleep () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) cont
Continuing.

Thread 5 "citserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc1d826b700 (LWP 17676)]
__strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:165
165	../sysdeps/x86_64/multiarch/strcmp-sse42.S: No such file or directory.
(gdb) bt
#0  __strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:165
#1  0x00007fc1e1b3ef17 in CtdlUserGoto (where=where at entry=0x7fc1d8263da0 "0000000011.My Citadel Config", 
    display_result=display_result at entry=0, transiently=transiently at entry=1, retmsgs=retmsgs at entry=0x0, 
    retnew=retnew at entry=0x0, retoldest=retoldest at entry=0x0, retnewest=0x0) at room_ops.c:814
#2  0x00007fc1e1b4713f in CtdlSubmitMsg (msg=msg at entry=0x7fc1c4002e30, recps=recps at entry=0x0, 
    force=force at entry=0x7fc1d8266410 "0000000011.My Citadel Config", flags=flags at entry=0) at msgbase.c:2854
#3  0x00007fc1e1b47f21 in CtdlWriteObject (req_room=req_room at entry=0x7fc1e1bb24d2 "My Citadel Config", 
    content_type=content_type at entry=0x7fc1e1bc839c "text/x-vcard", 
    raw_message=raw_message at entry=0x7fc1c4000d10 "begin:vcard\r\nfn:newblahblah\r\nn:newblahblah;;;;\r\nadr:adr:;;_;_;_;00000;__\r\nemail;internet:newblahblah at sid.lan.complete.org\r\nVERSION:2.1\r\nend:vcard\r\n", raw_length=<optimized out>, 
    is_mailbox=is_mailbox at entry=0x7fc1d82679f0, is_binary=is_binary at entry=0, is_unique=0, flags=0) at msgbase.c:4135
#4  0x00007fc1e1ba72e5 in vcard_write_user (u=u at entry=0x7fc1d82679f0, v=v at entry=0x7fc1c4000960)
    at modules/vcard/serv_vcard.c:692
#5  0x00007fc1e1ba77cf in vcard_newuser (usbuf=0x7fc1d82679f0) at modules/vcard/serv_vcard.c:923
#6  0x00007fc1e1b37ee3 in PerformUserHooks (usbuf=usbuf at entry=0x7fc1d82679f0, EventType=EventType at entry=102)
    at serv_extensions.c:1364
#7  0x00007fc1e1b31fbb in create_user (newusername=newusername at entry=0x7fc1d8268d70 "newblahblah", len=<optimized out>, 
    len at entry=11, become_user=become_user at entry=1) at user_ops.c:1133
#8  0x00007fc1e1b65568 in cmd_newu (cmdbuf=<optimized out>) at modules/ctdlproto/serv_user.c:138
#9  0x00007fc1e1b35e34 in DLoader_Exec_Cmd (cmdbuf=cmdbuf at entry=0x7fc1d8269dc0 "NEWU newblahblah") at serv_extensions.c:298
#10 0x00007fc1e1b5cd17 in do_command_loop () at modules/ctdlproto/serv_ctdlproto.c:72
#11 0x00007fc1e1b355cf in worker_thread (blah=blah at entry=0x0) at sysdep.c:1456
---Type <return> to continue, or q <return> to quit---
#12 0x00007fc1e1b4f6f5 in CTC_backend (supplied_start_routine=0x7fc1e1b35240 <worker_thread>) at threads.c:121
#13 0x00007fc1e04b5494 in start_thread (arg=0x7fc1d826b700) at pthread_create.c:333
#14 0x00007fc1dee7d93f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
(gdb) quit
A debugging session is active.

	Inferior 1 [process 17672] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/sbin/citserver, process 17672
root at sid:~# 
root at sid:~# 
root at sid:~# 
root at sid:~# gdb -p 17859
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 17859
[New LWP 17860]
[New LWP 17861]
[New LWP 17862]
[New LWP 17863]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fc1dee4d08d in nanosleep () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) cont
Continuing.

Thread 4 "citserver" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc1d836c700 (LWP 17862)]
__strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:165
165	../sysdeps/x86_64/multiarch/strcmp-sse42.S: No such file or directory.
(gdb) bt
#0  __strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:165
#1  0x00007fc1e1b3ef17 in CtdlUserGoto (where=<optimized out>, display_result=display_result at entry=0, 
    transiently=transiently at entry=0, retmsgs=retmsgs at entry=0x0, retnew=retnew at entry=0x0, retoldest=retoldest at entry=0x0, 
    retnewest=0x0) at room_ops.c:814
#2  0x00007fc1e1b31084 in do_login () at user_ops.c:710
#3  0x00007fc1e1b317c5 in CtdlTryPassword (password=password at entry=0x7fc1d8369d80 "gah4biTi", len=<optimized out>)
    at user_ops.c:946
#4  0x00007fc1e1b65149 in cmd_pass (buf=<optimized out>) at modules/ctdlproto/serv_user.c:71
#5  0x00007fc1e1b35e34 in DLoader_Exec_Cmd (cmdbuf=cmdbuf at entry=0x7fc1d836adc0 "PASS gah4biTi") at serv_extensions.c:298
#6  0x00007fc1e1b5cd17 in do_command_loop () at modules/ctdlproto/serv_ctdlproto.c:72
#7  0x00007fc1e1b355cf in worker_thread (blah=blah at entry=0x0) at sysdep.c:1456
#8  0x00007fc1e1b4f6f5 in CTC_backend (supplied_start_routine=0x7fc1e1b35240 <worker_thread>) at threads.c:121
#9  0x00007fc1e04b5494 in start_thread (arg=0x7fc1d836c700) at pthread_create.c:333
#10 0x00007fc1dee7d93f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
(gdb) quit
A debugging session is active.

	Inferior 1 [process 17859] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/sbin/citserver, process 17859
root at sid:~# exit

Script done on Wed 10 May 2017 03:52:22 PM CDT
-------------- next part --------------
Script started on Wed 10 May 2017 03:48:31 PM CDT
root at sid:~# exitDEBIAN_FRONTEND=readline apt-get install citadel-client citadel-dbg citadel-server libcitadel4-dbg
citadel
Attaching to server...
Citadel 902             
Citadel Server
(null)
 pause    next    stop
 ctrl-s  ctrl-o  ctrl-c

 
 Welcome to Citadel Server!
 
 This logon banner resides in /etc/citadel/messages//hello -- please customize it for your site.
  

Enter your name:  newblahblah
'newblahblah' not found.
Type 'off' if you would like to exit.
Do you want to create a new user account called 'newblahblah'? Yes




Your connection to Citadel Server is broken.
Last error: No such process
Please re-connect and log in again.
root at sid:~# 
root at sid:~# citadel
Attaching to server...
Citadel 902             
Citadel Server
(null)
 pause    next    stop
 ctrl-s  ctrl-o  ctrl-c

 
 Welcome to Citadel Server!
 
 This logon banner resides in /etc/citadel/messages//hello -- please customize it for your site.
  

Enter your name:  admin

Please enter your password: ********
<< wrong password >>
Enter your name:    
Enter your name:  root at sid:~# 
root at sid:~# 
root at sid:~# citadel
Attaching to server...
Citadel 902             
Citadel Server
(null)
 pause    next    stop
 ctrl-s  ctrl-o  ctrl-c

 
 Welcome to Citadel Server!
 
 This logon banner resides in /etc/citadel/messages//hello -- please customize it for your site.
  

Enter your name:  admin

Please enter your password: ********




Your connection to Citadel Server is broken.
Last error: Interrupted system call
Please re-connect and log in again.
root at sid:~# exit

Script done on Wed 10 May 2017 03:52:23 PM CDT


More information about the Pkg-citadel-devel mailing list