Bug 5462 - Problem reading file on SAMBA (read raw)
Summary: Problem reading file on SAMBA (read raw)
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.23d
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-05-13 16:00 UTC by Gaudissart Vincent
Modified: 2008-05-16 14:54 UTC (History)
0 users

See Also:

Samba dump (553.93 KB, application/octet-stream)
2008-05-13 16:01 UTC, Gaudissart Vincent
no flags Details
Windows server dump (644.77 KB, application/octet-stream)
2008-05-13 16:05 UTC, Gaudissart Vincent
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaudissart Vincent 2008-05-13 16:00:17 UTC
I have got a problem: I can not read a file from my Samba server (version 3.0.23d) with a simplified Samba client using "read raw" (SMS player on PS2), while reading the same file with the same client works perfectly with Windows XP.

I have analyzed exchanged packets between SAMBA and the client with Wireshark. One thing disturb me: packages returned by the server are duplicated. It's probably the cause of my problem with my simplified client.

I have joined the Wireshark dump of reading a file from Windows XP and SAMBA. is the address of the Samba server, is the address of the client, is the address of the Windows XP server.
Do not take into account the frames marked [TCP Out-of-Order]. They are present because I had to make a man-in-the-middle to capture the flow.

As you can see it in the dump, for a read request ( "raw read", frame 13), 2 samba sessions of 3 frames are instantiated ( "new samba session", frames 15 and 23). What I find particularly strange is that these two sessions are perfectly identical. The data are the same, even ack identifiers.

Is this normal? What could be the cause of this duplication?
Under windows, the same request produces only one session (formatted identically: 3 packages, with the data cut in the same way)

I tried hundreds of server-side configuration, but I can not find the good parameters.

Could someone help me ?

Thank you in advance,

Comment 1 Gaudissart Vincent 2008-05-13 16:01:25 UTC
Created attachment 3289 [details]
Samba dump
Comment 2 Gaudissart Vincent 2008-05-13 16:05:49 UTC
Created attachment 3290 [details]
Windows server dump
Comment 3 Volker Lendecke 2008-05-16 14:42:49 UTC
This indeed looks extremely strange, 99% this is a Samba bug. Trying to reproduce here.

Almost nobody is using readraw these days anymore... :-)

BTW, did you try "read raw = no"?

Comment 4 Volker Lendecke 2008-05-16 14:54:12 UTC
Ok, this VERY much seems like a bug fixed on May 9 2007...

You can find the diff under


I'm closing this, please re-open if it does not fix the bug for you.