Anope IRC Services

Anope Development => Modules => Topic started by: James on November 01, 2012, 02:12:08 AM

Title: free(); causes PANIC buffer error.
Post by: James on November 01, 2012, 02:12:08 AM
At first I thought it was my programming, but it seems to happen even when I compile other people's modules. When I try to utilize a function that uses free(); at the end, it would cause the PANIC buffer error. I get the same error whether I compile on my xp + VC2005 or server 2008 + VC2010.
Title: Re: free(); causes PANIC buffer error.
Post by: VisioN on November 01, 2012, 02:30:23 AM
maybe using free(); doesnt cause the buffer problem, but allocating memory does (all modules you tried installing would have allocated memory before freeing it). Which would suggest that your system can not allocate memory for some reason.
Title: Re: free(); causes PANIC buffer error.
Post by: James on November 01, 2012, 02:43:54 AM
I tried running anope as administrator but that did not help. Perhaps Windows Server 2008 has some other feature/annoyance I am not aware of.

edit: Also I should note that the goal of the action always completes (so my module for example has the services message a channel, which they do when I execute the command.) However when the time comes to free();, it crashes.
Title: Re: free(); causes PANIC buffer error.
Post by: Jens Voss on November 01, 2012, 08:39:21 AM
Can you show us the module Code so we can see if its your code or not?
Title: Re: free(); causes PANIC buffer error.
Post by: James on November 02, 2012, 01:05:59 AM
Mine is based heavily off of this one (http://modules.anope.org/index.php?page=browser&id=236&release=1.0&name=os_say_act.c&v=43)

I also tried compiling this one and still go the same error. (http://modules.anope.org/index.php?page=browser&id=247&release=1.1&name=os_redirect.c&v=32)

I tried others too.

Edit: I think I fixed it by loading the modules to an anope installation which I compiled instead of the precompiled one I downloaded from the site.