develooper Front page | perl.perl5.porters | Postings from January 2012

[perl #38817] Segment fault when using 'Sockets'.

Thread Next
James E Keenan via RT
January 12, 2012 16:53
[perl #38817] Segment fault when using 'Sockets'.
Message ID:
On Thu Mar 30 16:45:06 2006, jclark wrote:
> Perl is emitting a 'segment fault' when exiting out of a program. The
> taret enviornment is a i586
> platform. Perl has been cross compiled for this target, as the target
> is
> using the uClibc libraries
> rather than the glibc. The underlying OS is linux 2.6.14.
> I have reduced the program down to the following:

This ticket has not received a response since it was originally filed
six years ago, perhaps because the strace in the original post was large
enough to trigger one of those annoying "message body too large" links
on RT.

I am attaching the OP's program, updated only to make it run under

I tried this program out on Linux/i386 and Darwin/PPC, both with Perl
5.14.(various) and reproduced the OP's error.

$ perl
cannot connect to port 2004 at

I then tried running the program through the debugger.  It appears the
error is triggered at this part of IO::Socket::INET::configure():

237:            return _error($sock, $!, $@ || "Timeout")
238:                unless @raddr;

The implication these failures is that neither the targeting of uClibc
libraries nor the cross-compiling is germane to the failure.

Any ideas?

Thank you very much.
Jim Keenan

via perlbug:  queue: perl5 status: new

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About