GNU bug report logs - #23000
send doesn't check for closed socket

Previous Next

Package: guile;

Reported by: Amirouche Boubekki <amirouche <at> hypermove.net>

Date: Sat, 12 Mar 2016 19:01:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andy Wingo <wingo <at> pobox.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23000: closed (send doesn't check for closed socket)
Date: Mon, 20 Jun 2016 16:19:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 20 Jun 2016 18:18:05 +0200
with message-id <874m8ng7gi.fsf <at> pobox.com>
and subject line Re: bug#23000: update from wingo
has caused the debbugs.gnu.org bug report #23000,
regarding send doesn't check for closed socket
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23000: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23000
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Amirouche Boubekki <amirouche <at> hypermove.net>
To: bug-guile <at> gnu.org
Subject: send doesn't check for closed socket
Date: Sat, 12 Mar 2016 19:57:35 +0100
[Message part 3 (text/plain, inline)]
The attached client.scm will crash with a SIGPIPE (based on strace) when 
run. It should raise an error instead.

The error happens when we try to send over socket that is closed on the 
other side.

Happens on 2.0 and master.

-- 
Amirouche ~ amz3 ~ http://www.hyperdev.fr
[client.scm (text/plain, attachment)]
[shared.scm (text/plain, attachment)]
[server.scm (text/plain, attachment)]
[Message part 7 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Amirouche Boubekki <amirouche <at> hypermove.net>
Cc: 23000-done <at> debbugs.gnu.org
Subject: Re: bug#23000: update from wingo
Date: Mon, 20 Jun 2016 18:18:05 +0200
tags 2300 +notabug
close
thanks

On Tue 03 May 2016 11:07, Amirouche Boubekki <amirouche <at> hypermove.net> writes:

> wingo said:
>
>> wingo | i don't think that's a guile bug -- i think in that case you
>> need to handle SIGPIPE
>> wingo | b/c posix is weird
>> wingo | (sigaction SIGPIPE SIG_IGN)
>> wingo | the web server does it.

Yep!


This bug report was last modified 8 years and 340 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.