unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Noah Lavine <noah.b.lavine@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: Bug in Guile's Posix Networking
Date: Sat, 12 Feb 2011 23:00:05 +0100	[thread overview]
Message-ID: <m3pqqw9amy.fsf@unquote.localdomain> (raw)
In-Reply-To: <AANLkTin4sgcvmSEHbsQEhrE1=_eBoTzGSBn7qKbDwK65@mail.gmail.com> (Noah Lavine's message of "Sat, 12 Feb 2011 16:35:32 -0500")

Hi Noah,

On Sat 12 Feb 2011 22:35, Noah Lavine <noah.b.lavine@gmail.com> writes:

> socket(0x2, 0x1, 0x0)		 = 73 0                    ; make a socket -
> INET family, SOCK_STREAM, internet protocol; we got one with
> descriptor 73
> fcntl(0x49, 0x3, 0x0)		 = 2 0                      ; get flags for
> file descriptor 49. result 2 probably means it is read and writable.
> lseek(0x49, 0x0, 0x1)		 = -1 Err#29             ; errno 29 is "illegal seek"
> setsockopt(0x49, 0xFFFF, 0x4)		 = 0 0      ; setsockopt on descriptor 49
> bind(0x49, 0x100709EE0, 0x10)		 = -1 Err#49  ; bind descriptor 49.
> errno 49 is "protocol driver not attached"
>
> ;; And now there's already been an error, and we'll backtrace it.
> write(0x2, "Backtrace:\n\0", 0xB)		 = 11 0
> ...
>
> It seems to me that the strangest issue is that socket() return file
> descriptor 73, but the script then did system calls on file descriptor
> 49. Does anyone know a reason that would happen?

#x49 is 73 :)

Could the lseek could be the problem?

A
-- 
http://wingolog.org/



  reply	other threads:[~2011-02-12 22:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07  6:28 Bug in Guile's Posix Networking Noah Lavine
2011-02-07 23:49 ` Andreas Rottmann
2011-02-12 20:47   ` Noah Lavine
2011-02-12 21:02     ` Andy Wingo
2011-02-12 21:35       ` Noah Lavine
2011-02-12 22:00         ` Andy Wingo [this message]
2011-02-13  1:22           ` Noah Lavine
2011-02-13  1:45             ` Noah Lavine
2011-02-13  2:22               ` Noah Lavine
2011-02-13  3:00                 ` Noah Lavine
2011-02-13  5:42                   ` Ken Raeburn
2011-02-13 13:55                     ` Noah Lavine
2011-02-13 13:57                       ` Noah Lavine
2011-02-13 18:34                       ` Ken Raeburn
2011-02-13 20:07                         ` Andy Wingo
2011-02-13 20:10                           ` Noah Lavine
2011-02-13 20:34                             ` Noah Lavine
2011-02-13 21:10                               ` Andy Wingo
2011-02-13 20:04                 ` Andy Wingo
2011-02-12 11:26 ` Andy Wingo
2011-02-12 20:33   ` Noah Lavine
2011-02-12 20:59     ` Andy Wingo
2011-02-12 21:00       ` Noah Lavine

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3pqqw9amy.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=noah.b.lavine@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).