View Issue Details

IDProjectCategoryView StatusLast Update
0002639unrealircdpublic2005-09-13 19:16
ReporterMonkAssigned Tosyzop 
PrioritynormalSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
Platformi386OSDebian SargeOS Version3.1
Product Version3.2.3 
Target VersionFixed in Version3.2.4 
Summary0002639: badwords.channel.conf crash
DescriptionWe played a little with the badwords.channel.conf and added following line:

badword channel { word ed2k://\|file.*; replace "ed2k link filtered"; action block; };

after rehashing the ircd crashed with the following core dump:

Loaded symbols for tmp/7BBF990.cloak.so
#0 _test_badword (conf=0x817e480, ce=0x81807c0) at s_conf.c:5377
5377 config_error("%s:%i: badword::action is block but badword::replace exists",
(gdb) bt full
#0 _test_badword (conf=0x817e480, ce=0x81807c0) at s_conf.c:5377
        errbuf = 0x8180901 "lock"
        errors = 0
        cep = (ConfigEntry *) 0x0
        has_word = 1 '\001'
        has_replace = 1 '\001'
        has_action = 1 '\001'
        action = 98 'b'
#1 0x0807030a in config_test () at s_conf.c:2281
        ce = (ConfigEntry *) 0x81807c0
        cfptr = (ConfigFile *) 0x817e480
        cc = (ConfigCommand *) 0x8180901
        errors = 0
        h = (Hook *) 0x0
#2 0x0806ea7c in init_conf (rootconf=0x8180901 "lock", rehash=0) at s_conf.c:1605
No locals.
#3 0x0805f8ca in main (argc=0, argv=0xbffffd64) at ircd.c:1259
        uid = 0
        euid = 0
        delay = 135605360
        corelim = {rlim_cur = 4294967295, rlim_max = 4294967295}
        nextfdlistcheck = 0
(gdb)

Ok, granted, may not be the most clever idea to combine a replace string with action block but hey... ;)

Best regards,

Monk
TagsNo tags attached.
3rd party modules

Activities

syzop

2005-09-13 19:16

administrator   ~0010464

Thanks, fixed in CVS [.381].

Issue History

Date Modified Username Field Change
2005-09-13 19:11 Monk New Issue
2005-09-13 19:16 syzop Status new => resolved
2005-09-13 19:16 syzop Fixed in Version => 3.2.4
2005-09-13 19:16 syzop Resolution open => fixed
2005-09-13 19:16 syzop Assigned To => syzop
2005-09-13 19:16 syzop Note Added: 0010464