swap-offset open(): Value too large for defined data type

Bug #309621 reported by Lean Fuglsang
4
Affects Status Importance Assigned to Milestone
uswsusp (Ubuntu)
New
Undecided
Unassigned

Bug Description

Running these three commands, results in an error.

sudo dd if=/dev/zero of=/.hibernate.img bs=1024000 count=3000
3000+0 records in
3000+0 records out
3072000000 bytes (3,1 GB) copied, 111,554 s, 27,5 MB/s

sudo mkswap /.hibernate.img
Setting up swapspace version 1, size = 2999996 KiB
intet mærke, UUID=5c48a655-3f86-461d-81d9-cd3e794a7ac3

sudo swap-offset /.hibernate.img
open(): Value too large for defined data type

Revision history for this message
z3non (tom-uttenthaler) wrote :

I can confirm this for version 0.6~cvs20070618-1ubuntu2 of uswsusp in intrepid:

$ sudo dd if=/dev/zero of=/swapfile bs=1024 count=2097152
2097152+0 Datensätze ein
2097152+0 Datensätze aus
2147483648 Bytes (2,1 GB) kopiert, 87,8132 s, 24,5 MB/s

$ swap-offset /swapfile
open(): Value too large for defined data type

Revision history for this message
z3non (tom-uttenthaler) wrote :

it works up to bs=1024 count=2097151, which is 2^31 - 1024, so it very much looks like a overrun of a signed 32bit integer ...

$ uname -a
Linux silver 2.6.28-4-generic #5-Ubuntu SMP Fri Dec 26 22:48:51 UTC 2008 i686 GNU/Linux

Revision history for this message
seb (sebastien-ponce-ubuntu) wrote :

I had the same problem and found this that worked for me :
http://ubuntuforums.org/showthread.php?t=915250

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.