View Issue Details

IDProjectCategoryView StatusLast Update
0005412unrealircdpublic2019-09-21 15:42
ReporterwestorAssigned To 
Status acknowledgedResolutionopen 
Product Version5.0.0-alpha2 
Target VersionFixed in Version 
Summary0005412: Unloading chanmode modules crashes the server

I tried to disable some modules directly from "modules.conf" and then /rehash but the server stops responding (NOT CRASHED) and i got some debugs in console, i will provide you these informations and the steps:

Modules Unloaded:

chanmodes/nocolor - chanmodes/link - chanmodes/noknock - chanmodes/noinvite - chanmodes/nonotice - chanmodes/nokick - usermodes/privdeaf - snomasks/dccreject - ident_lookup

Console Debug:
IRC Debug:

- Thanks!
Additional Information==29631==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55fcbad53a12 bp 0x7ffec2bdb8d0 sp 0x7ffec2bdb7e0 T0)
==29631==The signal is caused by a READ memory access.
==29631==Hint: address points to the zero page.
    #0 0x55fcbad53a11 in ircvsnprintf /home/westor/unrealircd_5_source/unrealircd/src/ircsprintf.c:54
    #1 0x55fcbadbcba8 in vsendto_prefix_one /home/westor/unrealircd_5_source/unrealircd/src/send.c:898
    #2 0x55fcbadbd20f in sendto_channel /home/westor/unrealircd_5_source/unrealircd/src/send.c:398
    #3 0x55fcbadc9a8c in unload_extcmode_commit /home/westor/unrealircd_5_source/unrealircd/src/api-channelmode.c:311
    #4 0x55fcbadca59c in CmodeDel /home/westor/unrealircd_5_source/unrealircd/src/api-channelmode.c:354
    #5 0x55fcbad5cb25 in FreeModObj /home/westor/unrealircd_5_source/unrealircd/src/modules.c:526
    #6 0x55fcbad5d2df in Module_free /home/westor/unrealircd_5_source/unrealircd/src/modules.c:654
    #7 0x55fcbad5e016 in Module_Unload /home/westor/unrealircd_5_source/unrealircd/src/modules.c:717
    0000008 0x55fcbad5e0b3 in e_unload_module_delayed /home/westor/unrealircd_5_source/unrealircd/src/modules.c:1172
    #9 0x55fcbadd554d in DoEvents /home/westor/unrealircd_5_source/unrealircd/src/api-event.c:145
    #10 0x55fcbad53525 in main /home/westor/unrealircd_5_source/unrealircd/src/ircd.c:1358
    #11 0x7f90f83b6b96 in __libc_start_main (/lib/x86_64-linux-gnu/
    #12 0x55fcbad348b9 in _start (/home/westor/unrealircd_5/bin/unrealircd+0x558b9)
TagsNo tags attached.
3rd party modulesnone



2019-09-18 12:37

reporter   ~0020898

When i tried to start again the server the console gave me 2 warnings:

[warning] [tkldb] Unhandled type!! TKLDB is missing support for type 132 -- STOPPED reading db entries!
[warning] [tkldb] Database invalid. Extra data found at end of DB file.


2019-09-18 12:40

reporter   ~0020899

I will provide you the "tkl.db" just in case that will help more.

tkl.db (125,881 bytes)


2019-09-21 15:35

administrator   ~0020908

Thanks, shouldn't crash indeed.


2019-09-21 15:37

administrator   ~0020912

tkldb issue split off to


2019-09-21 15:42

administrator   ~0020913

I'll see if I can have a look at this today for alpha3, otherwise I'll do it post-alpha3 though.

Issue History

Date Modified Username Field Change
2019-09-18 12:34 westor New Issue
2019-09-18 12:37 westor Note Added: 0020898
2019-09-18 12:40 westor File Added: tkl.db
2019-09-18 12:40 westor Note Added: 0020899
2019-09-21 15:35 syzop Status new => acknowledged
2019-09-21 15:35 syzop Summary Server stops responding and disconnected after disabling some modules => Unloading chanmode modules crashes the server
2019-09-21 15:35 syzop Note Added: 0020908
2019-09-21 15:37 syzop Issue cloned: 0005418
2019-09-21 15:37 syzop Note Added: 0020912
2019-09-21 15:38 syzop Additional Information Updated View Revisions
2019-09-21 15:42 syzop Note Added: 0020913