View Issue Details

IDProjectCategoryView StatusLast Update
0000791unrealircdpublic2003-11-20 19:46
ReporterRocko Assigned Tocodemastr 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version3.2-beta15 
Summary0000791: Crash when using 'set::allow-userhost-change force-rejoin'
DescriptionThe IRCd crashes, when "set::allow-userhost-change force-rejoin" is defined and you try to change a userhost or set +/- x.
Steps To ReproduceDefine "set::allow-userhost-change force-rejoin" in unrealircd.conf and change a userhost.
Additional InformationProgram terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libssl.so.0.9.6...done.
Loaded symbols for /usr/lib/libssl.so.0.9.6
Reading symbols from /usr/lib/libcrypto.so.0.9.6...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.6
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from src/modules/commands.so...done.
Loaded symbols for src/modules/commands.so
Reading symbols from src/modules/scan.so...done.
Loaded symbols for src/modules/scan.so
Reading symbols from src/modules/scan_socks.so...done.
Loaded symbols for src/modules/scan_socks.so
Reading symbols from src/modules/scan_http.so...done.
Loaded symbols for src/modules/scan_http.so
#0 0x080892dc in m_umode (cptr=???, sptr=???, parc=???, parv=???) at s_user.c:2507
2507 if ((setflags & (UMODE_OPER | UMODE_LOCOP)) && !IsAnOper(sptr) &&
(gdb) bt
#0 0x080892dc in m_umode (cptr=???, sptr=???, parc=???, parv=???) at s_user.c:2507
Cannot access memory at address 0x0
3rd party modules

Activities

syzop

2003-03-10 22:24

administrator   ~0001871

Your gdb output is pretty weird hehe ;P.

Can you mail the following (.tar.gz'd) to [email protected]:
- the ircd binary (src/ircd)
- the core file
- the unrealircd.conf and any included files you use (without oper&link blocks and cloak keys removed).

Thanks.

syzop

2003-03-11 20:04

administrator   ~0001880

No longer working at, no longer assigned, private->public. Bug may pretty well be grsec related.

AngryWolf

2003-03-11 20:29

reporter   ~0001881

Last edited: 2003-03-11 20:30

Well, the same for me...

(I have just tried what Rocko said in 'Steps To Reproduce':)

#0 m_sethost (cptr=???, sptr=???, parc=???, parv=???) at m_sethost.c:262
262 sendto_one(sptr,
(gdb) bt
#0 m_sethost (cptr=???, sptr=???, parc=???, parv=???) at m_sethost.c:262
Error accessing memory address 0x0: No such process.
(gdb)

edited on: 03-11 20:30

AngryWolf

2003-03-11 20:32

reporter   ~0001882

Syzop: did you try to test it yourself? I think it would do the same.

Rocko

2003-03-11 20:43

reporter   ~0001883

Yes he had, but it didn´t crash. wierd.

AngryWolf, which kernel do you have? You are having the grsec patch too?
Paste "uname -a" here.

AngryWolf

2003-03-11 20:45

reporter   ~0001884

No grsec, simply crashes...

Linux wolf 2.4.18-4GB #1 Fri Apr 5 15:14:39 UTC 2002 i686 unknown

AngryWolf

2003-03-11 20:48

reporter   ~0001885

I could reproduce your bug (/mode nick -x) and the same when doing /chghost, /sethost and /vhost

AngryWolf

2003-03-11 20:52

reporter   ~0001886

Another crash at another system (RedHat 7.1):
Linux ods.org 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
The previous computer was SuSE 8.0

This is why I'm telling that just test it, Syzop ...

|Zerwas|

2003-03-12 19:13

reporter   ~0001900

same here:
Core was generated by `/home/ipv6/Unreal/src/ircd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from src/modules/commands.so...done.
Loaded symbols for src/modules/commands.so
#0 0x4008c781 in kill () from /lib/libc.so.6
(gdb) bt
#0 0x4008c781 in kill () from /lib/libc.so.6
#1 0x08096619 in default_action ()
#2 0x080967bc in handle_thread_signal ()
#3 0x08096cd7 in handle_one_signal ()
#4 0x08096e4e in pthread_handle_one_process_signal ()
#5 0x080a0b56 in pthread_signal_sched ()
#6 0x080a0040 in pthread_sched_wrapper ()
#7 0x08097159 in sighandler ()

Rocko

2003-03-12 22:36

reporter   ~0001911

I found out something interesting:

When I am in 3 channels or MORE, it rejoin all or a few channels and crash THEN.
But when I am only in 2 or one, it crash IMMEDIATELY.

Maybe this hint will help.

codemastr

2003-03-29 00:06

reporter   ~0002047

Fixed in .1700

Issue History

Date Modified Username Field Change
2003-11-20 19:46 syzop Status resolved => closed