View Issue Details

IDProjectCategoryView StatusLast Update
0004324unrealircdpublic2014-08-18 19:59
Reporterhunterkll Assigned Totmcarthur  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Platformamd64/Xen VM guestOSDebian Linux 64bitOS Version6.0
Product Version3.4-alpha1 
Fixed in Version3.4-alpha2 
Summary0004324: segfault on launch of ircd
DescriptionUpon new installation of 3.4-alpha1 released tarball, as well as using the latest github sources, starting the ircd with an existing configuration causes a seg fault with core dump on launch via ./unreal start.

This occurs regardless of if it's installed to a seperate directory or compiled and used within the source tree.
Steps To ReproduceConfigure and make unreal

Re-use existing ircd configuration with the proper changes noted, copying over SSL certificates.

Receive coredump.
Additional Information./unrealircd backtrace attached from latest github build

(rest below are snippets for quick viweing from two -alpha1 attempts and the latest source attempt)

-alpha1 core dump and stack trace:

kaiba@chaosircd:~/unreal34alpha1/conf$ gdb ../bin/ircd core
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/kaiba/unreal34alpha1/bin/ircd...done.

warning: Can't read pathname for load map: Input/output error.

(snipped loading symbols)
Core was generated by `/home/kaiba/unreal34alpha1/bin/ircd'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f937eb229a5 in _IO_padn () from /lib/libc.so.6
(gdb)

(gdb) bt
#0 0x00007f937eb229a5 in _IO_padn () from /lib/libc.so.6
#1 0x00007f937eb02ffc in vfprintf () from /lib/libc.so.6
#2 0x00007f937eb25732 in vsnprintf () from /lib/libc.so.6
#3 0x00007f937eb0aaf3 in snprintf () from /lib/libc.so.6
#4 0x00007f937eb4f3f9 in ?? () from /lib/libc.so.6
#5 0x000000000043c043 in myctime (value=1407836138) at s_misc.c:266
#6 0x0000000000439c70 in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:296
#7 0x000000000042c8a3 in config_status (format=<value optimized out>)
    at s_conf.c:1279
0000008 0x0000000000439fff in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:358
#9 0x000000000042c8a3 in config_status (format=<value optimized out>)
    at s_conf.c:1279

==== Second attempt on -alpha1 core dump and stack trace ===

Core was generated by `/home/kaiba/unreal34alpha1try2/bin/ircd'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000041eab9 in ircvsnprintf (str=0x7fffe0bf3040 "", size=2048, format=0x46978d "%s", vl=0x7fffe0bf3950)
    at ircsprintf.c:43
43 char *ircvsnprintf(char *str, size_t size, const char *format, va_list vl) {
(gdb)


#0 0x000000000041eab9 in ircvsnprintf (str=0x7fffe0bf3040 "", size=2048, format=0x46978d "%s", vl=0x7fffe0bf3950)
    at ircsprintf.c:43
#1 0x0000000000439c53 in ircd_log (flags=1, format=0x46978d "%s") at s_extra.c:294
#2 0x000000000042c8a3 in config_status (format=<value optimized out>) at s_conf.c:1279
#3 0x0000000000439fff in ircd_log (flags=1, format=<value optimized out>) at s_extra.c:358
#4 0x000000000042c8a3 in config_status (format=<value optimized out>) at s_conf.c:1279
#5 0x0000000000439fff in ircd_log (flags=1, format=<value optimized out>) at s_extra.c:358
#6 0x000000000042c8a3 in config_status (format=<value optimized out>) at s_conf.c:1279



====== Latest github core dump and stack trace:

kaiba@chaosircd:~/unrealircd-unreal34$ gdb src/ircd core
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/kaiba/unrealircd-unreal34/src/ircd...done.

warning: Can't read pathname for load map: Input/output error.
Core was generated by `/home/kaiba/unrealircd-unreal34/src/ircd'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fe2190a1cc3 in vfprintf () from /lib/libc.so.6
(gdb)


#0 0x00007fe2190a1cc3 in vfprintf () from /lib/libc.so.6
#1 0x00007fe2190c7732 in vsnprintf () from /lib/libc.so.6
#2 0x000000000042c83b in config_status (format=0x7fff22b26a90 "\b")
    at s_conf.c:1269
#3 0x0000000000439fdf in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:358
#4 0x000000000042c883 in config_status (format=<value optimized out>)
    at s_conf.c:1279
#5 0x0000000000439fdf in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:358
#6 0x000000000042c883 in config_status (format=<value optimized out>)
    at s_conf.c:1279
#7 0x0000000000439fdf in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:358
0000008 0x000000000042c883 in config_status (format=<value optimized out>)
    at s_conf.c:1279
#9 0x0000000000439fdf in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:358
#10 0x000000000042c883 in config_status (format=<value optimized out>)
    at s_conf.c:1279
#11 0x0000000000439fdf in ircd_log (flags=1, format=<value optimized out>)
    at s_extra.c:358
#12 0x000000000042c883 in config_status (format=<value optimized out>)


Config.settings:
#
DPATH="/home/kaiba/unrealircd-unreal34"
SPATH="/home/kaiba/unrealircd-unreal34/src/ircd"
INET6="1"
PREFIXAQ="1"
MAXSENDQLENGTH="3000000"
MAXCONNECTIONS="1024"
NICKNAMEHISTORYLENGTH="2000"
DEFPERM="0600"
CRYPTOIRCD="1"
SSLDIR=""
REMOTEINC=""
CURLDIR=""
SHOWLISTMODES="1"
TOPICNICKISNUH=""
SHUNNOTICES=""
NOOPEROVERRIDE=""
DISABLEUSERMOD=""
OPEROVERRIDEVERIFY=""
DISABLEEXTBANSTACKING=""
GENCERTIFICATE="1"
EXTRAPARA=""
ADVANCED=""
~
TagsNo tags attached.
Attached Files
unrealbacktrace.txt (406,685 bytes)
3rd party modulesnone

Relationships

has duplicate 0004325 resolvedtmcarthur Unreal doesn't start "Core dump" 

Activities

tmcarthur

2014-08-18 04:53

reporter   ~0018219

Having a look now - thanks for the report and thanks for testing!

tmcarthur

2014-08-18 19:58

reporter   ~0018224

Fixed - you can pull code out of unreal34 branch in our git repo, or fix will be in next alpha release. Thanks for testing again!

Issue History

Date Modified Username Field Change
2014-08-12 12:08 hunterkll New Issue
2014-08-12 12:08 hunterkll File Added: unrealbacktrace.txt
2014-08-18 02:36 Stealth Relationship added related to 0004325
2014-08-18 04:52 tmcarthur Assigned To => tmcarthur
2014-08-18 04:52 tmcarthur Status new => assigned
2014-08-18 04:53 tmcarthur Note Added: 0018219
2014-08-18 04:53 tmcarthur Status assigned => acknowledged
2014-08-18 19:58 tmcarthur Note Added: 0018224
2014-08-18 19:58 tmcarthur Relationship replaced has duplicate 0004325
2014-08-18 19:59 tmcarthur Status acknowledged => resolved
2014-08-18 19:59 tmcarthur Fixed in Version => 3.4-alpha2
2014-08-18 19:59 tmcarthur Resolution open => fixed