View Issue Details

IDProjectCategoryView StatusLast Update
0000955unrealircdpublic2003-11-20 19:43
ReporterLRL Assigned Tosyzop  
PrioritynormalSeveritycrashReproducibilityrandom
Status closedResolutionfixed 
Product Version3.2-beta16 
Summary0000955: [W] Crash at random / high cpu usage
DescriptionSometime without any warning it'll just up and crash. Then with it being a services it's restarted and right after crash again. The ReleaseID is (1.1.1.1.2.1.2.30 2003/05/03 15:42:20) I've had this problem befor with beta 15. When I updated to the current cvs version at the time it stoped. Then started happening again right befor I upgraded to beta 16. I have attached the DrWatson info, if it's of any help at all. It dosen't create any core files, just up and crashes. I've also included the config file. This even happen when I copyed the unreal directory to my win xp pro box, although it wasen't a service it still didn't create any core files. any help would be appreciated
Additional Information[Syzop]
There's a bug in the resolver which can cause:
- high CPU usage (a [temporarely] stall)
- crashes: usually you can see async_dns in the wircd.somenum.core backtrace
- I think not able to resolve some hostnames is also related

There are probably multiple windows-specific resolver bugs causing all this. codemastr and me are trying to figure it out but the resolver is the hardest (and most ugly) code of the ircd. However there's hope thanks to mpatrol, minidumps and (human) source audits :).
Attached Files
win32restounix.patch (42,842 bytes)
3rd party modules

Activities

LRL

2003-05-06 11:46

reporter   ~0002666

I did actuly get it to output core files by removing it as a service. these files are wircd.1220.core and wircd.308.core and uploaded

LRL

2003-05-07 19:11

reporter   ~0002699

Last edited: 2003-05-07 19:16

a while after having this problem I restarted my router, and it stoped crashing. This leaves me baffled. I wouldn't think a reouter could cause any problem with it. Although that seems the case. If someone figured out how it was caussing trouble, couldn't it be used as some sort of attack. I beleave this should be looked into. The router is probably corrupting the packets. Ideas, suggestions?

LRL

edited on: 05-07-03 19:16

syzop

2003-05-08 01:13

administrator   ~0002702

If you are bored, can you set set::options::dont-resolve, then the resolver is almost fully disabled... and if you do so, please report back if it helped or not.

syzop

2003-05-08 02:13

administrator   ~0002704

[03:46:24] <Syzop> did you see I asked for set::options::dont-resolve ? ;p
[03:46:31] <LRLd> yea
[03:46:44] <LRLd> but once I restart the router the problem goes away
[03:47:40] <LRLd> when it happens again I'll try that Syzop, but I'm sure it's s/ting unrelated to unreal

LRL

2003-05-08 02:15

reporter   ~0002705

heh :P

LRL

2003-05-22 09:33

reporter   ~0002833

It's definaly something to deal with DNS. Some guy came into #unreal-support and had the very same problem. He was also having trouble with users DNS's being resolved. After he added set::options::dont-resolve it stoped. ICS seemed to create the dns problem.

syzop

2003-05-22 18:25

administrator   ~0002834

Hm what's ICS? :P

codemastr

2003-05-22 19:35

reporter   ~0002835

Internet Connection Sharing?

LRL

2003-05-22 23:45

reporter   ~0002836

Last edited: 2003-05-22 23:46

yes, internet connection sharing ;)

edited on: 05-22-03 23:46

syzop

2003-05-29 21:55

administrator   ~0002881

Last edited: 2003-05-29 21:56

Please try http://www.vulnscan.org/UnrealIrcd/win_cvs_build.html (altough LRL is already doing that, just in case anyone else is looking at this too).. I'm currently testing if minidumps are working ok, received 0 replies so far :/.

edited on: 05-29-03 21:56

syzop

2003-06-01 01:27

administrator   ~0002900

Removed core files and made bug public, so for other ppl: please download that debug version (see above) :p

syzop

2003-06-01 19:53

administrator   ~0002912

codemastr and me found&fixed some serious resolver bugs, please download the updated version from http://www.vulnscan.org/UnrealIrcd/win_cvs_build.html or direct: http://huizen.dds.nl/~syz/win-precompiled/b16-cvs20030601.exe

In my own tests the previous version crashed (with a special heap checker) within 10s after <100 connects and now it didn't after >3000 connects (then stopped testing), so... please test ;).

syzop

2003-06-09 01:42

administrator   ~0002946

Hm ok, I now got rid of the whole win32 resolver code (it's now using the *NIX code with some modifications).
Get it from: http://www.vulnscan.org/UnrealIrcd/win_cvs_build.html

NOTE: as a side effect your set::nameserver should now be set correctly to your nameserver.

codemastr

2003-06-09 04:48

reporter   ~0002948

Tomorrow I'll work on the nameserver garbage, I have an old win32 port of ircu that at least tries to get the nameserver from the registry.

syzop

2003-06-09 19:11

administrator   ~0002953

/me drops win32 coding.. I think I've done enough "good stuff" for them (and totally in contrast to my personal opionion that windoze ircd's shouldnt exist) :P.
codemastr: so you can use my patch etc.. only resolver thing I'll still work at is security stuff.

syzop

2003-06-15 23:27

administrator   ~0002977

Let's see if beta17 fixes this.

Issue History

Date Modified Username Field Change
2003-05-06 09:31 LRL New Issue
2003-05-06 09:31 LRL File Added: unrealircd.conf
2003-05-06 09:32 LRL File Added: DrWatson.txt
2003-05-06 11:46 LRL Note Added: 0002666
2003-05-06 11:46 LRL File Added: wircd.1220.core
2003-05-06 11:46 LRL File Added: wircd.308.core
2003-05-06 14:51 syzop Summary Crash at random and right after start => [W] Crash at random and right after start
2003-05-07 19:11 LRL Note Added: 0002699
2003-05-07 19:16 LRL Note Edited: 0002699
2003-05-08 01:13 syzop Note Added: 0002702
2003-05-08 02:13 syzop Note Added: 0002704
2003-05-08 02:15 LRL Note Added: 0002705
2003-05-22 09:33 LRL Note Added: 0002833
2003-05-22 18:25 syzop Note Added: 0002834
2003-05-22 19:35 codemastr Note Added: 0002835
2003-05-22 23:45 LRL Note Added: 0002836
2003-05-22 23:46 LRL Note Edited: 0002836
2003-05-29 21:55 syzop Note Added: 0002881
2003-05-29 21:56 syzop Note Edited: 0002881
2003-06-01 01:26 syzop File Deleted: unrealircd.conf
2003-06-01 01:26 syzop File Deleted: DrWatson.txt
2003-06-01 01:26 syzop File Deleted: wircd.1220.core
2003-06-01 01:26 syzop File Deleted: wircd.308.core
2003-06-01 01:26 syzop View Status private => public
2003-06-01 01:26 syzop Summary [W] Crash at random and right after start => [W] Crash at random
2003-06-01 01:27 syzop Note Added: 0002900
2003-06-01 03:52 syzop Summary [W] Crash at random => [W] Crash at random / high cpu usage
2003-06-01 03:52 syzop Additional Information Updated
2003-06-01 19:53 syzop Note Added: 0002912
2003-06-09 01:42 syzop Note Added: 0002946
2003-06-09 04:48 codemastr Note Added: 0002948
2003-06-09 13:45 syzop File Added: win32restounix.patch
2003-06-09 19:11 syzop Note Added: 0002953
2003-06-15 23:27 syzop Status new => resolved
2003-06-15 23:27 syzop Resolution open => fixed
2003-06-15 23:27 syzop Assigned To => syzop
2003-06-15 23:27 syzop Note Added: 0002977
2003-11-20 19:43 syzop Status resolved => closed