Subject: | 'use bigint' breaks Net::Telnet |
I have a script that uses waitfor('foo'). I was also trying to use
64-bit numbers on 32-bit systems, so I put 'use bigint'
at the top. Strange enough, that breaks the waitfor call (at least).
From an strace, it appears a bad value is being given to select..maybe
the timeout is bad?
It works fine if I remove the 'use bigint' line.
....
connect(4, {sa_family=AF_INET, sin_port=htons(4001),
sin_addr=inet_addr("192.168.100.138")}, 16) = 0
rt_sigprocmask(SIG_BLOCK, [ALRM], [], 8) = 0
rt_sigaction(SIGALRM, {SIG_DFL, [], 0}, {0x48a260, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
alarm(0) = 0
fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
time(NULL) = 1361058694
time(NULL) = 1361058694
select(8, [4], NULL, NULL, {2147483648, 2147483648}) = -1 EINVAL
(Invalid argument)
I see this bug on Fedora 17, 14 and Fedora 13, at least.