[Bug 19799] New: cscript crashes if you call WScript.Arguments(0). Breaks Chromium build setup.
http://bugs.winehq.org/show_bug.cgi?id=19799 Summary: cscript crashes if you call WScript.Arguments(0). Breaks Chromium build setup. Product: Wine Version: 1.1.27 Platform: PC URL: http://src.chromium.org/viewvc/chrome/trunk/tools/depo t_tools/bootstrap/win/get_file.js?revision=14457&pathr ev=14457 OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: ole32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: dank(a)kegel.com Chromium has a nifty self-bootstrapping source code management script (see http://dev.chromium.org/developers/how-tos/install-gclient ) gclient downloads svn for you before it runs it. This used to use a little wget binary checked in to the source tree (!) but now uses a little javascript script, get_file.js http://src.chromium.org/viewvc/chrome/trunk/tools/depot_tools/bootstrap/win/... (which looks pretty similar to the vb in http://www.xefteri.com/articles/show.cfm?id=7 ) If you read the script, it's kind of scary; there's ADO and all sorts of weird shit going on, just to download a file. And since it uses cscript, I think you have to do 'winetricks wsh56' to try it. But guess what Wine fails on? After a little effort, I reduced that script down to the single line: WScript.Arguments(0); Yup, that crashes. But if you do 'winetricks dcom98', it succeeds. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 --- Comment #1 from Dan Kegel <dank(a)kegel.com> 2009-08-20 22:27:49 --- Created an attachment (id=23195) --> (http://bugs.winehq.org/attachment.cgi?id=23195) Log of WINETRICKS=+ole,+relay,+seh cscript myfunc.js a b c -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 --- Comment #2 from Dan Kegel <dank(a)kegel.com> 2009-08-20 22:37:52 --- Hmm. Can't reproduce the success I had with dcom98. Still, it looks like an ole32 error. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 Rob Shearman <robertshearman(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|ole32 |oleaut32 --- Comment #3 from Rob Shearman <robertshearman(a)gmail.com> 2009-11-16 17:35:18 --- Looks like a problem with typelibs. Possibly Invoke being called on the wrong ITypeInfo object: err:ole:ITypeInfo_fnInvoke did not find member id 1002, flags 0x1! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 --- Comment #4 from Dan Kegel <dank(a)kegel.com> 2010-01-15 12:44:58 --- I'm bumping up against this one again now that Visual C++ 2005 is working. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 --- Comment #5 from Dan Kegel <dank(a)kegel.com> 2010-01-15 12:55:17 --- If you bypass this by replacing cscript //nologo //e:jscript "%~dp0get_file.js" %WIN_TOOLS_ROOT_URL%/third_party/svn_bin.zip "%~dp0svn.zip" with c:\cygwin\bin\wget %WIN_TOOLS_ROOT_URL%/third_party/svn_bin.zip a similar error comes up again running win_tools.bat is on a little javascript to unzip that file: C:\chromium\depot_tools\bootstrap\win>cscript //nologo //e:jscript "C:\chromium\depot_tools\bootstrap\win\unzip.js" "C:\chromium\depot_tools\bootstrap\win\svn.zip" "C:\chromium\depot_tools" ... err:ole:ITypeInfo_fnInvoke did not find member id 0, flags 0x2! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 --- Comment #6 from Dan Kegel <dank(a)kegel.com> 2010-01-15 18:31:28 --- You can bypass that second problem by replacing cscript //nologo //e:jscript "%~dp0unzip.js" "%~dp0svn.zip" "%WIN_TOOLS_ROOT_DIR%" with c:\cygwin\bin\unzip svn_bin.zip -d ../.. The next problem in Chromium's build env scripts is then bug 21382. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 --- Comment #7 from Austin English <austinenglish(a)gmail.com> 2012-04-03 15:09:13 CDT --- The steps to reproduce this aren't exactly clear. I did: austin(a)aw25 ~ $ cat foo.wsf WScript.Arguments(0); austin(a)aw25 ~ $ wine cscript foo.wsf ; echo $? fixme:cscript:wWinMain (0x7eff0000 (nil) L"foo.wsf" 1) forwarding to wscript 1 but no crash. Trying that in an older wine (1.3.1) shows a failure, but no crash (that uses ms cscript.exe). -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx(a)gmail.com --- Comment #8 from Bruno Jesus <00cpxxx(a)gmail.com> 2013-01-29 12:43:24 CST --- Maybe this patch helps: http://source.winehq.org/git/wine.git/?a=commit;h=cc796b9569e6769225005e33dd... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek(a)codeweavers.com Summary|cscript crashes if you call |Native cscript crashes if |WScript.Arguments(0). |you call |Breaks Chromium build |WScript.Arguments(0). |setup. |Breaks Chromium build | |setup. --- Comment #9 from Jacek Caban <jacek(a)codeweavers.com> 2013-01-29 13:19:37 CST --- The bug report was about native cscript (the bug itself predates Wine's implementation). -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Dan Kegel <dank(a)kegel.com> 2013-01-29 14:38:56 CST --- I've updated winetricks wsh57 to override cscript and wscript. With today's wine and winetricks, doing 'winetricks wsh57' and 'wine cscript foo.js a b c' no longer seems to crash. Marking fixed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19799 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #11 from Alexandre Julliard <julliard(a)winehq.org> 2013-02-01 04:55:00 CST --- Closing bugs fixed in 1.5.23. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org