[Bug 32169] Multiple 64-bit applications crash on startup (GetLocaleInfo() returns improper TCHAR count for LOCALE_IFIRSTDAYOFWEEK) (PowerGrep v4.x, RegexBuddy 4.x)

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Dec 9 11:50:26 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=32169

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|PowerGrep v4.x 64-bit       |Multiple 64-bit
                   |crashes on startup          |applications crash on
                   |(GetLocaleInfo() returns    |startup (GetLocaleInfo()
                   |improper TCHAR count for    |returns improper TCHAR
                   |LOCALE_IFIRSTDAYOFWEEK)     |count for
                   |                            |LOCALE_IFIRSTDAYOFWEEK)
                   |                            |(PowerGrep v4.x, RegexBuddy
                   |                            |4.x)

--- Comment #7 from Anastasius Focht <focht at gmx.net> 2013-12-09 11:50:26 CST ---
Hello folks,

the 64-bit version of RegexBuddy 4.0.x also suffers from this.

There is a section on the website "Running RegexBuddy on Linux Using Wine"
(http://www.regexbuddy.com/wine.html), stating "The 64-bit version of wine has
bugs that break 64-bit RegexBuddy." so I investigated this.

Download: http://www.regexbuddy.com/cgi-bin/SetupRegexBuddyDemo.exe (combined
32-bit and 64-bit installer)

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Just Great Software/RegexBuddy4

$ file *.exe
RegexBuddy4.exe: PE32+ executable (GUI) x86-64, for MS Windows
UnDeploy64.exe:  PE32+ executable (GUI) x86-64, for MS Windows

$ WINEDEBUG=+tid,+seh,+relay,+resource wine ./RegexBuddy4.exe >>log.txt 2>&1
...
0026:Call KERNEL32.IsWow64Process(ffffffffffffffff,0023fbac) ret=006e442d
0026:Ret  KERNEL32.IsWow64Process() retval=00000001 ret=006e442d
0026:Call KERNEL32.GetThreadLocale() ret=006e47a6
0026:Ret  KERNEL32.GetThreadLocale() retval=00000409 ret=006e47a6
0026:Call KERNEL32.GetLocaleInfoW(00000409,0000100c,00000000,00000000)
ret=006e4702
0026:Ret  KERNEL32.GetLocaleInfoW() retval=00000003 ret=006e4702
0026:Call KERNEL32.GetLocaleInfoW(00000409,0000100c,0137e8a0,00000003)
ret=006e473c
0026:Ret  KERNEL32.GetLocaleInfoW() retval=00000002 ret=006e473c
0026:Call user32.LoadStringW(00400000,0000ff6a,0023da70,00001000) ret=00412687
0026:trace:resource:LoadStringW instance = 0x400000, id = ff6a, buffer =
0x23da70, length = 4096
0026:trace:resource:FindResourceExW 0x400000 #0006 #0ff7 0000
0026:trace:resource:LdrFindResource_U module 0x400000 type #0006 name #0ff7
lang 0000 level 3
0026:trace:resource:find_entry_by_id root 0x1040000 dir 0x1040000 id 0006 ret
0x10403d0
0026:trace:resource:find_entry_by_id root 0x1040000 dir 0x10403d0 id 0ff7 ret
0x1042538
0026:trace:resource:find_entry_by_id root 0x1040000 dir 0x1042538 id 0000 ret
0x1043f68
0026:trace:resource:LoadResource 0x400000 0x1043f68
0026:trace:resource:LoadStringW strlen = 35
0026:trace:resource:LoadStringW L"''%s'' is not a valid integer value" loaded !
0026:Ret  user32.LoadStringW() retval=00000023 ret=00412687
0026:Call KERNEL32.RaiseException(0eedfade,00000001,00000007,0023fa68)
ret=0040b676
0026:trace:seh:raise_exception code=eedfade flags=1 addr=0x7b849fff ip=7b849fff
tid=0026
0026:trace:seh:raise_exception  info[0]=000000000042b432
0026:trace:seh:raise_exception  info[1]=0000000001390e30
0026:trace:seh:raise_exception  info[2]=0000000000000000
0026:trace:seh:raise_exception  info[3]=0000000000000000
0026:trace:seh:raise_exception  info[4]=0000000000000000
0026:trace:seh:raise_exception  info[5]=0000000000000000
0026:trace:seh:raise_exception  info[6]=0000000000000000
0026:trace:seh:raise_exception  rax=000000000023f7d0 rbx=0000000001390e30
rcx=000000000023f7d0 rdx=0000003c95f49fb2
0026:trace:seh:raise_exception  rsi=000000000023fa68 rdi=000000000023f7f0
rbp=000000000023f920 rsp=000000000023f7b0
0026:trace:seh:raise_exception   r8=0000000000000007  r9=000000000023fa68
r10=0000000000000000 r11=0000003c95f807e0
0026:trace:seh:raise_exception  r12=000000007bf00c50 r13=00007fff6fd4ff30
r14=0000000000000000 r15=0000000000000000 
...
Backtrace:
=>0 0x0000000000409659 in regexbuddy4 (+0x9659) (0x000000000023faa0)
  1 0x0000000000437438 in regexbuddy4 (+0x37437) (0x000000000023faa0)
  2 0x000000000040b656 in regexbuddy4 (+0xb655) (0x000000000023faa0)
  3 0x000000000040b6f8 in regexbuddy4 (+0xb6f7) (0x000000000023fbf0)
  4 0x000000000040b95c in regexbuddy4 (+0xb95b) (0x000000000023fbf0)
  5 0x000000000040b9da in regexbuddy4 (+0xb9d9) (0x000000000023fcb0)
  6 0x0000000000412eb2 in regexbuddy4 (+0x12eb1) (0x000000000023fcb0)
  7 0x0000000000dd7d45 in regexbuddy4 (+0x9d7d44) (0x000000000023fcb0) 
...
0x0000000000409659: movq    (%rcx),%rcx
Modules:
Module    Address                    Debug info    Name (91 modules)
PE              400000-         1260600    Export          regexbuddy4
ELF            7b800000-        7bc83000    Dwarf           kernel32<elf>
  \-PE            7b820000-        7bc83000    \               kernel32
ELF            7be00000-        7c103000    Dwarf           <wine-loader> 
...
Threads:
process  tid      prio (all id:s are in hex) 
...
00000025 (D) C:\Program Files\Just Great Software\RegexBuddy4\RegexBuddy4.exe
    00000026    0 <== 
--- snip ---

$ sha1sum SetupRegexBuddyDemo.exe 
b100d449df722b4c841eaeeb530c88566ab137e0  SetupRegexBuddyDemo.exe

$ du -sh SetupRegexBuddyDemo.exe 
12M    SetupRegexBuddyDemo.exe

$ wine --version
wine-1.7.8-128-g37460b6

Regards

-- 
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.



More information about the wine-bugs mailing list