Bug 6125 - Samba fails to work with Visual Studio 2003
Summary: Samba fails to work with Visual Studio 2003
Status: NEW
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.2.8
Hardware: x86 Linux
: P3 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 12:43 UTC by Ismo Salonen
Modified: 2009-05-11 04:42 UTC (History)
1 user (show)

See Also:


Attachments
Samba log with debug level 10 as requested (6.06 KB, text/plain)
2009-02-28 04:05 UTC, Ismo Salonen
no flags Details
tshark dump. (60.80 KB, application/octet-stream)
2009-02-28 04:11 UTC, Ismo Salonen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ismo Salonen 2009-02-19 12:43:18 UTC
I've old project on my samba server which was working in december 2007. Now I needed to make same changes but ide compilation fails. 
Checked everything I could and no help so i turned debugging to lvel 5 momentarily and captured wierd things is the log. 
The VS2003 uses response files which are named RSPxxxxx.rsp ( x= any digit).
It does not see the file so I tried to find the filename in logs but there
was only the contents of the response file. 
Here is little extract from the log :
[2009/02/19 20:21:31,  3] smbd/process.c:switch_message(1361)
  switch message SMBtrans2 (pid 8632) conn 0x1e176c8
[2009/02/19 20:21:31,  4] smbd/uid.c:change_to_user(225)
  change_to_user: Skipping user change - already user
[2009/02/19 20:21:31,  3] smbd/trans2.c:call_trans2qfilepathinfo(3929)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2009/02/19 20:21:31,  5] smbd/filename.c:unix_convert(148)
  unix_convert called on file "Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd.exe"
[2009/02/19 20:21:31,  5] smbd/filename.c:unix_convert(295)
  unix_convert begin: name = Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd.exe, dirpath = , start = Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd.exe
[2009/02/19 20:21:31,  5] smbd/filename.c:unix_convert(446)
  Intermediate not found Od 
[2009/02/19 20:21:31,  3] smbd/error.c:error_packet_set(61)
  error packet at smbd/trans2.c(3961) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND
[2009/02/19 20:21:31,  5] lib/util.c:show_msg(642)
[2009/02/19 20:21:31,  5] lib/util.c:show_msg(652)

I can send you my smb.conf and try to help in some debugging if possible.
(samba version is samba.i386  3.2.8-0.26.fc10, linux = Fedpra Core 10)
Comment 1 Volker Lendecke 2009-02-25 10:12:29 UTC
Can you take a network trace of this together with a debug level 10 log of smbd and upload it here? For taking traces, see

http://wiki.samba.org/index.php/Capture_Packets

Thanks,

Volker
Comment 2 Ismo Salonen 2009-02-28 04:05:30 UTC
Created attachment 3962 [details]
Samba log with debug level 10 as requested

The are a couple of Visual studio 2003 C++ compiles here.
Comment 3 Ismo Salonen 2009-02-28 04:11:29 UTC
Created attachment 3963 [details]
tshark dump.

Not at the same time as log.smbd but same case otherwise.
If required I can try to create them from same time.
Comment 4 Volker Lendecke 2009-02-28 04:27:32 UTC
Ok, thanks. It is Windows that is sending us weird stuff. It seems to start with frame 189, where Windows apparently sends us command line parameters as file names. Can you please try to store the files on a Windows box and perform exactly the same operations and send a comparing sniff?

Thanks,

Volker
Comment 5 Ismo Salonen 2009-03-01 06:43:14 UTC
Not sure what you wanted but this is a similar case, files on XP,  Windows Server 2003 as client where Vs2003 was run. Compilation was successfull. 
The W2K3 server also fails to compile when the source code is on samba share.
The fileswere too big for upload.

Files are on my slinux server, outbound connection is not the fastest.

http://salonen.homelinux.net/vs2003.pcap
http://salonen.homelinux.net/vs2003.txt