reading usb memory on x86_64 ltsp client fails

Bug #415952 reported by John Ellson on 2009-08-19
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Scott Balneaves
ltspfs (Fedora)
ltspfs (Ubuntu)

Bug Description

Problem existed in fedora-10, and still exists in a freshly installed fedora-11 x86_64 server with x86_64 ltsp clients running x86_64 images.

Reading/writing USB memory sticks on i386 ltsp clients works fine, but on x86_64 clients
it always gets a malloc failure.

    ellson@bock:usbdisk-sda1> cat foo
    cat: foo: Cannot allocate memory

Probable cause is bad casts in ltspfsd_functions.c which generate warnings during make.

Original problem report at:

Vagrant Cascadian (vagrantc) wrote :

seems like all 64-bit debian buildd's issue warnings similar to those mentioned in the fedora bugreport:

one example from the build log:

make[3]: Entering directory `/build/buildd/ltspfs-0.5.13/src'
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=22 -D_REENTRANT -g -O2 -c -o ltspfs-ltspfs.o `test -f 'ltspfs.c' || echo './'`ltspfs.c
ltspfs.c: In function 'ltspfs_getattr':
ltspfs.c:327: warning: passing argument 2 of 'xdr_u_int' from incompatible pointer type
ltspfs.c: In function 'ltspfs_read':
ltspfs.c:781: warning: passing argument 2 of 'xdr_u_int' from incompatible pointer type
ltspfs.c: In function 'ltspfs_write':
ltspfs.c:838: warning: passing argument 2 of 'xdr_u_int' from incompatible pointer type
ltspfs.c: In function 'ltspfs_statfs':

Hosed (liveonaware) wrote :

Yes, I agree with this, but a user named, Gadi, in #ltsp, told me just to use i386, now it's working fine for me, thank you Gadi!

Stéphane Graber (stgraber) wrote :

Was anyone able to reproduce that with another distro ?
Just to make sure it's actually ltspfs that's broken and not something else ?

Changed in ltsp:
status: New → Incomplete
importance: Undecided → Medium
Changed in ltsp:
assignee: nobody → Scott Balneaves (sbalneav)
Wim Muskee (wimmuskee) wrote :

Seeing the same warnings on Gentoo for ltspfs-0.5.13 on amd64.

Luke Faraone (lfaraone) wrote :

I am also experiencing this problem on Ubuntu 9.10 "Karmic". Please let me know if there is any additional information I can provide.

Changed in ltsp:
status: Incomplete → Confirmed
Changed in ltspfs (Ubuntu):
status: New → Triaged
importance: Undecided → Medium


I could confirm the problem on an ubuntu amd64 10.04 installation (server + client).
It was not possible to mount the usb drives although the kernel detected them correctly.
I changed the casting and then it worked!
I attach the changes.



tags: added: patch
john_s (lists-john) wrote :

I can also confirm this problem with Ubuntu Lucid 10.04 with 64 bit clients. Scott are you planning on using the above patch to fix this issue for Ubuntu LTS?



luthr (luther-mailinator) wrote :

Problem exists with Maverick 10.10 64bit.

I applied Kosmas' patch, recompiled ltspfs, rebuilt the image, but.... problem still exists. No usb drive shows up

Łukasz Wiśniewski (fr-luksus) wrote :

Problem exists also on Ubuntu 11.04 x64 clients. ltspfs 0.7-2

Alkis Georgopoulos (alkisg) wrote :
Changed in ltsp:
status: Confirmed → Fix Released
Changed in ltspfs (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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