View Issue Details

IDProjectCategoryView StatusLast Update
0001426unrealircdpublic2003-12-23 22:29
ReporterAngryWolf Assigned Tocodemastr 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSSuSEOS Version8.2
Product Version3.2-beta19 
Summary0001426: Duplicated dynamic modules
DescriptionI'm coming up with a bug in the module API again (hopefully it is). I've uploaded m_test.c that contains function Mod_Load with a return value of MOD_FAILED. When I start the server, not much happens to look at,

* Loading IRCd configuration ..
* [m_test] Mod_Init called
* Configuration loaded without any problems ..
(blabla...)

but when I next time do a /rehash, I see these messages:

*** Notice -- AngryWolf is rehashing server config file
382 unrealircd.conf : Rehashing
*** Notice -- Loading IRCd configuration ..
*** Notice -- [m_test] Mod_Init called
*** Notice -- [m_test] Mod_Load called
*** Notice -- cannot load module test
*** Notice -- [m_test] Mod_Load called
*** Notice -- cannot load module test
*** Notice -- Configuration loaded without any problems ..

Seems like the module is loaded twice. /module shows:

*** test - v1.0 (bug tester) [3RD]
*** commands - $Id: l_commands.c,v 1.1.2.51 2003/11/11 20:20:21 syzop Exp $ (Wrapper library for m_ commands)
*** test - v1.0 (bug tester) [3RD]

Yes, it is, and more rehashes produce more instances of the same module loaded at the same time. What do you think the correct solution is?
TagsNo tags attached.
Attached Files
m_test.c (854 bytes)
3rd party modules

Activities

codemastr

2003-12-14 01:35

reporter   ~0004341

Seems like it's not removing the instance to the module when Mod_Init returns an error. I'll look into it.

codemastr

2003-12-23 22:29

reporter   ~0004418

Fixed in .2018

Issue History

Date Modified Username Field Change
2003-12-12 18:49 AngryWolf New Issue
2003-12-12 18:49 AngryWolf File Added: m_test.c
2003-12-14 01:35 codemastr Note Added: 0004341
2003-12-23 22:29 codemastr Status new => resolved
2003-12-23 22:29 codemastr Resolution open => fixed
2003-12-23 22:29 codemastr Assigned To => codemastr
2003-12-23 22:29 codemastr Note Added: 0004418