[swift-users] Segfault when joining MUC

Kevin Smith kevin at kismith.co.uk
Mon Aug 29 22:13:02 CEST 2011


On Mon, Aug 29, 2011 at 8:23 PM, Mazhe <vmazhe at gmail.com> wrote:
> Hello everybody,
>
> I noticed recently an annoying bug: switch segfaults when I try to
> join my favorite MUC root (hosted on a ejabberd server). I'm using the
> latest git version, my OS is FreeBSD 8.2 and Qt version is 4.7.4.
>
> Below is the (voluminous) gdb backtrace generated :
> ------------------------------------------------
> (gdb) run
> Starting program: /home/mazhe/devel/swift/Swift/QtUI/swift
> libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000008022a5bab in std::string::append () from /usr/lib/libstdc++.so.6
> (gdb) bt
> #0  0x00000008022a5bab in std::string::append () from /usr/lib/libstdc++.so.6
> #1  0x0000000000485f4f in std::operator+<char, std::char_traits<char>,
> std::allocator<char> > (__lhs=@0x7fffffffb1e0, __rhs=@0x0) at
> basic_string.h:2075
> #2  0x0000000000596d9f in Swift::ChatsManager::saveRecents (this=0x8090e9700)
>    at Swift/Controllers/Chat/ChatsManager.cpp:111
>...
> If you need more information, do not hesitate,

Thanks.

I don't easily see what this could be other than junk input, could you
grab the values of

recent
chat.jid
activity[0]
chat.isMUC
chat.nick

in frame 2, please?

Those are the things getting catted together, so one being junk is
pretty much the only thing that springs to mind as a likely problem.

/K


More information about the swift-users mailing list