Maverick 64Bit Desktop Edition corrupts files on samba network shares

Bug #662361 reported by franco_bez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

I can always reproduce the bug, on any samba share, even on shares that reside on the same machine:

In Nautilus I right-click on a folder and chose "file sharing options" to make it a writable share.

Then, again in Nautilus, I navigate to "network" and mount the share by clicking on it and supplying username and password.

I created a new file on the share "sample.txt" with the following content:
01 sample line of text
02 sample line of text
03 sample line of text
04 sample line of text
05 sample line of text
06 sample line of text
07 sample line of text
08 sample line of text
09 sample line of text
10 sample line of text

Then I removed the lines 02 up to 05 from the file and hit save. Editor shows:
01 sample line of text
06 sample line of text
07 sample line of text
08 sample line of text
09 sample line of text
10 sample line of text

When I reopen the file the new content is:
01 sample line of text
06 sample line of text
07 sample line of text
08 sample line of text
09 sample line of text
10 sample line of text
07 sample line of text
08 sample line of text
09 sample line of text
10 sample line of text

I tried several editors, several servers providing SAMBA shares (Ubuntu Hardy, Windows Vista, and my Maverick notebook)
The result is always the same.

A very, very nasty bug.

See also
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/660747
I first tought it was a samba problem, but using the old kernel
Linux 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux
from Lucid - the bug is gone.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-22-generic 2.6.35-22.34
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: franco 2395 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0500000 irq 46'
   Mixer name : 'Realtek ALC268'
   Components : 'HDA:10ec0268,1025011b,00100003 HDA:11c11040,1025011b,00100200'
   Controls : 16
   Simple ctrls : 10
Date: Sun Oct 17 21:55:47 2010
HibernationDevice: RESUME=UUID=ebc5a6f9-31bb-4ea5-a15c-af3057bb2081
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: Acer, inc. TravelMate 6292
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic root=/dev/mapper/ubuntu-root ro quiet splash
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38
SourcePackage: linux
dmi.bios.date: 03/03/2008
dmi.bios.vendor: Acer
dmi.bios.version: v1.3601
dmi.board.name: Victoria
dmi.board.vendor: Acer, Inc.
dmi.board.version: Not Applicable
dmi.chassis.type: 1
dmi.chassis.vendor: Acer, Inc.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAcer:bvrv1.3601:bd03/03/2008:svnAcer,inc.:pnTravelMate6292:pvrNotApplicable:rvnAcer,Inc.:rnVictoria:rvrNotApplicable:cvnAcer,Inc.:ct1:cvrN/A:
dmi.product.name: TravelMate 6292
dmi.product.version: Not Applicable
dmi.sys.vendor: Acer, inc.

Revision history for this message
franco_bez (franco-bez) wrote :
Revision history for this message
franco_bez (franco-bez) wrote :

Today's kernel update to Version 2.6.35-22.35 didn't change anything.
The bug is still there.

Revision history for this message
franco_bez (franco-bez) wrote :

Today I also tested ftp connection with nautilus

I connected to my dreambox by entering ftp://192.168.0.13 in Nautilus' adress bar then gave the appropriate username and password.

I can browse directories and open files. Also creating new files works just fine

But when I try to edit a file and save it there is a timeout error and the file gets truncated to 0 Bytes.
This happens every time - 100% reproductible.

once again the error occurs only when using kernel 2.6.35-22 , with 2.6.32-25 everything works as intended.

Revision history for this message
franco_bez (franco-bez) wrote :

I reported the ftp Bug as #666002

Revision history for this message
franco_bez (franco-bez) wrote :

The Bug is also present in the mainline kernel
uname -a
Linux TM6292 2.6.35-02063507-generic #201009290909 SMP Wed Sep 29 09:11:05 UTC 2010 x86_64 GNU/Linux

Revision history for this message
franco_bez (franco-bez) wrote :

The Bug is also present in the mainline kernel
uname -a
Linux TM6292 2.6.36-020636-generic #201010210905 SMP Thu Oct 21 09:08:58 UTC 2010 x86_64 GNU/Linux

Revision history for this message
franco_bez (franco-bez) wrote :

The Bug is also present in the mainline kernel
uname -a
Linux TM6292 2.6.34-02063407-generic #201009140905 SMP Tue Sep 14 09:09:01 UTC 2010 x86_64 GNU/Linux

Revision history for this message
franco_bez (franco-bez) wrote :

The Bug is also present in the mainline kernel
uname -a
Linux TM6292 2.6.33-02063307-generic #02063307 SMP Tue Aug 3 11:22:33 UTC 2010 x86_64 GNU/Linux

Revision history for this message
franco_bez (franco-bez) wrote :

With the mainline kernel
uname -a
Linux TM6292 2.6.32-0206322411-generic #201010200905 SMP Wed Oct 20 09:09:17 UTC 2010 x86_64 GNU/Linux

everything works as intended.

So the Bug must have entered some where between Version 2.6.32 and 2.6.33.
since 2.6.33 all the tested kernels have the same Bug.

Revision history for this message
franco_bez (franco-bez) wrote :

Now I tried
Linux C521 2.6.35-02063507-generic #201009290909 SMP Wed Sep 29 09:11:05 UTC 2010 x86_64 GNU/Linux
on my other amd64 machine it has Lucid Lynx installed.

The Bug is also just the same here.

So using the mainline 2.6.35 kernel on Lucid 64 Bit is just the same as with Maverick

Revision history for this message
franco_bez (franco-bez) wrote :

Now I did al lot more test,
amoung others I tried a Ubuntu 10.10 64bit Live CD with gedit.

And my Buggy Maverick System with more Editors.

I come to the conclusion that Geany and Scite Editors are more likely to produce the Bug that the gedit.

With the LiveCD and gedit I was not able to produce the bug.

On my System I gedit sometimes also produces corrupt files sometimes it works.

I now think the bug might be related, or even a duplicate of Bug #658069 a bug in fuse.

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.