Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB unable to trace xchat on linux
@ 2013-04-16 14:55 mancha1
  2013-04-16 22:08 ` Sergio Durigan Junior
  0 siblings, 1 reply; 3+ messages in thread
From: mancha1 @ 2013-04-16 14:55 UTC (permalink / raw)
  To: gdb

Hello.

I am using GDB 7.5.1 and trying to trace xchat 2.8.8 compiled with
-ggdb and default configure options (see below).

To reproduce:

$ gdb /path/to/xchat
(gdb) r

xchat starts but hangs at "Looking up <insert server used here>".

xchat's faq (http://xchat.org/gdb/) suggests GDB has trouble debugging 
when a server hostname is used. As they suggest, I ran a local ircd and 
used 127.0.0.1. The problem remains.

Any linux GDB gurus out there that can offer some guidance on what the
problem is?

--mancha

PS. When in this hung state, ^C followed by "thread apply all bt" gives
the following stack. Also after SIGINT and quit from GDB in this state,
xchat's window stays open and the process is unkillable. ps x shows it
in state "t".

#0  0xb7fde424 in __kernel_vsyscall ()
#1  0xb7eed8bb in poll () from /lib/libc.so.6
#2  0xb6e481e6 in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0xb6e3a3ad in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#4  0xb6e3aaef in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#5  0xb7b29fcb in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x08060da2 in fe_main () at fe-gtk.c:290
#7  0x080b4904 in main (argc=1, argv=0xbfffef14) at xchat.c:920

PPS. Default configuration on this system:

xchat 2.8.8

Building GTK+ Interface .... : yes
Building TEXT Interface .... : no

PLUGINS: Perl: yes Python: yes TCL: yes

mmx tinting ......... : yes     spelling .............. : libsexy
XShm tinting ........ : no      plugin interface ...... : yes
text backend ........ : pango   nls/gettext ........... : yes
openssl support ..... : yes     ipv6 support .......... : no
dbus support ........ : yes     msproxy ntlm (ISA) .... : no


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: GDB unable to trace xchat on linux
@ 2013-04-16 23:10 mancha1
  0 siblings, 0 replies; 3+ messages in thread
From: mancha1 @ 2013-04-16 23:10 UTC (permalink / raw)
  To: sergiodj; +Cc: gdb

On Tue, 16 Apr 2013 18:08:34 -0400 "Sergio Durigan Junior" 
<sergiodj@redhat.com> wrote:
>On Tuesday, April 16 2013, mancha1@hush.com wrote:
>
>> To reproduce:
>>
>> $ gdb /path/to/xchat
>> (gdb) r
>>
>> xchat starts but hangs at "Looking up <insert server used 
>here>".
>
>What do you mean by "hangs"?  Is it unresponsible?  Can you still 
>issue
>commands on it?  Is it just waiting for the server to respond?
>

By "hangs" I mean it doesn't progress beyond "Looking up...". I am
still able to navigate the menus and open pop-ups say via "About"
menus, etc. while in this state. However, it becomes totally
unresponsive if I Server->Disconnect or XChat->Quit.

>> xchat's faq (http://xchat.org/gdb/) suggests GDB has trouble 
>debugging 
>> when a server hostname is used. As they suggest, I ran a local 
>ircd and 
>> used 127.0.0.1. The problem remains.
>
>The page doesn't suggest that.  It only suggests that you use the
>server's IP address directly.  Anyway, have you tried that?  You 
>could
>try freenode's IP address (84.240.3.129) and see if it works.
>

I understood the FAQ. I ran an ircd locally to speed up my
debugging. No numeric IP works (freenode or otherwise).

To make this crystal clear: no connection progresses beyond the 
"looking up..." message: not hostname not IP, not local, not
remote, nor any permutations thereof.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-16 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-16 14:55 GDB unable to trace xchat on linux mancha1
2013-04-16 22:08 ` Sergio Durigan Junior
2013-04-16 23:10 mancha1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox