http://bugs.winehq.org/show_bug.cgi?id=2292
bon(a)elektron.ikp.physik.tu-darmstadt.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
------- Additional Comments From bon(a)elektron.ikp.physik.tu-darmstadt.de 2004-17-06 15:07 -------
I also noted the trashed files, with a lot of zeros at the start.
I propose you send you patch at least to wine-devel, perhaps also to
wine-patches, as you will find a wider audience there.
Bye
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2290
------- Additional Comments From mike(a)tashcorp.net 2004-17-06 12:54 -------
Wine 20040615 was just released. Have you retried with the latest version?
Also, could you post the command line output from the program when it fails?
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2292
Oli1417(a)gmx.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #610|See comment above |xst.Debug-Session-2.txt.bz2
description| |
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2290
mike(a)tashcorp.net changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |1434
nThis| |
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2292
------- Additional Comments From Oli1417(a)gmx.net 2004-17-06 12:44 -------
The problem occures also with the CVS version 20040615
I've created several debugging logs, which I will still attach:
o xst.Debug-Session-2.txt.bz2:
The log of winedbg session until the problem occures. It's done with
winedbg 2040505, since the latest winedbg somehow didn't work.
The log contains *COMMENT* markers, where I explain things.
o xst.debug.extract.grep_-A_1000_-B_1000_-E_xst_work_hdllib.ref.bz2
A log with wine20040615 and +file,+ntdll,+relay. I grep for the
xst/work/hdllib.ref file and extracted +-1000 lines arround it. The programs
runs extremely slow with +relay and produces gigs of debugging output. Normal
runtime of this case is ~10sec.
o xst.debug.extract.grep_-i_file.bz2
Same as above, but I grep for everything with i/file/
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=2292
Summary: Corrupted file problem Wine20040613,20040505 with Xilinx
XST 6.2i
Product: Wine
Version: CVS
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-files
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: Oli1417(a)gmx.net
I've a strange problem with Xilinx XST (ISE) 6.2i, a
Software for FPGA developement. A sort of silicon compiler
for Xilinx Fpgas chips.
System is: Suse 9.1, Linux cassix 2.6.4-52-default #1 Wed Apr 7
02:08:30 UTC 2004 i686 i686 i386 GNU/Linux
The XST program while running usually does a lot of file processing
and creates libraries-files etc and so on.
One of those files is a simple ascii file called "hdllib.ref". It
usually looks like more or less like this, size around some k-bytes.
[...]
AR hex2led hex2led_arch F:/Test/watchvhd_u/hex2led.vhd sub00/vhpl09
EN hex2led NULL F:/Test/watchvhd_u/hex2led.vhd sub00/vhpl08
AR smallcntr inside F:/Test/watchvhd_u/smallcntr.vhd sub00/vhpl01
[...]
When I'm running the XST program with wine, this file gets corrupted
by leading zero-bytes in the beginning of the file:
[0x00 0x00 0x00 0x00 ... all bytes are zero until some time the
text starts.]
AR hex2led hex2led_arch F:/Test/watchvhd_u/hex2led.vhd sub00/vhpl09
EN hex2led NULL F:/Test/watchvhd_u/hex2led.vhd sub00/vhpl08
AR smallcntr inside F:/Test/watchvhd_u/smallcntr.vhd sub00/vhpl01
[...]
I debugged a bit and found out, that this file is 'rewritten' several
times during the program run (see debugging output below).
The problem seems to be, that each time is written new, the new data
is appended to the end of the file, instead of being put in the
beginning !? For some reason the previous data in the file is put to 0x00.
The problem does not occure under Win XP.
While debugging I grepped through the wine source, to track down
what's happening - I don't know the wine internals at all (now more
then before) - and changed following file:
wine20040613/wine/server/file.c
[...]
static struct object *create_file( const char *nameptr, size_t len, unsigned
int access,
unsigned int sharing, int create, unsigned
int options,
unsigned int attrs )
[...]
switch(create)
{
case FILE_CREATE: flags = O_CREAT | O_EXCL; break;
case FILE_OVERWRITE_IF: /* FIXME: the difference is whether we trash
existing attr or not */
case FILE_SUPERSEDE: flags = O_CREAT | O_TRUNC; break;
case FILE_OPEN: flags = 0; break;
case FILE_OPEN_IF: flags = O_CREAT | O_TRUNC; break;
^^^^^^^^^ CHANGED here
case FILE_OVERWRITE: flags = O_TRUNC; break;
default: set_error( STATUS_INVALID_PARAMETER ); goto error;
}
=>> Now it works ;) !?!?
Well - I know that in fact I don't know really what I did (that's life)
... perhaps I did break something else now.
But it might give a hint for the Wine Pros here, for a possible
improvement. IT'S A GREAT PROJECT BTW!!!
Fell free to ask for more info, in case.
Cheerio,
Oliver
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.winehq.org/show_bug.cgi?id=638
------- Additional Comments From listas(a)ono.com 2004-17-06 03:25 -------
It was documented as command line options in early versions of the guide.
It should still be documented.
Also, it should be documented that a command line option "--debug" existed, and
it's now obsoleted, and the new way of obtaining the same effects.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.