Project

General

Profile

Actions

Bug #6427

closed

ruby ioctl: Error integer 2148012656 too big to convert to `int'

Added by hadmut (Hadmut Danisch) almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
Backport:
[ruby-core:45009]

Description

Hi,

the upgrade to ubuntu 12.04 came with an upgrade to ruby 1.9.3.
Unfortunately, in recent 1.9.3 versions of ruby there's a bug in the
ioctl function. E.g. if you want to do getbsz() on a block device and do
a

f.ioctl(0x80081270,a)

you'll get the error message

Error integer 2148012656 too big to convert to `int'
RangeError

(2148012656 = 0x80081270)

So ruby can't do ioctl's anymore if the highest bit is set in the ioctl code.

This was working code in ruby 1.9.2 / ubuntu 11.10.

regards


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #5429: 64ビットなFreeBSDのioctlでビット31が1なリクエストの時の不具合Closedmetanest (Makoto Kishimoto)10/10/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0