View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000932 | unreal | ircd | public | 2003-04-29 17:17 | 2003-05-03 19:33 |
| Reporter | Rocko | Assigned To | |||
| Priority | normal | Severity | crash | Reproducibility | have not tried |
| Status | closed | Resolution | open | ||
| Summary | 0000932: Segmentation fault on /rehash, caused by modules !? | ||||
| Description | The IRCd crashed after /rehash. I am using following modules: loadmodule "src/modules/commands.so"; loadmodule "src/modules/scan.so"; loadmodule "src/modules/scan_socks.so"; loadmodule "src/modules/scan_http.so"; | ||||
| Additional Information | Program 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 Module_DelayChildren (m=0x814f6e8) at modules.c:245 245 c->child->flags |= MODFLAG_DELAYED; (gdb) bt #0 Module_DelayChildren (m=0x814f6e8) at modules.c:245 #1 0x080658a3 in Module_DelayChildren (m=0x814f6e0) at modules.c:246 #2 0x080658a3 in Module_DelayChildren (m=0x814efb0) at modules.c:246 #3 0x08065a06 in Unload_all_loaded_modules () at modules.c:326 #4 0x0806f1a5 in init_conf (rootconf=0x8092bf1 "unrealircd.conf", rehash=1) at s_conf.c:1198 #5 0x08079729 in rehash (cptr=0x8173658, sptr=0x8173658, sig=0) at s_conf.c:6452 #6 0x08083b91 in m_rehash (cptr=0x8173658, sptr=0x8173658, parc=1, parv=0x8114340) at s_serv.c:3698 #7 0x08067a4b in parse (cptr=0x8173658, buffer=0x817373c "REHASH", bufend=0x8173742 "") at parse.c:466 0000008 0x080666bc in dopacket (cptr=0x8173658, buffer=0x8114ce0 "REHASH\n", length=7) at packet.c:137 #9 0x0806cbb2 in read_packet (cptr=0x8173658, rfd=0xbffffa7c) at s_bsd.c:1463 #10 0x0806d31f in read_message (delay=9, listp=0x8128140) at s_bsd.c:1909 #11 0x080642b1 in main (argc=1, argv=0xbffffbc4) at ircd.c:1359 | ||||
| 3rd party modules | |||||
|
|
And after starting it new, I made ps ux and got the following: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND rocko 20276 0.6 1.1 32876 2908 ? S 18:58 0:00 /home/rocko/Unreal3.2/src/ircd rocko 32005 0.0 1.1 32876 2908 ? S 18:58 0:00 /home/rocko/Unreal3.2/src/ircd rocko 19624 0.0 1.1 32876 2908 ? S 18:58 0:00 /home/rocko/Unreal3.2/src/ircd rocko 17232 0.0 1.1 32876 2908 ? S 18:58 0:00 /home/rocko/Unreal3.2/src/ircd rocko 13795 0.0 1.1 32876 2908 ? S 18:58 0:00 /home/rocko/Unreal3.2/src/ircd rocko 20749 0.0 1.1 32876 2908 ? S 18:58 0:00 /home/rocko/Unreal3.2/src/ircd rocko 5420 0.0 99.9 589505315 589505315 ? SL 18:58 0:00 [ircd] 99,9 percent of RAM, 589505315 KB ;) Was only few seconds after starting. |
|
|
lol @ ps output ;)). Anyway, can you type te following in gdb: p *m p *c p *c->child |
|
|
Sure. (gdb) p *m $1 = {prev = 0x64616f, next = 0x11, header = 0x37c6a8, dll = 0x37c6a8, flags = 24 '\030', children = 0x10, objects = 0x20d7e0} (gdb) p *c Cannot access memory at address 0x10 (gdb) p *c->child Cannot access memory at address 0x18 |
|
|
Hmmmm, a pointer pointing to 0x10 is not good ;PP. A "few" questions: - so you are not using any custom modules? - did you enable/change anything in config.h? - got any servers linked? - and services? - are you using throttling? (do you have a set::throttle block?) Can you send your ircd binary + core file to [email protected] ? :) |
|
|
Yes, the core file is 16 MB big lol. Many questions.. ok, let me begin... Q: - so you are not using any custom modules? A: I am using only the 4, posted above. Q: - did you enable/change anything in config.h? A: Uhm no, only the default, on all servers. Q: - got any servers linked? A: yes 3, 4 with services. Q: - and services? A: yes, linked to the server which crashed. Q: - are you using throttling? (do you have a set::throttle block?) A: Yes, on 2 servers, on one not, because it's not compiled with throttle (older cvs version of beta15.) The files are on their way. [Edit] The server which crashed had throttling enabled. Forgot to say that. bearbeitet am: 04-29-03 19:21 |
|
|
Thanks :PP. |
|
|
Strange.. all the module structs are fucked up. |
|
|
Hmmm... And that only with a /rehash? ;) Wierd. |
|
|
Is there something solved or you know, if it is a major bug or just my version on my system which is fucked up, and it won´t happen again so fast? I don't like to try a /rehash again ;) [Edit] Ok i tried it lol, it worked. But this bug is maybe a sign or a cause for the /rehash stall, and/or have something to do with the bug report 0000880 bearbeitet am: 05-01-03 22:49 |
|
|
In beta16 the scanner modules will be removed (you have to use BOPM instead), that will probably also fix a bunch of hangs/crashes/weird errors. |
|
|
beta16 has been released, let's see if this bug still exists ;). |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2003-04-29 17:17 | Rocko | New Issue | |
| 2003-04-29 17:28 | Rocko | Note Added: 0002560 | |
| 2003-04-29 18:03 | syzop | Note Added: 0002562 | |
| 2003-04-29 18:08 | Rocko | Note Added: 0002563 | |
| 2003-04-29 18:55 | syzop | Note Added: 0002566 | |
| 2003-04-29 19:17 | Rocko | Note Added: 0002567 | |
| 2003-04-29 19:21 | Rocko | Note Edited: 0002567 | |
| 2003-04-29 19:26 | syzop | Note Added: 0002568 | |
| 2003-04-29 20:30 | syzop | Note Added: 0002571 | |
| 2003-04-29 20:42 | Rocko | Note Added: 0002572 | |
| 2003-05-01 22:22 | Rocko | Note Added: 0002600 | |
| 2003-05-01 22:49 | Rocko | Note Edited: 0002600 | |
| 2003-05-02 04:13 | syzop | Note Added: 0002604 | |
| 2003-05-03 19:33 | syzop | Status | new => closed |
| 2003-05-03 19:33 | syzop | Note Added: 0002618 |