From: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
To: linux-kernel@vger.kernel.org
Subject: Re: BIND hangs with 2.6.14
Date: Sun, 30 Oct 2005 22:40:52 +0100 [thread overview]
Message-ID: <20051030214052.GA1454@uio.no> (raw)
In-Reply-To: <20051030190538.GA25940@uio.no>
On Sun, Oct 30, 2005 at 08:05:38PM +0100, Steinar H. Gunderson wrote:
> I have a run going in valgrind now to see if it can find anything bad about
> the pointers in the msg_hdr structure (the structure itself appears to be OK,
> judging from my printf-debugging); it's been going for a few hours, so I hope
> it will be entering its zombie mode now soon :-)
I finally caught it with gdb, after inserting some debug probes. Excerpts
(removed a few syntax errors):
(gdb) bt
#0 0xffffe405 in __kernel_vsyscall ()
#1 0x55840885 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0x55842002 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x557e1383 in doio_recv (sock=0x80d1230, dev=0x8197ac8) at socket.c:917
#4 0x557e41d5 in internal_recv (me=0x81975a0, ev=0x80d1284) at socket.c:2012
#5 0x557d6259 in dispatch (manager=0x8094960) at task.c:855
#6 0x557d64c7 in run (uap=0x8094960) at task.c:998
#7 0x5580cca3 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8 0x558eff5a in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) up
#1 0x55840885 in raise () from /lib/tls/i686/cmov/libc.so.6
(gdb)
#2 0x55842002 in abort () from /lib/tls/i686/cmov/libc.so.6
(gdb)
#3 0x557e1383 in doio_recv (sock=0x80d1230, dev=0x8197ac8) at socket.c:917
917 abort();
(gdb) print msghdr
$1 = {msg_name = 0x8197b14, msg_namelen = 28, msg_iov = 0x561519e0, msg_iovlen = 1, msg_control = 0x809a810, msg_controllen = 52, msg_flags = 0}
(gdb) print msghdr.msg_name
$2 = (void *) 0x8197b14
(gdb) print (char *)msghdr.msg_name
$3 = 0x8197b14 ""
(gdb) print ((char *)msghdr.msg_name)[0]
$4 = 0 '\0'
(gdb) print ((char *)msghdr.msg_name)[27]
$5 = 0 '\0'
(gdb) print ((char *)msghdr.msg_control)[0]
$6 = 20 '\024'
(gdb) print ((char *)msghdr.msg_control)[51]
$7 = -66 '¾'
(gdb) print *(msghdr.msg_iov)
$9 = {iov_base = 0x8171208, iov_len = 4096}
(gdb) print ((char*)msghdr.msg_iov.iov_base)[0]
$10 = -30 'â'
(gdb) print ((char*)msghdr.msg_iov.iov_base)[4095]
$11 = -66 '¾'
(gdb) print sock->fd
$12 = 22
(gdb) print recvmsg(sock->fd, &msghdr, 0)
$14 = 42
IOW, the call that just failed suddenly worked in the debugger. I can't
really believe this is a BIND bug anymore... I'm lost here. Anyone?
/* Steinar */
--
Homepage: http://www.sesse.net/
next prev parent reply other threads:[~2005-10-30 21:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-30 2:35 BIND hangs with 2.6.14 Steinar H. Gunderson
2005-10-30 10:11 ` bert hubert
2005-10-30 10:45 ` Steinar H. Gunderson
[not found] ` <20051030110021.GA19680@outpost.ds9a.nl>
2005-10-30 11:36 ` Steinar H. Gunderson
2005-10-30 11:45 ` bert hubert
2005-10-30 11:54 ` Steinar H. Gunderson
2005-10-31 7:20 ` Lionel Elie Mamane
2005-10-31 10:28 ` Steinar H. Gunderson
2005-10-30 14:22 ` Steinar H. Gunderson
2005-10-30 14:48 ` bert hubert
[not found] ` <4364337F.4090201@erkkila.org>
2005-10-30 10:45 ` Steinar H. Gunderson
2005-10-30 18:54 ` Ray Lee
2005-10-30 19:05 ` Steinar H. Gunderson
2005-10-30 21:40 ` Steinar H. Gunderson [this message]
[not found] <53bh4-4UB-5@gated-at.bofh.it>
[not found] ` <53qzy-1yA-7@gated-at.bofh.it>
[not found] ` <53qJ9-1YO-5@gated-at.bofh.it>
2005-10-31 10:17 ` Stefan Schmidt,,,
2005-10-31 16:52 ` Andrew Walrond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051030214052.GA1454@uio.no \
--to=sgunderson@bigfoot.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox