View Issue Details

IDProjectCategoryView StatusLast Update
0002504unrealircdpublic2007-04-19 04:51
ReporterLalkin Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionunable to duplicate 
Product Version3.2.3 
Summary0002504: [Solaris] oper block with crypt hash crashes server on /oper
DescriptionBasicly what summary says. My oper block with a crypt-ed pawword crashed ircd on /oper. Changed to a different encryption method removed crash.
Steps To Reproducecreate oper block with crypted password
log into server
/oper user pass
IRCD crash and dumps core
Additional InformationStock build. No added modules.
3rd party modulesnone

Activities

Stealth

2005-04-26 20:01

reporter   ~0009816

It works fine for me, you should do a backtrace on the core and post that.

Lalkin

2005-04-26 20:53

reporter   ~0009817

I'm not much of a programmer. I think this is a backtrace. =)

spacelab.cat.pdx.edu% gdb
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7".
(gdb) core-file core
Core was generated by `/pkgs/ircd/unreal-3.2.3/sbin/ircd'.
Program terminated with signal 11, Segmentation Fault.
#0 0xff2566f0 in ?? ()
(gdb) bt
#0 0xff2566f0 in ?? ()
#1 0xff2586c8 in ?? ()
#2 0x1c210 in ?? ()
#3 0xfef1e1a4 in ?? ()
#4 0x2cb08 in ?? ()
#5 0x2ba3c in ?? ()
#6 0x332c4 in ?? ()
#7 0x33d84 in ?? ()
0000008 0x273d0 in ?? ()
(gdb)

syzop

2005-04-26 21:39

administrator   ~0009819

Try ehm:
-
gdb /pkgs/ircd/unreal-3.2.3/sbin/ircd /path/to/your/core/file
bt
-
that might give a bit better backtrace (this one doesn't seem to show any symbols).

This problem is probably related to running on solaris btw.

Lalkin

2005-04-27 04:05

reporter   ~0009829

OK this seems to give a bunch more info. If I'm reading it right I'm missing somelib or something??

spacelab.cat.pdx.edu% gdb /pkgs/ircd/unreal-3.2.3/sbin/ircd core.crypt
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7"...
Core was generated by `/pkgs/ircd/unreal-3.2.3/sbin/ircd'.
Program terminated with signal 11, Segmentation Fault.
Error while mapping shared library sections:
tmp/9F094063.commands.so: No such file or directory.
Error while mapping shared library sections:
tmp/672EBD86.cloak.so: No such file or directory.
Reading symbols from /pkgs/crypto/openssl/lib/libssl.so.0.9.7...done.
Reading symbols from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7...done.
Reading symbols from /usr/lib/libcrypt_i.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libgen.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Error while reading shared library symbols:
tmp/9F094063.commands.so: No such file or directory.
Reading symbols from /pkgs/gcc/current/lib/libgcc_s.so.1...done.
Error while reading shared library symbols:
tmp/672EBD86.cloak.so: No such file or directory.
#0 0xff2566f0 in DES_ncbc_encrypt ()
   from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7
(gdb) bt
#0 0xff2566f0 in DES_ncbc_encrypt ()
   from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7
#1 0xff2586c8 in _des_crypt ()
   from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7
#2 0x1c210 in Auth_Check (cptr=0x18a9b0, as=0x142e98,
    para=0xffbff640 "L\004$è\rÄD\2040`4 \214\203AÍ") at auth.c:469
#3 0xfef1e1a4 in ?? ()
#4 0x2cb08 in parse (cptr=0x18a9b0, buffer=0xf <Address 0xf out of bounds>,
    bufend=0x10 <Address 0x10 out of bounds>) at parse.c:437
#5 0x2ba3c in dopacket (cptr=0x18a9b0, buffer=0xfb0f1 "", length=0)
    at packet.c:138
#6 0x332c4 in read_packet (cptr=0x18a9b0, rfd=0xfb000) at s_bsd.c:1476
#7 0x33d84 in read_message (delay=2, listp=0x10edcc) at s_bsd.c:1937
0000008 0x273d0 in main (argc=1024000, argv=0xfa000) at ircd.c:1564
(gdb)

syzop

2005-04-27 17:50

administrator   ~0009835

It seems to crash in OpenSSL, but...

The output of the crash you pasted is "impossible", perhaps you could remove the unrealircd binaries and .so's and re-extract the 3.2.3 source and do a ./Config && make && make install again. Don't know if it helps.

If that doesn't improve the output (just paste it again and I'll take a look) or fix it then there's not much we can do except for suggesting to just use md5 instead.

Lalkin

2005-04-28 21:11

reporter   ~0009856

OK, I recompiled it and still got a core.

The only thing that changed in my enviroment between this compile and the last one was I upgraded from gcc 3.3 to 3.4. (If you care. =) )

I'm using md5 hashes now for my oper passwords so this bug isn't affecting me. In fact my server is about ready to go production. =)

Here is a backtrace from the new build.

spacelab.cat.pdx.edu% gdb src/ircd core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7"...

Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.

Core was generated by `/disk/fence/u/irc/Unreal3.2/src/ircd'.
Program terminated with signal 11, Segmentation Fault.
Error while mapping shared library sections:
tmp/A0F8E1F0.commands.so: No such file or directory.
Error while mapping shared library sections:
tmp/DE0F7F4A.cloak.so: No such file or directory.
Reading symbols from /pkgs/crypto/openssl/lib/libssl.so.0.9.7...
(no debugging symbols found)...done.
Reading symbols from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libcrypt_i.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libresolv.so.2...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgen.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libmp.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...
(no debugging symbols found)...done.
Error while reading shared library symbols:
tmp/A0F8E1F0.commands.so: No such file or directory.
Error while reading shared library symbols:
tmp/DE0F7F4A.cloak.so: No such file or directory.
#0 0xff256660 in DES_ncbc_encrypt ()
   from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7
(gdb) bt
#0 0xff256660 in DES_ncbc_encrypt ()
   from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7
#1 0xff2586c8 in _des_crypt ()
   from /pkgs/crypto/openssl/lib/libcrypto.so.0.9.7
#2 0x1c27c in ?? ()
#3 0xfef1e0e0 in ?? ()
#4 0x2d440 in ?? ()
#5 0x2c164 in ?? ()
#6 0x34b54 in ?? ()
#7 0x27c78 in ?? ()
(gdb)

Issue History

Date Modified Username Field Change
2005-04-26 19:48 Lalkin New Issue
2005-04-26 19:48 Lalkin 3rd party modules => none
2005-04-26 20:01 Stealth Note Added: 0009816
2005-04-26 20:53 Lalkin Note Added: 0009817
2005-04-26 21:39 syzop Note Added: 0009819
2005-04-26 21:39 syzop Summary oper block with crypt hash crashes server on /oper => [Solaris] oper block with crypt hash crashes server on /oper
2005-04-27 04:05 Lalkin Note Added: 0009829
2005-04-27 17:50 syzop Note Added: 0009835
2005-04-28 21:11 Lalkin Note Added: 0009856
2007-04-19 04:51 stskeeps Status new => closed
2007-04-19 04:51 stskeeps Resolution open => unable to duplicate