View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000846 | unreal | ircd | public | 2003-03-27 11:57 | 2003-11-20 19:46 |
| Reporter | poisoner | Assigned To | syzop | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.2-beta15 | ||||
| Summary | 0000846: ircd crahes after many rehashes | ||||
| Description | ircd crashes after some rehashes. New Features used since B14: ban version, restrict-usermodes, modes-on-join | ||||
| Steps To Reproduce | rehash one Server several times | ||||
| Additional Information | (gdb) bt #0 0x400debd4 in free () from /lib/libc.so.6 #1 0x400deaa3 in free () from /lib/libc.so.6 #2 0x0806d39c in config_entry_free (ceptr=0x825b280) at s_conf.c:1012 #3 0x0806d36a in config_entry_free (ceptr=0x8236550) at s_conf.c:1007 #4 0x0806cc93 in config_free (cfptr=0x8220138) at s_conf.c:721 #5 0x0806db14 in init_conf (rootconf=0x808fb81 "unrealircd.conf", rehash=1) at s_conf.c:1250 #6 0x080773b9 in rehash (cptr=0x8212970, sptr=0x8212970, sig=0) at s_conf.c:6300 #7 0x08081471 in m_rehash (cptr=0x8212970, sptr=0x8212970, parc=1, parv=0x8110e80) at s_serv.c:3655 0000008 0x080662ab in parse (cptr=0x8212970, buffer=0x8212a54 "rehash", bufend=0x8212a5a "") at parse.c:466 #9 0x08064efc in dopacket (cptr=0x8212970, buffer=0x8111840 "rehash\r", length=7) at packet.c:137 #10 0x0806b532 in read_packet (cptr=0x8212970, rfd=0xbffffcfc) at s_bsd.c:1459 #11 0x0806bc7b in read_message (delay=1, listp=0x8120500) at s_bsd.c:1905 #12 0x08062a78 in main (argc=1, argv=0xbffffe54) at ircd.c:1336 | ||||
| Attached Files | unrealircd.conf (4,242 bytes) help.conf (37,890 bytes) | ||||
| 3rd party modules | |||||
|
|
Another Try: Server Started, connected to server about 5 secs after startup, disabled new features, which are in B15 and not in B14. First rehash crashed Server... New Backtrace of gdb: (gdb) bt #0 0x400debd4 in free () from /lib/libc.so.6 #1 0x400deaa3 in free () from /lib/libc.so.6 #2 0x0806d390 in config_entry_free (ceptr=0x821a1a8) at s_conf.c:1011 #3 0x0806d36a in config_entry_free (ceptr=0x8218988) at s_conf.c:1007 #4 0x0806cc93 in config_free (cfptr=0x81ea5d0) at s_conf.c:721 #5 0x0806db14 in init_conf (rootconf=0x808fb81 "unrealircd.conf", rehash=1) at s_conf.c:1250 #6 0x080773b9 in rehash (cptr=0x8205658, sptr=0x8205658, sig=0) at s_conf.c:6300 #7 0x08081471 in m_rehash (cptr=0x8205658, sptr=0x8205658, parc=1, parv=0x8110e80) at s_serv.c:3655 0000008 0x080662ab in parse (cptr=0x8205658, buffer=0x820573c "rehash", bufend=0x8205742 "") at parse.c:466 #9 0x08064efc in dopacket (cptr=0x8205658, buffer=0x8111840 "rehash\r", length=7) at packet.c:137 #10 0x0806b532 in read_packet (cptr=0x8205658, rfd=0xbffffcfc) at s_bsd.c:1459 #11 0x0806bc7b in read_message (delay=1, listp=0x8120500) at s_bsd.c:1905 #12 0x08062a78 in main (argc=1, argv=0xbffffe54) at ircd.c:1336 |
|
|
I've had the same problem. Making any changes in the .conf file causes the ircd to crash. It's almost like the rehash is sending a kill signal to the process instead of the rehash signal. I have nothing documented to display as of now, but will the next time it happens. I can say however, that I am the main hub for our network, and am config'd as hub server...This wreaks havok on the network as you can imagine... =\ |
|
|
For information after reading bug 0000841: Using gcc 2.95.4 and glibc 2.2.5 ... |
|
|
Red Hat Linux 7.1 gcc version 2.95.3 20000503/Linux (prerelease) Linux wolf 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown Unreal3.2-beta15 build 1.1.1.1.2.1.2.1.2.1701 2003/04/01 12:25:58 using OpenSSL 0.9.6 24 Sep 2000 using zlib 1.1.3 * Loading IRCd configuration .. ./unreal: line 34: 30914 Segmentation fault (core dumped) /home/wolf/tmp/IRCNetwork/ircd1/ircd #0 0x401e67c3 in chunk_free () from /lib/libc.so.6 #1 0x401e6548 in free () from /lib/libc.so.6 #2 0x0806e79c in config_entry_free (ceptr=0x8178468) at s_conf.c:1012 #3 0x0806e76a in config_entry_free (ceptr=0x816e5b0) at s_conf.c:1007 #4 0x0806e073 in config_free (cfptr=0x816a9a0) at s_conf.c:721 #5 0x0806ef54 in init_conf (rootconf=0x80926f1 "unrealircd.conf", rehash=0) at s_conf.c:1250 #6 0x08063593 in main (argc=1, argv=0xbffffaac) at ircd.c:1066 #7 0x401891c4 in __libc_start_main () from /lib/libc.so.6 I uploaded my configuration file. Want to know more? |
|
|
Ok, uploaded help.conf too (dunno why, I didn't make any changes in the file). If I don't include "help.conf" then Unreal starts successfully. There is something wrong with processing the help file... |
|
|
When I try to load help.conf by doing /rehash, there is no problem. But if I try to unload it then ircd crashes. edited on: 04-05 10:24 |
|
|
Can you recheck with latest CVS? It doesn't crash here anymore. Probably because of my oob read fixes. |
|
|
Sure, it doesn't crash here too, the bug seems to be fixed, thanks! edited on: 04-06 17:18 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2003-11-20 19:46 | syzop | Status | resolved => closed |