-=| Konstantin Kuzvesov via RT, 08.01.2017 10:05:55 -0500 |=-
Show quoted text> Sun Jan 08 10:05:55 2017: Request 119764 was acted upon.
> Broken in: 1.24
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=119764 >
>
> I use alarm to set connection timeout (10.0.0.1 host does not exist in my network):
>
> [code]
>...
> [/code]
>
> Running this code ends up with segmentation fault =( And I don't know why =(((
> N.B If database connection is replaced with 'sleep 10', then code works properly.
> N.B.B DBD-InterBase produces the same segmentation fault in the same conditions =(
>
> Configuration:
> DBD-Firebird-1.24
> perl v5.24.1
> FreeBSD 10.3-RELEASE-p12
This seems to work more or less as expected for me on linux
(Debian/sid) on amd64 using libfbclient2 from firebird 3.0.1.
What is a bit strange is that I get an error that seems to be coming
from the firebird client:
$ time perl test.pl
start connect
DBI connect('database=nonexistent;host=192.168.0.16;','sysdba',...) failed: Unsuccessful execution caused by a system error that precludes successful execution of subsequent statements
-Unable to complete network request to host "192.168.0.16".
-Failed to establish a connection. at test.pl line 11.
connect failed: Unsuccessful execution caused by a system error that precludes successful execution of subsequent statements
-Unable to complete network request to host "192.168.0.16".
-Failed to establish a connection. at test.pl line 18.
perl test.pl 0,04s user 0,01s system 1% cpu 3,113 total
This may be caused by some linux-related thing, causing the network
connection to fail quick.
Interestingly, if I change "alarm(5)" to "alarm(2)", the result is
similar, but comes after just 2 seconds:
$ time perl test.pl
start connect
connect failed: Unsuccessful execution caused by a system error that precludes successful execution of subsequent statements
-Unable to complete network request to host "192.168.0.16".
-Failed to establish a connection. at test.pl line 18.
perl test.pl 0,04s user 0,01s system 2% cpu 2,051 total
Still, no segfaults.
What's your firebird client version?