Hi Naveen,

By some kind of miracle, GDB no longer runs the program properly and actually gives a backtrace for the Segfault. Please find it attached; it looks like something to do with AsioClient.cpp.

I'll be happy to test the latest revision of your code, once I can log in without Mira Client crashing on me! :)

Regards,

Max Bossino
Project Manager
http://miragroupware.org
m...@mvm:~/Documents/Code/hcbuild/mira-client/bin$ gdb ./mira_client 
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from 
/home/max/Documents/Code/hcbuild/mira-client/bin/mira_client...done.
(gdb) run
Starting program: /home/max/Documents/Code/hcbuild/mira-client/bin/mira_client 
[Thread debugging using libthread_db enabled]
FilesUtility Loaded
[New Thread 0xb7c67b70 (LWP 2664)]
127.0.0.1
adding to buffer...
bytes_transferred: 20
IN: E L Bad Credentials
[New Thread 0xb7466b70 (LWP 2665)]
127.0.0.1
adding to buffer...
bytes_transferred: 3
IN: LS
adding to buffer...
[OUT]: LW
bytes_transferred: 4

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c67b70 (LWP 2664)]
0x01154725 in std::basic_ostream<char, std::char_traits<char> >& 
std::operator<< <char, std::char_traits<char>, std::allocator<char> 
>(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&) () from 
/usr/lib/libstdc++.so.6
(gdb) backtrace
#0  0x01154725 in std::basic_ostream<char, std::char_traits<char> >& 
std::operator<< <char, std::char_traits<char>, std::allocator<char> 
>(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&) () from 
/usr/lib/libstdc++.so.6
#1  0x081251f5 in miraclient::network::asio::AsioClient::receive (
    this=0x84ae950)
    at 
/home/max/Documents/Code/hcbuild/mira-client/src/network/asio/AsioClient.cpp:209
#2  0x0812434d in miraclient::network::asio::AsioClient::connect (
    this=0x84ae950, hostname=..., port=7351, username=..., password=...)
    at 
/home/max/Documents/Code/hcbuild/mira-client/src/network/asio/AsioClient.cpp:113
#3  0x08102aa3 in boost::_mfi::mf4<void, miraclient::network::asio::AsioClient, 
std::string const&, unsigned int, std::string const&, std::string 
const&>::operator() (this=0x8402b60, p=0x84ae950, a1=..., a2=7351, a3=..., 
a4=...)
    at /usr/local/include/boost/bind/mem_fn_template.hpp:506
#4  0x08102912 in 
boost::_bi::list5<boost::_bi::value<miraclient::network::asio::AsioClient*>, 
boost::_bi::value<std::string>, boost::_bi::value<unsigned int>, 
boost::_bi::value<std::string>, boost::_bi::value<std::string> 
>::operator()<boost::_mfi::mf4<void, miraclient::network::asio::AsioClient, 
std::string const&, unsigned int, std::string const&, std::string const&>, 
boost::_bi::list0> (
    this=0x8402b68, f=..., a=...) at /usr/local/include/boost/bind/bind.hpp:525
#5  0x081027ee in boost::_bi::bind_t<void, boost::_mfi::mf4<void, 
miraclient::network::asio::AsioClient, std::string const&, unsigned int, 
std::string const&, std::string const&>, 
boost::_bi::list5<boost::_bi::value<miraclient::network::asio::AsioClient*>, 
boost::_bi::value<std::string>, boost::_bi::value<unsigned int>, 
boost::_bi::value<std::string>, boost::_bi::value<std::string> > >::operator() 
(this=0x8402b60) at /usr/local/include/boost/bind/bind_template.hpp:20
#6  0x08101aec in boost::detail::thread_data<boost::_bi::bind_t<void, 
boost::_mfi::mf4<void, miraclient::network::asio::AsioClient, std::string 
const&, unsigned int, std::string const&, std::string const&>, 
boost::_bi::list5<boost::_bi::value<miraclient::network::asio::AsioClient*>, 
boost::_bi::value<std::string>, boost::_bi::value<unsigned int>, 
boost::_bi::value<std::string>, boost::_bi::value<std::string> > > >::run 
(this=0x8402a90)
    at /usr/local/include/boost/thread/detail/thread.hpp:56
#7  0x01080015 in thread_proxy () from /usr/local/lib/libboost_thread.so.1.42.0
#8  0x0105f80e in start_thread (arg=0xb7c67b70) at pthread_create.c:300
#9  0x012cda0e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

On 22 Jun 2010, at 04:08, naveen akarapu wrote:

Hi all

Posted a new revision:

http://bazaar.launchpad.net/~naveen-akarapu/mira/highlight-contacts/revision/221

I have removed the Active status tree from Contacts widget.


Regards
Naveen
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
Mira-development mailing list
Mira-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mira-development

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mira-development mailing list
Mira-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mira-development

Reply via email to