Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: free(); causes PANIC buffer error.  (Read 2918 times)

0 Members and 1 Guest are viewing this topic.

James

  • Anope User
  • Offline Offline
  • Posts: 9
free(); causes PANIC buffer error.
« 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.
Logged

VisioN

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • myIRC Project Hosting IRC Network
Re: free(); causes PANIC buffer error.
« Reply #1 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.
Logged
______________________________
VisioN
Find me: irc.myirc.net | irc.anope.org
Contact me: vision@myirc.net

James

  • Anope User
  • Offline Offline
  • Posts: 9
Re: free(); causes PANIC buffer error.
« Reply #2 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.
« Last Edit: November 01, 2012, 02:56:40 AM by James »
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 121
Re: free(); causes PANIC buffer error.
« Reply #3 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?
Logged

James

  • Anope User
  • Offline Offline
  • Posts: 9
Re: free(); causes PANIC buffer error.
« Reply #4 on: November 02, 2012, 01:05:59 AM »

Mine is based heavily off of this one

I also tried compiling this one and still go the same error.

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.
« Last Edit: November 08, 2012, 03:31:56 AM by James »
Logged
Pages: [1]   Go Up