Opened 5 years ago

Closed 4 years ago

Last modified 3 years ago

#8 closed defect (fixed)

qutecom segfaults on Linux during login to a sip account

Reported by: gladiac Owned by: laurent
Priority: blocker Milestone: QuteCom 2.2-RC4
Component: GUI Version: 2.2-RC1
Keywords: Cc:

Description

After filling out the server popup after the first start it segfaults and segfaults at each start.

This is on openSUSE 11.0, Qt 4.4, Boost 1.34.1

Backtrace:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f35b0d37770 (LWP 1175)]
0x00007f35a862f5c5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f35a862f5c5 in raise () from /lib64/libc.so.6
#1  0x00007f35a8630bb3 in abort () from /lib64/libc.so.6
#2  0x00007f35a86281e9 in __assert_fail () from /lib64/libc.so.6
#3  0x00007f35af27b8ad in boost::spirit::utility::impl::range_run<char>::set () from /usr/lib64/libboost_serialization.so
#4  0x00007f35af27c08e in boost::spirit::utility::impl::construct_chset<char, char> () from /usr/lib64/libboost_serialization.so
#5  0x00007f35af279cd7 in boost::archive::basic_xml_grammar<char>::init_chset () from /usr/lib64/libboost_serialization.so
#6  0x00007f35af27fe46 in boost::archive::basic_xml_grammar<char>::basic_xml_grammar () from /usr/lib64/libboost_serialization.so
#7  0x00007f35af29481c in boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::xml_iarchive_impl () from /usr/lib64/libboost_serialization.so
#8  0x0000000000c72221 in xml_iarchive (this=0x7fffb8d88880, is=@0x7fffb8d88710, flags=0) at /usr/include/boost/archive/xml_iarchive.hpp:97
#9  0x0000000000c64cb8 in History::unserialize (this=0x7f359c0240f0, data=@0x7fffb8d88bb0)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/history/History.cpp:113
#10 0x0000000000c651b3 in History::load (this=0x7f359c0240f0, url=@0x7fffb8d88c00)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/history/History.cpp:159
#11 0x0000000000c35df5 in UserProfile::loadHistory (this=0x7fffb8d89170, path=@0x7fffb8d88dd0)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/profile/UserProfile.cpp:576
#12 0x0000000000c5c38c in UserProfileFileStorage::loadFromDir (this=0x7fffb8d89070, path=@0x7fffb8d88dd0)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/profile/UserProfileFileStorage.cpp:146
#13 0x0000000000c5d06b in UserProfileFileStorage::loadFromProfiles (this=0x7fffb8d89070, profileName=@0x7f359c00bd40)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/profile/UserProfileFileStorage.cpp:119
#14 0x0000000000c5d160 in UserProfileFileStorage::load (this=0x7fffb8d89070, profileName=@0x7f359c00bd40)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/profile/UserProfileFileStorage.cpp:80
#15 0x0000000000c4a97d in UserProfileHandler::LoadUserProfileFromName (this=0x1410ae0, userprofile=0x7fffb8d89170, name=@0x7f359c00bd40)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/model/profile/UserProfileHandler.cpp:103
#16 0x0000000000a4c68a in QtLogAccount::initPage (this=0x7f359c0a4e00)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/qt/login/QtLogAccount.cpp:118
#17 0x0000000000a49a4d in QtLoginDialog::changePage (this=0x7fffb8d89820, newPage=3, sipAccountName=
        {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7fffb8d897d0 "\030�\v�5\177"}}) at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/qt/login/QtLoginDialog.cpp:85
#18 0x0000000000a4a427 in QtLoginDialog (this=0x7fffb8d89820, qtWengoPhone=0x1411bc0, cUserProfileHandler=@0x7f359c0075a0)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/qt/login/QtLoginDialog.cpp:66
#19 0x0000000000a7e3ea in QtUserProfileHandler::showLoginWindow (this=0x7f359c02c1d0)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/qt/profile/QtUserProfileHandler.cpp:133
#20 0x0000000000a7e496 in QtUserProfileHandler::noCurrentUserProfileSetEventHandlerSlot (this=0x7f359c02c1d0)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/qt/profile/QtUserProfileHandler.cpp:100
#21 0x00000000009d0b65 in QtUserProfileHandler::qt_metacall (this=0x7f359c02c1d0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x14d6b70)
    at /home/anschneider/workspace/source/projects/qutecom-2.2/build/wengophone/src/presentation/qt/profile/moc_QtUserProfileHandler.cxx:113
#22 0x00007f35acd049ce in QObject::event () from /usr/lib64/libQtCore.so.4
#23 0x00007f35ac33a92d in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#24 0x00007f35ac340cfa in QApplication::notify () from /usr/lib64/libQtGui.so.4
#25 0x00007f35accf6e9c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#26 0x00007f35accf77cb in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/libQtCore.so.4
#27 0x00007f35acd1d590 in QEventDispatcherUNIX::processEvents () from /usr/lib64/libQtCore.so.4
#28 0x00007f35ac3bb34a in ?? () from /usr/lib64/libQtGui.so.4
#29 0x00007f35accf57f2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#30 0x00007f35accf5985 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#31 0x00007f35accf7a25 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#32 0x0000000000a16389 in QtFactory::exec (this=0x13ac160) at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/qt/QtFactory.cpp:114
#33 0x00000000009dc750 in main (argc=1, argv=0x7fffb8d8aa68) at /home/anschneider/workspace/source/projects/qutecom-2.2/wengophone/src/presentation/main.cpp:354

Change History (10)

comment:1 Changed 5 years ago by vadim

Try to remove ~/.qutecom directory

and see if it helps

comment:2 Changed 5 years ago by vadim

  • Owner changed from Laurent to laureny
  • Status changed from new to assigned

comment:3 Changed 5 years ago by vadim

  • Owner changed from laureny to laurent

comment:4 Changed 5 years ago by emgaron

I just installed the qutecom-2.2-0.pm.4 RPM that is available for OpenSuSE 11 (both RPM and OS 64bit). When running it from scratch (i.e. no ~/.qutecom directory present), I get asked for the account data and as soon as I press Connect, I get a very similar core dump to what the OP listed. I also tried copying my old ~/.wengophone to ~/.qutecom (hoping to be able to use the same account settings). In this case, qutecom would segfault right away. Both cases are 100% reproducible.

The backtrace (the same for both cases):

#0  0x00007fb1cf0aa5c5 in raise () from /lib64/libc.so.6
#1  0x00007fb1cf0abbb3 in abort () from /lib64/libc.so.6
#2  0x00007fb1cf0a31e9 in __assert_fail () from /lib64/libc.so.6
#3  0x00007fb1d4ddb8ad in boost::spirit::utility::impl::range_run<char>::set ()
   from /usr/lib64/libboost_serialization.so
#4  0x00007fb1d4ddc08e in boost::spirit::utility::impl::construct_chset<char, char> () from /usr/lib64/libboost_serialization.so
#5  0x00007fb1d4dd9cd7 in boost::archive::basic_xml_grammar<char>::init_chset
    () from /usr/lib64/libboost_serialization.so
#6  0x00007fb1d4ddfe46 in boost::archive::basic_xml_grammar<char>::basic_xml_grammar () from /usr/lib64/libboost_serialization.so
#7  0x00007fb1d4df481c in boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::xml_iarchive_impl () from /usr/lib64/libboost_serialization.so
#8  0x00000000007a18c5 in History::unserialize ()
#9  0x00000000007a0bb4 in History::load ()
#10 0x00000000007809a4 in UserProfile::loadHistory ()
#11 0x000000000079a397 in UserProfileFileStorage::loadFromDir ()
#12 0x000000000079a694 in UserProfileFileStorage::loadFromProfiles ()
#13 0x000000000079a803 in UserProfileFileStorage::load ()
#14 0x000000000078d9a3 in UserProfileHandler::getUserProfile ()
#15 0x000000000078e0b0 in UserProfileHandler::setCurrentUserProfile ()
#16 0x000000000078e753 in UserProfileHandler::init ()
#17 0x00000000006fbc13 in WengoPhone::init ()
#18 0x00000000006fbcab in WengoPhone::run ()
#19 0x00007fb1d569fc6a in Thread::runThread ()
   from /usr/lib64/wengophone/libwebcam.so
#20 0x00007fb1d49833f7 in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/lib64/libboost_thread-mt.so
#21 0x00007fb1d4982cf2 in ?? () from /usr/lib64/libboost_thread-mt.so
#22 0x00007fb1d16cf040 in start_thread () from /lib64/libpthread.so.0
#23 0x00007fb1cf14b0cd in clone () from /lib64/libc.so.6

On the command line, I see this output:

qutecom: ./boost/spirit/utility/impl/chset/range_run.ipp:123: void boost::spirit::utility::impl::range_run<CharT>::set(const boost::spirit::utility::impl::range<CharT>&) [with CharT = char]: Assertion `r.is_valid()' failed.

In addition, I've noticed that it does not matter what is written in the account dialogue - anything will do as long as there is enough in there to get the "Connect" button ungrayed.

Also, I've noticed a third variant: If I remove ~/.qutecom and start the program and then leave the "account" pop-up dialogue empty, the "Connect" button is ungreyed as well. If I hit "Connect" in this situation (i.e. with no data filled in), the program aborts (I get an "Aborted" on the command line), but does not produce a core dump.

My machine is an Athlon64 box, currently no video camera connected. If there's anything else you would like me to test, please let me know.

comment:5 in reply to: ↑ description Changed 5 years ago by ras

I can observe a slightly different beahviour: after network fault, when it tries to login again, I got a segfault on qutecom built on 16Sept08 for kubuntu 64bit.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x41175950 (LWP 27779)]
0x0000000000bcb3fc in PrivateThread::stop (this=0x3334373930363731)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/libs/owutil/thread/src/Timer.cpp:96

96 _stop = true;
(gdb) where
#0 0x0000000000bcb3fc in PrivateThread::stop (this=0x3334373930363731)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/libs/owutil/thread/src/Timer.cpp:96

#1 0x0000000000bcb422 in Timer::stop (this=0x15b64b8)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/libs/owutil/thread/src/Timer.cpp:158

#2 0x0000000000cbfb4c in SipAccount::connectionIsDownEventHandlerThreadSafe (

this=0x15b6360)
at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/wengophone/src/model/account/SipAccount.cpp:263

#3 0x0000000000cc48d6 in boost::_mfi::mf0<void, SipAccount?>::operator() (

this=0x7fdeac08fc70, p=0x15b6360)
at /usr/include/boost/bind/mem_fn_template.hpp:49

#4 0x0000000000cc4c01 in boost::_bi::list1<boost::_bi::value<SipAccount*> >::operator()<boost::_mfi::mf0<void, SipAccount>, boost::_bi::list0> (this=0x7fdeac08fc80,

f=@0x7fdeac08fc70, a=@0x41174d1f) at /usr/include/boost/bind.hpp:231

#5 0x0000000000cc4c3e in boost::_bi::bind_t<void, boost::_mfi::mf0<void, SipAccount?>, boost::_bi::list1<boost::_bi::value<SipAccount*> > >::operator() (

this=0x7fdeac08fc70) at /usr/include/boost/bind/bind_template.hpp:20

#6 0x0000000000cc4c5d in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, SipAccount>, boost::_bi::list1<boost::_bi::value<SipAccount*> > >, void>::invoke (function_obj_ptr=@0x7fdeac08fc70)

at /usr/include/boost/function/function_template.hpp:155

---Type <return> to continue, or q <return> to quit---
#7 0x0000000000a609e0 in boost::function0<void, std::allocator<void> >::operator()

(this=0x7fdeac08fc68) at /usr/include/boost/function/function_template.hpp:692

#8 0x0000000000b92f43 in ThreadEvent0<void ()()>::callback (this=0x7fdeac08fc60)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/libs/owutil/thread/ThreadEvent.h:67

#9 0x0000000000bcf79d in Thread::runEvents (this=0x14e0550)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/libs/owutil/thread/src/Thread.cpp:132

#10 0x0000000000c58cf4 in WengoPhone::run (this=0x14e0550)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/wengophone/src/model/WengoPhone.cpp:118

#11 0x0000000000bcf66a in Thread::runThread (this=0x14e0550)

at /home/ras/Desktop/kvats/qutecom/qutecom-2.2/libs/owutil/thread/src/Thread.cpp:70

#12 0x0000000000bd0d96 in boost::_mfi::mf0<void, Thread>::operator() (

this=0x41174fe8, p=0x14e0550) at /usr/include/boost/bind/mem_fn_template.hpp:49

#13 0x0000000000bd12e7 in boost::_bi::list1<boost::_bi::value<Thread*> >::operator()<boost::_mfi::mf0<void, Thread>, boost::_bi::list0> (this=0x41174ff8,

f=@0x41174fe8, a=@0x41174f4f) at /usr/include/boost/bind.hpp:231

#14 0x0000000000bd1324 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Thread>, boost::_bi::list1<boost::_bi::value<Thread*> > >::operator() (this=0x41174fe8)

at /usr/include/boost/bind/bind_template.hpp:20

#15 0x0000000000bd1343 in boost::detail::function::void_function_obj_invoker0<boost:---Type <return> to continue, or q <return> to quit---
:_bi::bind_t<void, boost::_mfi::mf0<void, Thread>, boost::_bi::list1<boost::_bi::value<Thread*> > >, void>::invoke (function_obj_ptr=@0x41174fe8)

at /usr/include/boost/function/function_template.hpp:155

#16 0x00007fdec6262537 in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/lib/libboost_thread-gcc42-mt-1_34_1.so.1.34.1
#17 0x00007fdec62621a2 in ?? ()

from /usr/lib/libboost_thread-gcc42-mt-1_34_1.so.1.34.1

#18 0x00007fdec21943f7 in start_thread () from /lib/libpthread.so.0
#19 0x00007fdec0748b2d in clone () from /lib/libc.so.6
#20 0x0000000000000000 in ?? ()
(gdb)

comment:6 Changed 4 years ago by cervajs

  • Milestone set to QuteCom 2.2-RC4

comment:7 Changed 4 years ago by vadim

I wonder if this bug is till relevant

comment:8 Changed 4 years ago by vadim

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:9 Changed 3 years ago by spincalis3

  • field_os set to all

Thanks for your job, it is fixed.

tinnitus cure

comment:10 Changed 3 years ago by Fossey432

I enjoy what you guys are always up too. Such clever work and reporting!
mortgage calculator with taxes

Note: See TracTickets for help on using tickets.