Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: what mean "existing msg" ?  (Read 6670 times)

0 Members and 1 Guest are viewing this topic.

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 242
    • French Eggdrop community
what mean "existing msg" ?
« on: December 14, 2011, 10:33:54 AM »

Hello there,

I'm working on a module and when I try loading it, the services crashes. When launching with the -debug option, I get the following log:
Code: [Select]
[Dec 14 11:19:17.973692 2011] debug: existing msg: (0x0xa21f1f0), new msg (0x0xa28e150)
[Dec 14 11:19:17.973716 2011] Displaying message list for bot_command
[Dec 14 11:19:17.973738 2011] 1: 0x0xa28e150
[Dec 14 11:19:17.973757 2011] 2: 0x0xa21f1f0
[Dec 14 11:19:17.973776 2011] 3: 0x0xa21dc98
[Dec 14 11:19:17.973795 2011] 4: 0x0xa21c740
[Dec 14 11:19:17.973814 2011] 5: 0x0xa21b1e8
[Dec 14 11:19:17.973833 2011] 6: 0x0xa219c80
[Dec 14 11:19:17.973851 2011] end
[Dec 14 11:19:17.973872 2011] Displaying message list for bot_command_no_access
[Dec 14 11:19:17.973891 2011] 1: 0x0xa28e188
[Dec 14 11:19:17.973909 2011] end
[Dec 14 11:19:17.973930 2011] debug: existing msg: (0x0xa281240), new msg (0x0xa28e200)
[Dec 14 11:19:17.973949 2011] Displaying message list for reload
[Dec 14 11:19:17.973968 2011] 1: 0x0xa28e200
[Dec 14 11:19:17.973987 2011] 2: 0x0xa281240
[Dec 14 11:19:17.974005 2011] 3: 0x0xa27c2e0
[Dec 14 11:19:17.974024 2011] 4: 0x0xa237838
[Dec 14 11:19:17.974043 2011] 5: 0x0xa234c78
[Dec 14 11:19:17.974061 2011] end
[Dec 14 11:19:18.005937 2011] debug: Emitting event "signal" (1 args)
No error, my module is in ModuleDelayedAutoload, but services are stopped.
How can I find the error, or just understand it ?

Thanks by advance.

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: what mean "existing msg" ?
« Reply #1 on: December 14, 2011, 10:43:55 AM »

most likely not showing anything relevant to the module, at the very least not relevant to the crash.. much more useful would be running anope in gdb to debug the crash :)

that s just a useless printout of pointers to the messages hooked to by modules or events..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 242
    • French Eggdrop community
Re: what mean "existing msg" ?
« Reply #2 on: December 14, 2011, 03:20:33 PM »

Thanks.

Here is what I think it's in fault:
Code: [Select]
(gdb) *** glibc detected *** /home/irc/services/services: munmap_chunk(): invalid pointer: 0xb7a832be ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(+0x6b281)[0xb7ce6281]
/lib/i686/cmov/libc.so.6(+0x6c4fe)[0xb7ce74fe]
/home/irc/services/modules/runtime/bs_quotes.so.mxILZJ(load_config+0x246)[0xb7a82e36]
/home/irc/services/modules/runtime/bs_quotes.so.mxILZJ(AnopeInit+0xb3)[0xb7a82fe3]
But I don't understand the meaning :)

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: what mean "existing msg" ?
« Reply #3 on: December 14, 2011, 03:27:52 PM »

get a full backtrace..

Quote
#anope± gdb#:
(1) From the directory that you would do ./services from, do the following instead: gdb ./services
(2) Do: r -support
(3) Upon crash, do: bt full
(4) Pastebin everything from step 1 to step 3. (Alternatively, if that output is too long, just pastebin everything from when Anope crashed to the end of the output of bt full.)

Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 242
    • French Eggdrop community
Re: what mean "existing msg" ?
« Reply #4 on: December 14, 2011, 03:53:14 PM »

Thanks again for your help.

But... When launching with the -support option, my module seems to not be loaded, so no crash.

I guess my mistake is really stupid, I've just a few lines changed between a working version and the faulty one, so I'll succeed in isolate the mistake.

Naram Qashat

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 192
    • CBX's Sprite Animations
Re: what mean "existing msg" ?
« Reply #5 on: December 14, 2011, 03:56:09 PM »

You can manually load the module still, it just won't be loaded on startup.
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 242
    • French Eggdrop community
Re: what mean "existing msg" ?
« Reply #6 on: December 14, 2011, 04:28:05 PM »

Yes I know, I just think about it after having post my message :)

btw, it was a really stupid error I did wich crashed all my SQL queries, especialy the first one (create table).

Thanks for your help !
Pages: [1]   Go Up