Anope Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001072Anope Stable (1.8.x series)Otherpublic2009-03-27 00:182010-09-12 09:56
Reporterphate408 
Assigned Toqa@anope.org 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOtherOSLinuxOS Version
Product Version1.8.0 
Target VersionFixed in Version 
Summary0001072: Panic! crash on /ns recover from grouped nick.
DescriptionWe just recently updated from 1.7.21 to 1.8.0, and a few days ago a user tried to recover her nick, instead of ghosting apparently. Both nicks were identified, and shared the same group. The display group nick (Angie) was recovered by bluangie with the command: /ns recover Angie

I copied our .db's to our test network, running the same version of everything, same modules. And I could duplicate it with both her group and my own. I didn't try any additional groups.

I tried it again with it running both -debug -nofork and -support

Output from -support:

[Mar 26 20:03:39.764712 2009] debug: Received: :Jason PRIVMSG nickserv@services.irc.net :recover jmoss42
[Mar 26 20:03:39.764871 2009] debug: Sent: :NickServ NOTICE jmoss42 :This nickname has been registered; you may not use it.
[Mar 26 20:03:39.764909 2009] debug: Sent: :NickServ NOTICE jmoss42 :Your nickname is now being changed to Noob17975
[Mar 26 20:03:39.764938 2009] debug: Sent: SVSNICK jmoss42 Noob17975 :1238123019
[Mar 26 20:03:39.764974 2009] PANIC! buffer = :Jason PRIVMSG nickserv@services.irc.net :recover jmoss42
[Mar 26 20:03:39.765022 2009] debug: Sent: :services.irc.net GLOBOPS :PANIC! buffer = :Jason PRIVMSG nickserv@services.irc.net :recover jmoss42

Segmentation fault

I then ran it in gdb with -support, I was asked to re-compile changing the CFLAGS to remove -O2, which I did, and this is the GDB output:

[Mar 26 19:37:47.447801 2009] debug: Received: :jmoss42 PRIVMSG nickserv@service s.seersirc.net :recover Jason
[Mar 26 19:37:47.447967 2009] debug: Sent: :NickServ NOTICE Jason :This nickname has been registered; you may not use it.
[Mar 26 19:37:47.448007 2009] debug: Sent: :NickServ NOTICE Jason :Your nickname is now being changed to Noob34276
[Mar 26 19:37:47.448037 2009] debug: Sent: SVSNICK Jason Noob34276 :1238121467

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47790946132288 (LWP 727)]
0x00002b7731f345a0 in strlen () from /lib/libc.so.6
(gdb) bt full
#0 0x00002b7731f345a0 in strlen () from /lib/libc.so.6
No symbol table info available.
0000001 0x00002b7731f06560 in vfprintf () from /lib/libc.so.6
No symbol table info available.
0000002 0x00002b7731f266fa in vsnprintf () from /lib/libc.so.6
No symbol table info available.
0000003 0x000000000044ebee in notice_lang (source=0x5c9210 "NickServ",
    dest=0x99ca90, message=286) at send.c:186
        args = {{gp_offset = 48, fp_offset = 48,
    overflow_arg_area = 0x7fff79219500, reg_save_area = 0x7fff79219440}}
        buf = "User claiming your nick has been killed.\n\002/msg NickServ RELEA SE Jason\002 to get it back before ", '\0' <repeats 4002 times>
        s = 0x2b7731fd0960 "0123456789abcdefghijklmnopqrstuvwxyz"
        t = 0x7fff79218410 "User claiming your nick has been killed.\n\002/msg N ickServ RELEASE Jason\002 to get it back before "
        fmt = 0x63c650 "User claiming your nick has been killed.\n\002/msg %s RE LEASE %s\002 to get it back before %s timeout."
0000004 0x00002b7733014525 in do_recover (u=0x99ca90) at ns_recover.c:129
        nick = 0x7fff792197d0 "Jason"
        pass = 0x0
        na = (NickAlias *) 0xa9a080
        u2 = (User *) 0x99cc80
0000005 0x0000000000426d6f in do_run_cmd (service=0x5c9210 "NickServ", u=0x99ca90,
    c=0x876dd0, cmd=0x7fff792197c8 "recover") at commands.c:101
        retVal = 0
        current = (Command *) 0x84b750
0000006 0x0000000000426c90 in mod_run_cmd (service=0x5c9210 "NickServ",
    u=0x99ca90, cmdTable=0x5b34a0, cmd=0x7fff792197c8 "recover")
    at commands.c:72
        c = (Command *) 0x876dd0
0000007 0x0000000000443410 in nickserv (u=0x99ca90, buf=0x7fff792197c8 "recover")
    at nickserv.c:261
        cmd = 0x7fff792197c8 "recover"
        s = 0x2b7731f4582d "H\203Ä\bÃ", '\220' <repeats 14 times>, "H\203ì\bHÇÀ"
0000008 0x00000000004380aa in m_privmsg (source=0x7fff792199e0 "jmoss42",
    receiver=0x7fff792197a8 "nickserv", msg=0x7fff792197c8 "recover")
    at messages.c:185
        s = 0x7fff792197b1 "services.seersirc.net"
        starttime = 1238121467
        stoptime = 6086576
        bi = (BotInfo *) 0x7fff792199a0
        ci = (ChannelInfo *) 0x5ad4a0
        u = (User *) 0x99ca90
0000009 0x00002b77325eccf4 in anope_event_privmsg (
    source=0x7fff792199e0 "jmoss42", ac=2, av=0x99bc60) at unreal32.c:1517
No locals.
0000010 0x000000000044e42c in process () at process.c:417
        retVal = 0
        current = (Message *) 0x0
        source = "jmoss42\000\000\230\\\000\000\000\000\000\005", '\0' <repeats 15 times>, "P\232!y\n\000\000\000`\217Z\000\000\000\000\000P\232!yÿ\177\000\000\033NE\000\000\000\000"
        cmd = "PRIVMSG\000\000\000^2w+\000\000À\231!yÿ\177\000\000\235Ô^2w+\000\000Ð\231!yÿ\177\000\000F C\000\000\000\000\000P\232!yÿ\177\000\000[\001C\000\000\000\000"
        buf = "PRIVMSG\000nickserv\000services.seersirc.net\000:recover\000Jason\000er Jason\000\000 is same as current host.\000e as current host.\000\0003]\000.591 sent: 16.303]\000\000ms/viewtopic.php?t=ûEE\000\000\000\000\000P\230!yÿ\177\000\000\n\000\000\000\a", '\0' <repeats 147 times>, "oice. \0031@\000\000\000\000\000\000\nP"...
        s = 0x7fff792197a8 "nickserv"
        ac = 2
        av = (char **) 0x99bc60
        m = (Message *) 0x5cdfb0
0000011 0x000000000043662f in main (ac=2, av=0x7fff79219bd8, envp=0x7fff79219bf0)
    at main.c:658
        t = 1238121460
        last_update = 1238121447
        last_expire = 1238121447
        last_check = 1238121458
        last_DefCon = 1238121447
        i = 5934880
        progname = 0x7fff7921aba0 "services"

I can provide anything else that's needed.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005579)
chaz (administrator)
2010-09-12 09:56

Issues marked as resolved for a period of time without argument will be closed.

- Issue History
Date Modified Username Field Change
2009-03-27 00:39 CyberBotX Status UNCONFIRMED => RESOLVED
2009-03-27 00:39 CyberBotX CC => CyberBotX
2009-03-27 00:39 CyberBotX Resolution => FIXED
2010-09-12 09:56 chaz Note Added: 0005579
2010-09-12 09:56 chaz Status resolved => closed


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker