Ticket #1674 (closed defect: fixed)

Opened 14 months ago

Last modified 8 months ago

Licq SVN Version Crashes (segfault) on message sent (qt4-gui)

Reported by: syn Owned by:
Priority: normal Milestone: 1.3.7
Component: Plugin: Qt4/Kde4-GUI Version: devel
Keywords: Cc: syn@…

Description (last modified by flynd) (diff)

Hi i updated my SVN version of LICQ yesterday, and i compiled the first time the qt4-gui. Unfortunately on every message send, independant of the Protocol used it crashes.

See gdb below.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x43085950 (LWP 7226)]
0x00007fdb74853bd5 in ?? () from /lib/libc.so.6
(gdb) bt
#0  0x00007fdb74853bd5 in ?? () from /lib/libc.so.6
#1  0x00007fdb74855a78 in malloc () from /lib/libc.so.6
#2  0x00007fdb75091b9d in operator new () from /usr/lib/libstdc++.so.6
#3  0x00007fdb7506f451 in std::string::_Rep::_S_create () from /usr/lib/libstdc++.so.6
#4  0x00007fdb7506fe15 in ?? () from /usr/lib/libstdc++.so.6
#5  0x00007fdb7506ff53 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string ()
   from /usr/lib/libstdc++.so.6
#6  0x00007fdb73d08b2d in qHash () from /usr/local/lib/licq/licq_qt4-gui.so
#7  0x00007fdb73d08b36 in qHash () from /usr/local/lib/licq/licq_qt4-gui.so
#8  0x00007fdb73d08b36 in qHash () from /usr/local/lib/licq/licq_qt4-gui.so
#9  0x00007fdb73d08b36 in qHash () from /usr/local/lib/licq/licq_qt4-gui.so
#10 0x00007fdb73d08b36 in qHash () from /usr/local/lib/licq/licq_qt4-gui.so

licq -d 16 output:

13:30:51: [PKT] Packet (SRVv0, 66 bytes) sent:
                (192.168.168.31:37289 -> 64.12.24.170:443)
     0000: 2A 02 5C 66 00 3C 00 04  00 06 00 00 00 00 00 25   *.\f.<.........%
     0010: 00 00 00 00 00 00 00 00  00 01 08 39 32 32 34 34   ...........xxxxx
     0020: 37 33 38 00 02 00 1B 05  01 00 01 01 01 01 00 12   xxx.............
     0030: 00 00 00 00 6D 69 73 74  20 69 6D 6D 65 72 6E 6F   ....mist immerno
     0040: 63 68                                              ch
Segmentation fault

(i X ed out the recipient)

Anyone can confirm, and or fix? :-)

Thanks, Syn

Attachments

2009-06-30_licq_segfault_on_message_qt4gui.tar.bz2 (180.2 kB) - added by syn 14 months ago.
Stacktrace complete
Ticket1674_mmuserview_sort.patch (0.7 kB) - added by flynd 14 months ago.
Patch for init order of mmuserview that might help
2009-07-02_licq_segfault_on_message_qt4gui.tar.bz2 (179.3 kB) - added by syn 14 months ago.

Change History

Changed 14 months ago by syn

  • cc syn@… added
  • component changed from None to qt4-gui
  • summary changed from Licq SVN Version Crash on message sent (qt4-gui) to Licq SVN Version Crashes (segfault) on message sent (qt4-gui)

Changed 14 months ago by flynd

  • description modified (diff)

It looks like the stack trace isn't complete, could you please attach a complete backtrace, preferably of all threads. (When licq crashes, you should get ~/.licq/licq.backtrace.gdb which contains just that.)

Changed 14 months ago by syn

Stacktrace complete

Changed 14 months ago by syn

Stacktrace added, though licq didn't generated it by itselv. Another strange thing is the 500.000 lines generated in the backtrace, that's why i tar'ed it. Good luck! (i deleted the unimportant packet information for privacy reasons)

Changed 14 months ago by flynd

Patch for init order of mmuserview that might help

Changed 14 months ago by flynd

I wasn't able to reproduce this, but after looking at the stack trace I made a guess of what might cause the prablem. Could you please try the patch I've just attached and let me know if it solves the problem.

Changed 14 months ago by syn

Unfortunately the patch did not solve the problem. But thanks for looking into this.

Scanning dependencies of target views [ 96%] Building CXX object src/views/CMakeFiles/views.dir/mmuserview.o

new Backtrace attached.

Changed 14 months ago by flynd

I still don't know why it's happening. But the change in r6707 should make sure the problem doesn't appear when sending a message. Please update to latest svn and try again.

However, I suspect that this crash can still appear if toggling the multiple recipients function in the message dialog. Could you please test this for me as well.

Also, I would like to know which Qt version you are using.

Changed 14 months ago by syn

  • status changed from new to closed
  • resolution set to fixed

Fetching external item into 'plugins/qt4-gui' U plugins/qt4-gui/src/userevents/usersendcommon.cpp Updated external to revision 6707.

Scanning dependencies of target userevents [ 87%] Building CXX object src/userevents/CMakeFiles/userevents.dir/usersendcommon.o Linking CXX static library libuserevents.a [ 96%] Built target userevents [100%] Built target views Linking CXX shared module licq_qt4-gui.so

QT Version 4.4.3 (Debian Lenny)

and you are right, that did the trick! it's not crashing anymore, hilarious!

thank you very very much, i really like the qt4 gui

Cheers, syn

this can be seen as solved i guess

Note: See TracTickets for help on using tickets.