Re: winedbg --gdb shows multiple segfaults during any app startup

2010-12-10 Thread Paul Chitescu
On Friday 10 December 2010 08:57:15 pm Ilya Basin wrote:
> In both 1.3.8 and git winedbg --gdb or plain gdb catches several
> segfaults, but if I ignore them, the program works.
>
> $ CC="ccache gcc" ./configure CFLAGS="-g -O0"
> make
> ./wine winedbg.exe --gdb notepad
>
> Wine-gdb> cont
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x7e942cf4 in create_alpha_bitmap (color=0x33c, mask=0x338,
> src_info=0x1319a8, color_bits=0x7ebf411c) at cursoricon.c:664 664  
>   ptr[0] = ptr[0] * alpha / 255;
> Wine-gdb>
> Continuing.
> ...
> Program exited normally.
> Wine-gdb> quit

These faults are normal, they are part of how wine more-or-less transparently 
switches access to GDI bitmaps data.





winedbg --gdb shows multiple segfaults during any app startup

2010-12-10 Thread Ilya Basin
In both 1.3.8 and git winedbg --gdb or plain gdb catches several
segfaults, but if I ignore them, the program works.

$ CC="ccache gcc" ./configure CFLAGS="-g -O0"
make
./wine winedbg.exe --gdb notepad

Wine-gdb> cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x7e942cf4 in create_alpha_bitmap (color=0x33c, mask=0x338, src_info=0x1319a8, 
color_bits=0x7ebf411c) at cursoricon.c:664
664 ptr[0] = ptr[0] * alpha / 255;
Wine-gdb> 
Continuing.
...
Program exited normally.
Wine-gdb> quit
[...@il wine-git]$ wine winedbg.exe --gdb notepad
001a:001b: create process 'C:\windows\system32\notepad.exe'/0x1106d0 
@0x7ed97360 (0<0>)
001a:001b: create thread I @0x7ed97360
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
.
001a:001b: loads DLL C:\windows\system32\KERNEL32.dll @0x7b81 (0<0>)
001a:001b: loads DLL C:\windows\system32\ntdll.dll @0x7bc1 (0<0>)
001a:001b: loads DLL C:\windows\system32\advapi32.dll @0x7e82 (0<0>)
001a:001b: loads DLL C:\windows\system32\gdi32.dll @0x7e88 (0<0>)
001a:001b: loads DLL C:\windows\system32\version.dll @0x7eff (0<0>)
001a:001b: loads DLL C:\windows\system32\user32.dll @0x7e92 (0<0>)
001a:001b: loads DLL C:\windows\system32\shlwapi.dll @0x7ea7 (0<0>)
001a:001b: loads DLL C:\windows\system32\comctl32.dll @0x7e72 (0<0>)
001a:001b: loads DLL C:\windows\system32\shell32.dll @0x7ead (0<0>)
001a:001b: loads DLL C:\windows\system32\winspool.drv @0x7e6e (0<0>)
001a:001b: loads DLL C:\windows\system32\comdlg32.dll @0x7ecc (0<0>)
001a:001b: loads DLL C:\windows\system32\msvcrt.dll @0x7e66 (0<0>)
001a:001b: loads DLL C:\windows\system32\imm32.dll @0x7e20 (0<0>)
001a:001b: loads DLL C:\windows\system32\winex11.drv @0x7e39 (0<0>)
001a:001b: loads DLL C:\windows\system32\uxtheme.dll @0x7e1b (0<0>)
001a:001b: exception code=0xc005
Unknown or malformed query Attached
0x7e942cf4 in create_alpha_bitmap (color=0x318, mask=0x314, src_info=0x131808, 
color_bits=0x7ebf5854) at cursoricon.c:664
664 ptr[0] = ptr[0] * alpha / 255;
trace: 98 => 80
Wine-gdb> cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x7e942cf4 in create_alpha_bitmap (color=0x33c, mask=0x338, src_info=0x1319a8, 
color_bits=0x7ebf411c) at cursoricon.c:664
664 ptr[0] = ptr[0] * alpha / 255;
Wine-gdb> bt
#0  0x7e942cf4 in create_alpha_bitmap (color=0x33c, mask=0x338, 
src_info=0x1319a8, color_bits=0x7ebf411c) at cursoricon.c:664
#1  0x7e943134 in create_icon_bitmaps (bmi=0x7ebf40f4, width=32, height=32, 
color=0x33fa04, mask=0x33fa00, alpha=0x33f9fc) at cursoricon.c:730
#2  0x7e9434c5 in CURSORICON_CreateIconFromBMI (bmi=0x7ebf40f4, 
module=0x7ead, resname=0x1, rsrc=0x7eb7f130, hotspot=..., bIcon=1, 
width=32, height=32, cFlag=32768) at cursoricon.c:801
#3  0x7e9448c5 in CURSORICON_Load (hInstance=0x7ead, name=0x1, width=32, 
height=32, depth=32, fCursor=0, loadflags=32768) at cursoricon.c:1254
#4  0x7e947a31 in LoadImageW (hinst=0x7ead, name=0x1, type=1, desiredx=32, 
desiredy=32, loadflags=32768) at cursoricon.c:2292
#5  0x7e9476a9 in LoadImageA (hinst=0x7ead, name=0x1 , type=1, desiredx=32, desiredy=32, loadflags=32768) at cursoricon.c:2233
#6  0x7eafc2cc in SIC_Initialize () at iconcache.c:419
#7  0x7eb096d4 in DllMain (hinstDLL=0x7ead, fdwReason=1, fImpLoad=0x1) at 
shell32_main.c:1197
#8  0x7eb55caa in __wine_spec_dll_entry (inst=0x7ead, reason=1, 
reserved=0x1) at dll_entry.c:40
#9  0x7bc4d1a9 in call_dll_entry_point () at loader.c:137
#10 0x7bc4f472 in MODULE_InitDLL (wm=0x1107e8, reason=1, lpReserved=0x1) at 
loader.c:982
#11 0x7bc4f7f8 in process_attach (wm=0x1107e8, lpReserved=0x1) at loader.c:1071
#12 0x7bc4f7a4 in process_attach (wm=0x110620, lpReserved=0x1) at loader.c:1063
#13 0x7bc4f7a4 in process_attach (wm=0x1106a8, lpReserved=0x1) at loader.c:1063
#14 0x7bc537bf in attach_process_dlls (wm=0x1106a8) at loader.c:2539
#15 0xb7675e31 in wine_call_on_stack () at port.c:84
#16 0x7bc53d65 in LdrInitializeThunk (kernel_start=0x7b85cf7a, unknown2=0, 
unknown3=0, unknown4=0) at loader.c:2661
#17 0x7b85d8ba in __wine_kernel_init () at process.c:1166
#18 0x7bc54560 in __wine_process_init () at loader.c:2876
#19 0xb7674711 in wine_init (argc=2, argv=0xbfb87d68, error=0xbfb878ac "", 
error_size=1024) at loader.c:831
#20 0x7bf01220 in main (argc=2, argv=0xbfb87d68) at main.c:218
Wine-gdb> cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x7e942cf4 in create_alpha_bitmap (color=0x360, mask=0x35c, src_info=0x1319a8, 
color_bits=0x7ebf5854) at cursorico