https://bugs.winehq.org/show_bug.cgi?id=40511
Bug ID: 40511 Summary: Application that copies files from one place to another stoped working in wine versions greater then 1.6.2 Product: Wine Version: 1.8.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: pedro.m.ferreira@gmail.com Distribution: ---
Created attachment 54314 --> https://bugs.winehq.org/attachment.cgi?id=54314 problem copying files from one location to another
Application that copies files from one place to another stoped working in wine versions greater then 1.6.2 The error is (see attachement printscreen ): Error copying filess [c:\AIRC\ADM\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\] Check your permission or check if the file is not open.
In version less or equa then 1.6.2 works everytime.
How can i debug the problem? thanks
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- What is the application? Does it have a demo/free version to download somewhere?
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #2 from xekhz pedro.m.ferreira@gmail.com --- Hello it is a townhall administrative application I can provide a download link of the application and the update software.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to xekhz from comment #2)
Hello it is a townhall administrative application I can provide a download link of the application and the update software.
In order for other people to test along with the download please provide the steps to reproduce the issue. On http://www.airc.pt/suporte I can see many different applications for download, is it from there?
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #4 from xekhz pedro.m.ferreira@gmail.com --- Testing on a Debian OS , version wheezy with wine 1.7 it works Could it be an ubuntu problem ? i had reported a prior bug concerning the printing size and the problem only existed in ubuntu 14.04
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #5 from xekhz pedro.m.ferreira@gmail.com --- in here http://213.228.143.2/tmp/BD25_ADM_full.zip you have ADM FULL install to install file c:\windows\drivers\etc{hosts,services} must exist then download the update and execute ..
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #6 from xekhz pedro.m.ferreira@gmail.com --- wine1.9 in debian whezzy displays the same behaviour
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #7 from Rosanne DiMesio dimesio@earthlink.net --- Please run a regression test. https://wiki.winehq.org/Regression_Testing
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #8 from xekhz pedro.m.ferreira@gmail.com --- I compilled version md5sum version 0f6c56f86befe38e219090915f81f48a wine-1.6.2.tar.bz2 a23072d18310678c8cd878948dfaf8c0 wine-1.8.2.tar.bz2 308733cebe3302b5a3e2324f58b14ce2 wine-1.9.8.tar.bz2
files downloaded from winehq
It only works in version 1.6.2...
operating system No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty
https://bugs.winehq.org/show_bug.cgi?id=40511
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Keywords| |regression
--- Comment #9 from Austin English austinenglish@gmail.com --- (In reply to xekhz from comment #8)
I compilled version md5sum version 0f6c56f86befe38e219090915f81f48a wine-1.6.2.tar.bz2 a23072d18310678c8cd878948dfaf8c0 wine-1.8.2.tar.bz2 308733cebe3302b5a3e2324f58b14ce2 wine-1.9.8.tar.bz2
files downloaded from winehq
It only works in version 1.6.2...
Then please run a regression test as Rosanne asked. You'll need to do that with git, as we need to know the exact commit that broke it, not the first failing version.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #10 from xekhz pedro.m.ferreira@gmail.com --- After doing the regression testing i got this
root@ubuntu2:/home/xekhz/wine-git# git bisect bad
3d1cf168cfc517e71515bac04fa13fb2bbd4ab49 is the first bad commit
commit 3d1cf168cfc517e71515bac04fa13fb2bbd4ab49
Author: Vincent Povirk vincent@codeweavers.com Date: Thu Apr 17 17:32:27 2014 -0500
shell32/tests: Use SEE_MASK_NO_CONSOLE with ShellExecuteExA.
:040000 040000 239dec8bf11c457b4b60ae1460c9521e1b41b0fc fc02c3f5e9b7f73fbd6d1ef3056ff39a3f00d35d M dlls
https://bugs.winehq.org/show_bug.cgi?id=40511
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu Keywords| |download URL| |http://213.228.143.2/tmp/BD | |25_ADM_full.zip CC| |madewokherd@gmail.com, | |wylda@volny.cz Regression SHA1| |3d1cf168cfc517e71515bac04fa | |13fb2bbd4ab49
https://bugs.winehq.org/show_bug.cgi?id=40511
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1|3d1cf168cfc517e71515bac04fa | |13fb2bbd4ab49 |
--- Comment #11 from Wylda wylda@volny.cz --- Well, that regression result does not seem right. Test would not break that.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #12 from Wylda wylda@volny.cz --- I wanted to help you with proper regression test, but unfortunately you did not provide exact steps as you were asked at comment 3.
Please do the regression test again and verify by revert, that you found the correct commit. Or provide exact step by step, how to reproduce the issue for someone, who never saw this application and does not understand Portuguese.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #13 from xekhz pedro.m.ferreira@gmail.com --- Im doing the regression test again, If i attach the regression log , would that help ?
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #14 from Wylda wylda@volny.cz ---
If i attach the regression log , would that help ?
Nope, because it's not important how you get to the faulty commit. And putting here other unrelated commits may affect someone else search.
Rather verify, that you found the right commit. There are multiple ways, how to perform verification, but for example:
git checkout -f faulty_commit recompile //here you have to see the problem
git show faulty_commit | patch -p1 -R recompile //here your application behaves correctly
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #15 from xekhz pedro.m.ferreira@gmail.com --- here it is
e57a4e94909eede1d7e84bb092d5cc93fc8b9b22 is the first bad commit commit e57a4e94909eede1d7e84bb092d5cc93fc8b9b22 Author: Piotr Caban piotr@codeweavers.com Date: Fri Apr 18 12:33:53 2014 +0200
msvcr71: Share the source code with msvcrt.
:040000 040000 38c80e23bae766961e52d616d3512a791ba1637b 1ca1448b37c50ac443662ea9f28d00f68c94fdf7 M dlls :040000 040000 e2d0432572dde15bbe19f289f6d7c96b49763e8e 55b92ea53bd1b461303a946274b704593f342413 M tools
And the bitsect log
root@ubuntu2:/home/xekhz/wine-git# git bisect log git bisect start # good: [40dc905fac617f06e69fe803a8313fa5e6a953b7] Release 1.6.2. git bisect good 40dc905fac617f06e69fe803a8313fa5e6a953b7 # bad: [24a730187e08699b51c698d4fed58ba2947f0c5d] Release 1.8.2. git bisect bad 24a730187e08699b51c698d4fed58ba2947f0c5d # skip: [50dc4cd636cc88031e0a49697ccc9f03b398e449] Release 1.6. git bisect skip 50dc4cd636cc88031e0a49697ccc9f03b398e449 # bad: [5077d8c1371fe3e8e263119a6cc05d0e9766cdba] msvcrt: Added _fseeki64_nolock implementation. git bisect bad 5077d8c1371fe3e8e263119a6cc05d0e9766cdba # good: [1abafbffda7a1db8ba76a73a31569413c14c6440] oleaut32: Use CoTaskMem* when dealing with CUSTDATA. git bisect good 1abafbffda7a1db8ba76a73a31569413c14c6440 # bad: [0eebe0515f76f912da3c2e39693a44075e7d2a51] wined3d: Fix a couple of string declarations. git bisect bad 0eebe0515f76f912da3c2e39693a44075e7d2a51 # good: [9809a3670c50723e9b5a63fbd05b1cf06408eb4c] d3dx9/tests: Check if D3DFMT_X1R5G5B5 is supported. git bisect good 9809a3670c50723e9b5a63fbd05b1cf06408eb4c # good: [bd262c606a5dca79aa2ec0d863bad04e4b776087] user32: Added RegisterPowerSettingNotification() stub. git bisect good bd262c606a5dca79aa2ec0d863bad04e4b776087 # good: [32da6626f562146c0fd1d8550c60995359b2a0da] kernel32: Allow CompareStringEx LINGUISTIC_IGNORECASE flag. git bisect good 32da6626f562146c0fd1d8550c60995359b2a0da # bad: [2005be6dc92c0943ede01525cecad88f8e83c9c7] shell32: Use CREATE_NEW_CONSOLE when SEE_MASK_NOCONSOLE is omitted. git bisect bad 2005be6dc92c0943ede01525cecad88f8e83c9c7 # bad: [f7635f17b3cabf81b05ad948a107a8810a4f31ab] mshtml: Added IHTMLElementCollection::get__newEnum implementation. git bisect bad f7635f17b3cabf81b05ad948a107a8810a4f31ab # bad: [68f2b878d27f9ea9065ad3b96f16fa408d8b85e6] user32: Allow EndMenu() calls from WM_ENTERMENULOOP. git bisect bad 68f2b878d27f9ea9065ad3b96f16fa408d8b85e6 # good: [b2ab6822345af253b911f9e48119e9435d53698e] d3d8/tests: Use a separate device for test_scalar_instructions(). git bisect good b2ab6822345af253b911f9e48119e9435d53698e # good: [5e7251b9377d37c17968b82147b1b2eb3e7b3a7b] ole32: Revert part of 3cb0c81336. git bisect good 5e7251b9377d37c17968b82147b1b2eb3e7b3a7b # good: [3a7bf4a34b82f1857f40f482890e148d7dd9e30a] msvcr70: Share the source code with msvcrt. git bisect good 3a7bf4a34b82f1857f40f482890e148d7dd9e30a # bad: [09721acaea4bf6b95b72c49540aa6cdc667c684d] msvcr80: Share the source code with msvcrt. git bisect bad 09721acaea4bf6b95b72c49540aa6cdc667c684d # bad: [e57a4e94909eede1d7e84bb092d5cc93fc8b9b22] msvcr71: Share the source code with msvcrt. git bisect bad e57a4e94909eede1d7e84bb092d5cc93fc8b9b22 # first bad commit: [e57a4e94909eede1d7e84bb092d5cc93fc8b9b22] msvcr71: Share the source code with msvcrt.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #16 from xekhz pedro.m.ferreira@gmail.com --- using the native msvcr71 the software works as excepected.
https://bugs.winehq.org/show_bug.cgi?id=40511
xekhz pedro.m.ferreira@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=40511
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #17 from Wylda wylda@volny.cz --- To confirm, that this is a regression can you try wine-1.6.2 with built-in msvcr71?
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #18 from xekhz pedro.m.ferreira@gmail.com --- with built in msvcr71 it works. wine 1.6.2 is what i use in my production enviorment
https://bugs.winehq.org/show_bug.cgi?id=40511
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |e57a4e94909eede1d7e84bb092d | |5cc93fc8b9b22
https://bugs.winehq.org/show_bug.cgi?id=40511
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #19 from Piotr Caban piotr.caban@gmail.com --- I've sent a patch that should fix this bug: http://source.winehq.org/patches/data/122132 The application installs with it on my computer.
It was never working with builtin msvcr71 (the patch changed that bultin instead of native dll is loaded by default). After this patch you need to add msvcr71=n,b override in winecfg to use native msvcr71.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #20 from xekhz pedro.m.ferreira@gmail.com --- I dont know if the patch was applyed the correct away
but doing msvcr71 = n,b it works.
removing msvcr71 in winecfg the application does not work
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #21 from Piotr Caban piotr.caban@gmail.com --- Please retest in wine 1.9.10. If the application is still not working - please describe how to reproduce the issue.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #22 from xekhz pedro.m.ferreira@gmail.com --- Wine 1.9.10 from source ? ( https://dl.winehq.org/wine/source/1.9/wine-1.9.1.tar.bz2 )
or in git ?
Just to clarify adding msvcr71 = n,b in winecfg -> libraries my problem is solved in every version of wine
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #23 from xekhz pedro.m.ferreira@gmail.com --- Git identified the faulty version until this bad commit: [e57a4e94909eede1d7e84bb092d5cc93fc8b9b22] msvcr71:
i did not have to add msvcr71 = n,b to the libraries in winecfg
in newer version my app only works if i add the msvcr71 = n,b
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #24 from Piotr Caban piotr.caban@gmail.com --- (In reply to xekhz from comment #23)
in newer version my app only works if i add the msvcr71 = n,b
I understand that in wine 1.9.10 you still need to add msvcr71=n,b?
Please describe how we can reproduce the problem. Keep in mind that I don't understand applications language so I need a detailed description.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #25 from xekhz pedro.m.ferreira@gmail.com --- The only way you can reproduce the error is if i give you teamviewer access to a pc. It is a Portuguese public administration application.
To awnser your question: In wine 1.9.10 downloaded from https://dl.winehq.org/wine/source/1.9/wine-1.9.1.tar.bz2 ( 2016-01-09 03:31 ) I still need to add the mscvr71 = n,b .
keep in mind that 2016-01-09 is prior to my detection of the bug 2016-04-21 and the faulty version is in version 1.7....something
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #26 from Bruno Jesus 00cpxxx@gmail.com --- Explica em português então que eu passo as instruções pro resto do pessoal.
------
Explain in portuguese then and I will forward the instructions to everybody.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #27 from Piotr Caban piotr.caban@gmail.com --- (In reply to Bruno Jesus from comment #26)
Explica em português então que eu passo as instruções pro resto do pessoal.
Explain in portuguese then and I will forward the instructions to everybody.
As far as I understand language is not the problem - probably it can't be reproduced without access to some data-base (or something like that).
xekhz - could you please attach a WINEDEBUG=relay,tid,pid,seh log. It may be quite big so you may need to compress it and upload to some external file hosting page.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #28 from xekhz pedro.m.ferreira@gmail.com --- The debug is 140 MB gziped download the log file from
http://213.228.143.2/tmp/debug_wine_1.9.1.log.gz
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #29 from Piotr Caban piotr.caban@gmail.com --- (In reply to xekhz from comment #28)
The log is generated with wine older then 1.9.10. It still has bug in mbtowc call that was fixed by a36b5f0741ac7e6a44aaa9d804ebdb7524186723 commit.
Relevant part of log: 0008:0009:Call msvcr71.mbtowc(0033dc48,01003cec ".",00000003) ret=10caf796 0008:0009:Call KERNEL32.MultiByteToWideChar(000004e4,00000000,01003cec ".",00000003,0033db7e,00000001) ret=7eb601d5 0008:0009:Ret KERNEL32.MultiByteToWideChar() retval=00000000 ret=7eb601d5 0008:0009:Ret msvcr71.mbtowc() retval=ffffffff ret=10caf796
(in current code mbtowc will never call MultiByteToWideChar with 4th parameter == 3).
Please attach log running wine 1.9.10.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #30 from xekhz pedro.m.ferreira@gmail.com --- I made a mistake. another one :) i downloaded version 1.9.1 instead 1.9.10.. But im glad to inform that in version 1.9.10.. the application works. I dont have to add msvcr71 = n,b in winecfg.
https://bugs.winehq.org/show_bug.cgi?id=40511
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |a36b5f0741ac7e6a44aaa9d804e | |bdb7524186723
--- Comment #31 from Piotr Caban piotr.caban@gmail.com --- Marking as fixed.
https://bugs.winehq.org/show_bug.cgi?id=40511
--- Comment #32 from xekhz pedro.m.ferreira@gmail.com --- thanks for the help given...
https://bugs.winehq.org/show_bug.cgi?id=40511
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #33 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.11.
https://bugs.winehq.org/show_bug.cgi?id=40511
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=40511
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #34 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.4.