(fwd) Bug#557528: tin: feed_articles() segfaults on spurious SIGPIPE

Urs Janßen <[email protected]> Sun, 22 Nov 2009 20:11:01 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
anyone willing to look at this?

----- Forwarded message from Frédéric Brière <[email protected]> -----
From: Frédéric Brière <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Bug#557528: tin: feed_articles() segfaults on spurious SIGPIPE
X-Spam-Status: No, score=-14.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	SPF_HELO_PASS,XMAILER_REPORTBUG,X_DEBBUGS_CC autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02

Package: tin
Version: 1:1.9.5~20090720-1
Severity: normal

I'm seeing (very) infrequent segfaults when feed-saving articles.
Apparently, this occurs when tin gets a SIGPIPE, probably from writing
to the network socket.  (I have a very flaky DSL, so it's quite possible
the connection sometimes get dropped just when tin is about to write.)

When that happens, pclose(pipe_fp) will segfault, since pipe_fp is NULL.
----- End forwarded message -----