https://bugs.winehq.org/show_bug.cgi?id=37314
Bug ID: 37314 Summary: Error while installing LINIA surveilance application. Product: Wine Version: 1.6.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: teh@nas.tver.ru
Created attachment 49624 --> https://bugs.winehq.org/attachment.cgi?id=49624 Backtrace files of application
Error while installing and launching LINIA surveilance application (www.devline.ru). Installation process and application working properly in wine under Linux Mint 9. Now, in LM17, it fails.
https://bugs.winehq.org/show_bug.cgi?id=37314
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL| |http://www.devline.ru/soft/ | |linia-6.9.6-ru.exe Keywords| |download, Installer Component|-unknown |msvcp CC| |focht@gmx.net Ever confirmed|0 |1 Summary|Error while installing |Linia v6.9.x (surveillance |LINIA surveilance |application) installation |application. |fails due to | |msvcp90.locale_ctor_locale_ | |cstr stub Severity|critical |normal
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+msvcrt,+msvcp wine ./linia-6.9.6-ru.exe >>log.txt 2>&1 ... 0036:Call KERNEL32.CreateProcessW(00000000,0040b0c8 L""C:\Program Files\DevLine\Linia SKW\kernel.exe" /b",00000000,00000000,00000000,00000000,00000000,00000000,00457288,00fde664) ret=00405dca ... 0030:Call KERNEL32.__wine_kernel_init() ret=7bc5a00d 0036:Ret KERNEL32.CreateProcessW() retval=00000001 ret=00405dca ... 0030:Call msvcp90.??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z(0033f90c,01e8e5d8 L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg",00000021,00000040,00000000) ret=00466b43 0030:trace:msvcp:basic_ifstream_char_ctor_name_wchar (0x33f90c L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg" 33 64 0) 0030:trace:msvcp:basic_ifstream_char_ctor (0x33f90c 0) 0030:trace:msvcp:basic_filebuf_char_ctor_file (0x33f914 (nil)) 0030:trace:msvcp:basic_streambuf_char_ctor (0x33f914) ... 0030:trace:msvcp:basic_filebuf_char_open_wchar (0x33f914 L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg" 33 64) 0030:trace:msvcp:basic_filebuf_char_is_open (0x33f914) 0030:trace:msvcp:_Fiopen_wchar (L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg" 33 64) 0030:Call msvcr90._wfsopen(01e8e5d8 L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg",7dc81f7c L"rb",00000040) ret=7dc27513 0030:trace:msvcrt:MSVCRT__wfsopen (L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg",L"rb") 0030:trace:msvcrt:msvcrt_get_flags L"rb" 0030:trace:msvcrt:MSVCRT__wsopen_s fd*: 0x33f6b8 :file (L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg") oflags: 0x8000 shflags: 0x0040 pmode: 0x0000 0030:Call KERNEL32.CreateFileW(01e8e5d8 L"C:\Program Files\DevLine\Linia SKW\CFG\CURRENT\kernel-log.cfg",80000000,00000003,0033f5dc,00000003,00000080,00000000) ret=7dd9156e 0030:Ret KERNEL32.CreateFileW() retval=ffffffff ret=7dd9156e 0030:warn:msvcrt:MSVCRT__wsopen_s :failed-last error (2) 0030:trace:msvcrt:MSVCRT__wfsopen :got ((nil)) 0030:Ret msvcr90._wfsopen() retval=00000000 ret=7dc27513 0030:trace:msvcp:basic_ios_char_setstate_reraise (0x33f964 2 0) 0030:trace:msvcp:basic_ios_char_clear_reraise (0x33f964 2 0) 0030:trace:msvcp:ios_base_clear_reraise (0x33f964 2 0) 0030:Ret msvcp90.??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z() retval=0033f90c ret=00466b43 ... 0030:Call msvcp90.??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ(0033f99c,00000000) ret=005a6237 ... 0030:Ret msvcp90.??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ() retval=0033f99c ret=005a6237 0030:Call msvcp90.??0locale@std@@QAE@XZ(0033f8fc) ret=005a5bc4 0030:trace:msvcp:locale_ctor (0x33f8fc) 0030:trace:msvcp:locale__Init 0030:trace:msvcp:locale_facet__Incref (0x1e61520) 0030:Ret msvcp90.??0locale@std@@QAE@XZ() retval=0033f8fc ret=005a5bc4 0030:Call msvcp90.??0locale@std@@QAE@ABV01@PBDH@Z(0033f900,0033f8fc,00c3d6fc "",00000002) ret=005a5bde 0030:fixme:msvcp:locale_ctor_locale_cstr (0x33f900 0x33f8fc 2) stub 0030:Ret msvcp90.??0locale@std@@QAE@ABV01@PBDH@Z() retval=00000000 ret=005a5bde 0030:Call msvcp90.?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z(0033f9f4,0033f904,00000000) ret=005a5c03 0030:trace:msvcp:basic_ios_wchar_imbue (0x33f9f4 0x33f904 (nil)) 0030:trace:msvcp:basic_streambuf_wchar_pubimbue (0x33f9a4 (nil)) 0030:Call msvcr90.memcpy(0033f904,01e8ee40,00000004) ret=7dc25886 0030:Ret msvcr90.memcpy() retval=0033f904 ret=7dc25886 0030:trace:msvcp:basic_filebuf_wchar_imbue (0x33f9a4 (nil)) 0030:trace:msvcp:locale_id_operator_size_t (0x7dd0cd74) 0030:trace:msvcp:locale__Getfacet ((nil) 1) 0030:trace:seh:raise_exception code=c0000005 flags=0 addr=0x7dc633a4 ip=7dc633a4 tid=0030 0030:trace:seh:raise_exception info[0]=00000000 0030:trace:seh:raise_exception info[1]=00000000 0030:trace:seh:raise_exception eax=00000000 ebx=7dccd000 ecx=00000000 edx=7bcecbc8 esi=0033f8e8 edi=0033f8ac 0030:trace:seh:raise_exception ebp=0033f7a8 esp=0033f770 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010202 0030:trace:seh:call_stack_handlers calling handler at 0xbbfb2b code=c0000005 flags=0 0030:trace:seh:call_stack_handlers handler at 0xbbfb2b returned 1 ... --- snip ---
It failure to open/read the input stream 'kernel-log.cfg' is expected.
The problem here is Wine's 'locale_ctor_locale_cstr' stub, returning NULL. Imbue with NULL locale obviously doesn't work.
Source: http://source.winehq.org/git/wine.git/blob/2b2a3338eea8fc9356fe48938eed2aca3...
--- snip --- 9956 /* ??0locale@std@@QAE@ABV01@PBDH@Z */ 9957 /* ??0locale@std@@QEAA@AEBV01@PEBDH@Z */ 9958 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_cstr, 16) 9959 locale* __thiscall locale_ctor_locale_cstr(locale *this, const locale *loc, const char *locname, category cat) 9960 { 9961 FIXME("(%p %p %s %d) stub\n", this, loc, locname, cat); 9962 return NULL; 9963 } --- snip ---
'winetricks -q vcrun2008' works around.
$ sha1sum linia-6.9.6-ru.exe 797d1e5948d407ad4f37be90a7ebeae9079283b0 linia-6.9.6-ru.exe
$ du -sh linia-6.9.6-ru.exe 28M linia-6.9.6-ru.exe
$ wine --version wine-1.7.27-47-g92bcb74
Regards
https://bugs.winehq.org/show_bug.cgi?id=37314
Pavel teh@nas.tver.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |teh@nas.tver.ru
https://bugs.winehq.org/show_bug.cgi?id=37314
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d274fdb029ed7bfeee9d5bdd0d2 | |8ca9c61641659 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit http://source.winehq.org/git/wine.git/commitdiff/d274fdb029ed7bfeee9d5bdd0d2...
Thanks Piotr
Regards
https://bugs.winehq.org/show_bug.cgi?id=37314
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.29.
https://bugs.winehq.org/show_bug.cgi?id=37314
--- Comment #4 from Pavel teh@nas.tver.ru --- How to apply this chandes to wine to make app workable? Updating the wine from repository doesn't make any effect.