wine crashes at startup

Questions about Wine on Linux
Locked
Barto
Newbie
Newbie
Posts: 2
Joined: Sat Nov 08, 2014 3:39 am

wine crashes at startup

Post by Barto »

Hello,

my configuration :

archlinux 64 bits
cpu pentium dual core E6800 3.33 Ghz
ati radeon HD4650 PCIe ( radeon open source driver )
4 Gb ram


with wine 1.7.30 I notice a crash at startup when I want to run windows programs :

Code: Select all

*** Error in `program_name': free(): invalid next size (fast): 0x7d9d72f8 ***
wine: Unhandled page fault on read access to 0x00721730 at address 0x7ffdf000:0x00404066 (thread 0023), starting debugger...
winecfg can run but I am unable to run windows program with the command "wine name_of_the_program",

the problem occurs only if the windows program is a GUI program ( graphical interface ), if it's a windows program console ( "hello word" for example ) then I have no crash,

for example I get a crash at startup if I type "wine notepad", I get this error :

Code: Select all

*** Error in `notepad': free(): invalid next size (fast): 0x7cebc2b8 ***
Unhandled exception: page fault on read access to 0x6779785b in 32-bit code (0xf7431a78).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:f7431a78 ESP:0033d5e0 EBP:7cebc2b0 EFLAGS:00010206(  R- --  I   - -P- )
 EAX:6779784f EBX:f7574000 ECX:f7574840 EDX:575f6e65
 ESI:00000048 EDI:7cebc278
Stack dump:
0x0033d5e0:  00000010 7cebc250 f7574870 f7574000
0x0033d5f0:  f751e1e3 f7574854 00000000 f757486c
0x0033d600:  00000000 00000000 f7431a09 f7574000
0x0033d610:  f7574840 00018e60 f7574840 f7432e90
0x0033d620:  00000000 20000000 00000280 ffffffff
0x0033d630:  00000000 00000000 00000042 0000027a
000c: sel=0067 base=00000000 limit=00000000 16-bit r-x
Backtrace:
=>0 0xf7431a78 malloc_consolidate+0x78() in libc.so.6 (0x7cebc2b0)
  1 0xf7432e90 _int_malloc+0x14f() in libc.so.6 (0xf7574840)
  2 0xf743591f __calloc+0xbe() in libc.so.6 (0x7cef21a0)
  3 0xf7758423 _dl_new_object+0x62() in ld-linux.so.2 (0x0000000d)
  4 0xf7753d98 _dl_map_object_from_fd+0x167() in ld-linux.so.2 (0x0033d7f8)
  5 0xf775604c _dl_map_object+0x20b() in ld-linux.so.2 (0x0033d85c)
  6 0xf7760c1f dl_open_worker+0xae() in ld-linux.so.2 (0x0033dae8)
  7 0xf775caa5 _dl_catch_error+0x74() in ld-linux.so.2 (0x0033dc48)
  8 0xf7760609 _dl_open+0x98() in ld-linux.so.2 (0x0033dc48)
  9 0xf74df89e do_dlopen+0x3d() in libc.so.6 (0x0033dde8)
  10 0xf775caa5 _dl_catch_error+0x74() in ld-linux.so.2 (0x0033dde8)
  11 0xf74df967 dlerror_run+0x36() in libc.so.6 (0x0033dde8)
  12 0xf74df9ee __GI___libc_dlopen_mode+0x3d() in libc.so.6 (0x0033dde8)
  13 0xf74b76e3 init+0x22() in libc.so.6 (0x0033dde8)
  14 0xf758473e pthread_once+0x8d() in libpthread.so.0 (0x0033de88)
  15 0xf74b7953 __GI___backtrace+0x122() in libc.so.6 (0x0033de88)
  16 0xf73d7930 backtrace_and_maps+0x2f() in libc.so.6 (0x0033e538)
  17 0xf742bcd9 __libc_message+0x288() in libc.so.6 (0x0033e538)
  18 0xf7431927 malloc_printerr+0xa6() in libc.so.6 (0xf7574840)
  19 0xf743210d _int_free+0x10c() in libc.so.6 (0xf7574840)
  20 0x7df3c467 in libxcursor.so.1 (+0x6466) (0x7cebc2b8)
  21 0x7df3c61d XcursorLibraryLoadImages+0x7c() in libxcursor.so.1 (0x00000015)
  22 0x7df3c6cc XcursorLibraryLoadCursor+0x3b() in libxcursor.so.1 (0x00000015)
  23 0x7df3d124 XcursorTryShapeBitmapCursor+0x103() in libxcursor.so.1 (0x7df3d6bd)
  24 0x7dfa7c24 _XTryShapeBitmapCursor+0xc3() in libx11.so.6 (0x0033e800)
  25 0x7dfa716e XCreatePixmapCursor+0x4d() in libx11.so.6 (0x0033e800)
  26 0x7e13d8f9 in winex11 (+0x2d8f8) (0x0033e828)
  27 0x7e13f645 in winex11 (+0x2f644) (0x0033e868)
  28 0x7e13f71a in winex11 (+0x2f719) (0x0033e938)
  29 0x7e1539d4 in winex11 (+0x439d3) (0x0033f1e8)
  30 0x7e1548c1 X11DRV_WindowPosChanging+0x3a0() in winex11 (0x0033f268)
  31 0x7e9536f8 in user32 (+0x936f7) (0x0033f3b8)
  32 0x7e94f602 in user32 (+0x8f601) (0x0033f578)
  33 0x7e949025 CreateWindowExW+0x84() in user32 (0x0033f5f8)
  34 0x7eda8d4a WinMain+0xaf9() in notepad (0x0033fd38)
  35 0x7eda3ba4 main+0xd3() in notepad (0x0033fdd8)
  36 0x7eda955f in notepad (+0x955e) (0x0033fe28)
  37 0x7b85c64c call_process_entry+0xb() in kernel32 (0x0033fe48)
  38 0x7b85d74a in kernel32 (+0x4d749) (0x0033fe78)
  39 0x7bc7c640 call_thread_func_wrapper+0xb() in ntdll (0x0033fe98)
  40 0x7bc7f6bf call_thread_func+0xde() in ntdll (0x0033ff88)
  41 0x7bc7c61e RtlRaiseException+0x21() in ntdll (0x0033ffb8)
  42 0x7bc51451 call_dll_entry_point+0x440() in ntdll (0x0033ffd8)
  43 0xf759da8d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  44 0xf759dc0a wine_switch_to_stack+0x29() in libwine.so.1 (0xff952a18)
  45 0x7bc56c05 LdrInitializeThunk+0x1f4() in ntdll (0xff952a68)
  46 0x7b8636f2 __wine_kernel_init+0x871() in kernel32 (0xff953bd8)
  47 0x7bc57a63 __wine_process_init+0x162() in ntdll (0xff953c48)
  48 0xf759b643 wine_init+0x2f2() in libwine.so.1 (0xff953cb8)
  49 0x7bf00db2 main+0x81() in <wine-loader> (0xff954118)
  50 0xf73d7e5e __libc_start_main+0xdd() in libc.so.6 (0x00000000)
0xf7431a78 malloc_consolidate+0x78 in libc.so.6: cmpl   0xc(%eax),%ebp
I tried to delete ~/.wine but I still get the crash,

I tried to create a new user ( in order to have an new /home ) but it doesn't help, I still get the same error,

I create a bugreport in archlinux's bugzilla but I don't find the solution :

https://bugs.archlinux.org/task/42709
Barto
Newbie
Newbie
Posts: 2
Joined: Sat Nov 08, 2014 3:39 am

Re: wine crashes at startup

Post by Barto »

I found the solution,

it was a strange bug in X server related to icon theme cursor,

in /usr/share/icons/default/index.theme I have set a custom icon theme for the X server :

Code: Select all

[Icon Theme]
Inherits=Oxygen_White
when I saw the word "libXcursor" in the backtrace it gives me an idea : cancel my setting and set the original icon theme :

Code: Select all

[Icon Theme]
Inherits=Adwaita
and now the bug is gone, wine runs without problems !

it's very strange that a valid icon theme ( Oxygen_White ) can trigger such a severe bug in wine
Locked