Hi Naveen, On 23 Jun 2010, at 17:19, naveen akarapu wrote: Max Hmm... Is there any way I can edit the "WL \n" so that I can test if that is what's causing the Segfault? It's odd that the message that fails includes a space, and the one that works doesn't. Please find attached the AsioClient.cpp file that I'm using (with my amendments), and the output of GDB when using the breakpoint you specified (which I don't think you will find very useful, but I thought I'd attach it anyway!). I also don't understand why the change to line 48 which you proposed does not fix the Segfault? |
AsioClient.cpp
Description: Binary data
$ 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) b AsioClient.cpp:176 Breakpoint 1 at 0x8125099: file /home/max/Documents/Code/hcbuild/mira-client/src/network/asio/AsioClient.cpp, line 176. (gdb) p current No symbol "current" in current context. (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 3450)] 127.0.0.1 adding to buffer... [Switching to Thread 0xb7c67b70 (LWP 3450)]
Breakpoint 1, miraclient::network::asio::AsioClient::receive (this=0x84ae1d8) at /home/max/Documents/Code/hcbuild/mira-client/src/network/asio/AsioClient.cpp:177 177 boost::system::error_code l_error; (gdb) quit
------------------------------------------------------------------------------ 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