$ ulimit -u 100
    $ winecfg
    wine: Unhandled page fault on read access to 00402E80 at address 00402E80 
(thread 002c), starting debugger...
    wine: Unhandled page fault on read access to 00457560 at address 00457560 
(thread 0034), starting debugger...

Hello everyone,
I was able to reproduce it inside a i386 qemu Trixie VM
and tried to debug it.

It looks like it is not able to map the executable image
to the desired base address, so it maps it to a different address.

Unfortunately when calling the entry point it uses the address like
mapping at the base address had succeeded.

This results in an attempt to execute not mapped memory, and therefore
the segfault happens, because of which it tries to execute winedbg.exe.
But winedbg seems to have the same issue, therefore causing again
a winedbg.exe being called ...

I remembered there was some patch being applied upstream
for such a topic some weeks ago ...

Applying the patch [1] (at least the upper half) makes winecfg no
longer crash and showing its window as expected.

Kind regards,
Bernhard

[1] 
https://gitlab.winehq.org/wine/wine/-/commit/5c45391e9f79854915c50a15054f2de4888596a2
# 2025-06-24 Trixie/testing i386 qemu VM

apt install xserver-xorg slim jwm wine btop rr gdb libwine-dbgsym git mc
systemctl start slim
XAUTHORITY=/var/run/slim.auth DISPLAY=:0 xrandr -s 1440x900



export DISPLAY=:0


# prepare an xterm for executing `wineserver -k`
xterm 



benutzer@debian:~$ winecfg
004c:err:ole:start_rpcss Failed to open RpcSs service
wine: Unhandled page fault on execute access to 004132D0 at address 004132D0 
(thread 005c), starting debugger...
wine: Unhandled page fault on execute access to 00457560 at address 00457560 
(thread 0078), starting debugger...
wine: Unhandled page fault on execute access to 00457560 at address 00457560 
(thread 0088), starting debugger...
wine: Unhandled page fault on execute access to 00457560 at address 00457560 
(thread 0090), starting debugger...
wine: Unhandled page fault on execute access to 00457560 at address 00457560 
(thread 0098), starting debugger...
...



benutzer@debian:~$ rr record winecfg
rr: Saving execution to trace directory 
`/home/benutzer/.local/share/rr/winecfg-0'.
wine: Unhandled page fault on execute access to 004084E0 at address 004084E0 
(thread 0034), starting debugger...
wine: Unhandled page fault on execute access to 00457560 at address 00457560 
(thread 004c), starting debugger...
benutzer@debian:~$ 

benutzer@debian:~$ rr ps winecfg-0
PID     PPID    EXIT    CMD
8505    --      0       winecfg
8506    8505    0       basename /usr/bin/winecfg .exe
8507    8505    0       (forked without exec)
8508    8507    0       (forked without exec)
8509    8507    0       cut -d- -f1
8510    8505    0       /usr/lib/wine/wineserver
8511    8510    -9      (forked without exec)
8512    8505    0       (forked without exec)
8513    8512    0       /usr/lib/wine/wine C:\windows\system32\wineboot.exe 
--init
8514    8513    0       (forked without exec)
8515    8514    1       /usr/lib/wine/wine 
C:\windows\system32\winemenubuilder.exe -a -r
8516    8513    0       (forked without exec)
8517    8516    1       /usr/lib/wine/wine C:\windows\system32\services.exe
8520    8515    0       (forked without exec)
8521    8520    1       /usr/lib/wine/wine winedbg --auto 48 100
8522    8521    0       (forked without exec)
8523    8522    -9      /usr/lib/wine/wine C:\windows\system32\conhost.exe 
--server 0x2c
8524    8521    0       (forked without exec)
8525    8524    -9      /usr/lib/wine/wine winedbg --auto 72 44
benutzer@debian:~$ 

benutzer@debian:~$ rr replay --mark-stdio -a winecfg-0
[rr 8515 40537]wine: Unhandled page fault on execute access to 004084E0 at 
address 004084E0 (thread 0034), starting debugger...
[rr 8521 62032]wine: Unhandled page fault on execute access to 00457560 at 
address 00457560 (thread 004c), starting debugger...
benutzer@debian:~$ 

benutzer@debian:~$ rr replay --debugger-option=-q --mark-stdio -p8515 -g 40537 
winecfg-0
[rr 8515 40537]Reading symbols from /usr/lib/wine/wine...
(No debugging symbols found in /usr/lib/wine/wine)
Remote debugging using 127.0.0.1:8686

--------------------------------------------------
 ---> Reached target process 8515 at event 40538.
--------------------------------------------------
Reading symbols from /usr/bin/../lib/rr/librrpreload.so...
Reading symbols from /lib/i386-linux-gnu/libdl.so.2...
(No debugging symbols found in /lib/i386-linux-gnu/libdl.so.2)
Reading symbols from /lib/i386-linux-gnu/libc.so.6...
(No debugging symbols found in /lib/i386-linux-gnu/libc.so.6)
Reading symbols from /lib/ld-linux.so.2...
(No debugging symbols found in /lib/ld-linux.so.2)
Reading symbols from /usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so...
(No debugging symbols found in 
/usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so)
Reading symbols from /usr/lib/i386-linux-gnu/wine/i386-unix/win32u.so...
(No debugging symbols found in /usr/lib/i386-linux-gnu/wine/i386-unix/win32u.so)
Reading symbols from /lib/i386-linux-gnu/libm.so.6...
(No debugging symbols found in /lib/i386-linux-gnu/libm.so.6)
Reading symbols from /lib/i386-linux-gnu/libfreetype.so.6...
(No debugging symbols found in /lib/i386-linux-gnu/libfreetype.so.6)
Reading symbols from /lib/i386-linux-gnu/libz.so.1...
(No debugging symbols found in /lib/i386-linux-gnu/libz.so.1)
Reading symbols from /lib/i386-linux-gnu/libbz2.so.1.0...
(No debugging symbols found in /lib/i386-linux-gnu/libbz2.so.1.0)
Reading symbols from /lib/i386-linux-gnu/libpng16.so.16...
(No debugging symbols found in /lib/i386-linux-gnu/libpng16.so.16)
Reading symbols from /lib/i386-linux-gnu/libbrotlidec.so.1...
(No debugging symbols found in /lib/i386-linux-gnu/libbrotlidec.so.1)
Reading symbols from /lib/i386-linux-gnu/libbrotlicommon.so.1...
(No debugging symbols found in /lib/i386-linux-gnu/libbrotlicommon.so.1)
Reading symbols from /lib/i386-linux-gnu/libfontconfig.so.1...
(No debugging symbols found in /lib/i386-linux-gnu/libfontconfig.so.1)
Reading symbols from /lib/i386-linux-gnu/libexpat.so.1...
(No debugging symbols found in /lib/i386-linux-gnu/libexpat.so.1)
warning: BFD: warning: system-supplied DSO at 0x6fffd000 has a section 
extending past end of file
warning: Discarding section .replay.text which has an invalid size (27) [in 
module system-supplied DSO at 0x6fffd000]
0x70000002 in syscall_traced ()
(rr) stepi
wine: Unhandled page fault on execute access to 004084E0 at address 004084E0 
(thread 0034), starting debugger...
0x70000002 in syscall_traced ()
(rr) reverse-cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x004084e0 in ?? ()
(rr) bt
#0  0x004084e0 in ?? ()
#1  0x7bb7ea40 in ?? ()
#2  0x7bcfce83 in ?? ()
#3  0x7bd31aa5 in ?? ()
#4  0x00000000 in ?? ()

--> 0x004084e0 not mapped? Where does it come from?

(rr) when
Completed event: 40517
(rr) display/i $pc
1: x/i $pc
=> 0x4084e0:    <error: Cannot access memory at address 0x4084e0>
(rr) reverse-stepi
0x7bb7ea3e in ?? ()
1: x/i $pc
=> 0x7bb7ea3e:  call   *%edx
(rr) when-tid
Current tid: 8786
(rr) shell cat /proc/8786/maps | grep -i -E "^7bb7"
7bb70000-7bb71000 r--p 00000000 08:01 947993     
/usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll
7bb71000-7bb9f000 r-xp 00001000 08:01 947993     
/usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll
(rr) add-symbol-file /usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll 
0x7bb71000
add symbol table from file 
"/usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll" at
        .text_addr = 0x7bb71000
Reading symbols from /usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll...
(rr) disassemble 0x7bb7ea3e-20,0x7bb7ea3e+20
Dump of assembler code from 0x7bb7ea2a to 0x7bb7ea52:
   0x7bb7ea2a <InterlockedDecrement@4+14>:      ret    $0x4
   0x7bb7ea2d <InterlockedDecrement@4+17>:      nop
   0x7bb7ea2e <InterlockedDecrement@4+18>:      nop
   0x7bb7ea2f <InterlockedDecrement@4+19>:      nop
   0x7bb7ea30 <InterlockedDecrement@4+20>:      push   %ebp
   0x7bb7ea31 <InterlockedDecrement@4+21>:      mov    %esp,%ebp
   0x7bb7ea33 <InterlockedDecrement@4+23>:      push   %ebx
   0x7bb7ea34 <InterlockedDecrement@4+24>:      mov    0x8(%ebp),%ebx
   0x7bb7ea37 <InterlockedDecrement@4+27>:      push   0x4(%ebp)
   0x7bb7ea3a <InterlockedDecrement@4+30>:      push   0x4(%ebp)
   0x7bb7ea3d <InterlockedDecrement@4+33>:      push   %ebx
=> 0x7bb7ea3e <InterlockedDecrement@4+34>:      call   *%edx
   0x7bb7ea40 <InterlockedDecrement@4+36>:      mov    %eax,(%esp)
   0x7bb7ea43 <InterlockedDecrement@4+39>:      call   0x7bb7eea0 
<RtlExitUserThread@4>
   0x7bb7ea48 <AreFileApisANSI@0+0>:    jmp    *0x7bbc2eac
   0x7bb7ea4e <AreFileApisANSI@0+6>:    nop
   0x7bb7ea4f <AreFileApisANSI@0+7>:    nop
   0x7bb7ea50 <BaseGetNamedObjectDirectory@4+0>:        jmp    *0x7bbc2eb8
End of assembler dump.
(rr)


$ i686-w64-mingw32-objdump --headers 
./usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll
$ i686-w64-mingw32-objdump --disassemble 
./usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll | grep -i -E 
"call.*\*.*edx"
7b80ea3e:       ff d2                   call   *%edx
...
$ i686-w64-mingw32-objdump --disassemble 
./usr/lib/i386-linux-gnu/wine/i386-windows/kernel32.dll | grep -i -E "7b80ea3e" 
-B18 -A5
7b80ea1c <_InterlockedDecrement@4>:
7b80ea1c:       8b 54 24 04             mov    0x4(%esp),%edx
7b80ea20:       b8 ff ff ff ff          mov    $0xffffffff,%eax
7b80ea25:       f0 0f c1 02             lock xadd %eax,(%edx)
7b80ea29:       48                      dec    %eax
7b80ea2a:       c2 04 00                ret    $0x4
7b80ea2d:       90                      nop
7b80ea2e:       90                      nop
7b80ea2f:       90                      nop

7b80ea30 <@BaseThreadInitThunk@12>:
7b80ea30:       55                      push   %ebp
7b80ea31:       89 e5                   mov    %esp,%ebp
7b80ea33:       53                      push   %ebx
7b80ea34:       8b 5d 08                mov    0x8(%ebp),%ebx
7b80ea37:       ff 75 04                push   0x4(%ebp)
7b80ea3a:       ff 75 04                push   0x4(%ebp)
7b80ea3d:       53                      push   %ebx
7b80ea3e:       ff d2                   call   *%edx
7b80ea40:       89 04 24                mov    %eax,(%esp)
7b80ea43:       e8 58 04 00 00          call   7b80eea0 <_RtlExitUserThread@4>

7b80ea48 <_AreFileApisANSI@0>:
7b80ea48:       ff 25 ac 2e 85 7b       jmp    *0x7b852eac

--> For some reason GDB is not recognizing @BaseThreadInitThunk@12 ...


(rr) reverse-stepi
...
(rr) 
0x7bcfce80 in ?? ()
3: x/i $pc
=> 0x7bcfce80:  call   *0x8(%ebp)

(rr) when-tid
Current tid: 8924
(rr) shell cat /proc/8924/maps | grep -i -E "^7bcf"
7bcf0000-7bcf1000 r--p 00000000 08:01 948201     
/usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll
7bcf1000-7bd5f000 r-xp 00001000 08:01 948201     
/usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll

$ i686-w64-mingw32-objdump --disassemble 
./usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll | grep -E 
"call.*\*0x8\(%ebp\)"
7bc0ce80:       ff 55 08                call   *0x8(%ebp)
...
$ i686-w64-mingw32-objdump --disassemble 
./usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll | grep -E "7bc0ce80" -B10 
-A3

7bc0ce6c <_call_thread_func_wrapper>:
7bc0ce6c:       55                      push   %ebp
7bc0ce6d:       89 e5                   mov    %esp,%ebp
7bc0ce6f:       83 ec 04                sub    $0x4,%esp
7bc0ce72:       83 e4 f0                and    $0xfffffff0,%esp
7bc0ce75:       31 c9                   xor    %ecx,%ecx
7bc0ce77:       8b 55 0c                mov    0xc(%ebp),%edx
7bc0ce7a:       8b 45 10                mov    0x10(%ebp),%eax
7bc0ce7d:       89 04 24                mov    %eax,(%esp)
7bc0ce80:       ff 55 08                call   *0x8(%ebp)
7bc0ce83:       90                      nop

7bc0ce84 <_signal_start_thread>:

(rr) add-symbol-file /usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll 
0x7bcf1000
add symbol table from file 
"/usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll" at
        .text_addr = 0x7bcf1000
(y or n) y
Reading symbols from /usr/lib/i386-linux-gnu/wine/i386-windows/ntdll.dll...


(rr) reverse-stepi
...

(rr) print/x *context
$10 = {ContextFlags = 0x1002f, Dr0 = 0x0, Dr1 = 0x0, Dr2 = 0x0, Dr3 = 0x0, Dr6 
= 0x0, Dr7 = 0x0, FloatSave = {ControlWord = 0x27f, StatusWord = 0x0, TagWord = 
0x0, ErrorOffset = 0x0, ErrorSelector = 0x0, 
    DataOffset = 0x0, DataSelector = 0x0, RegisterArea = {0x0 <repeats 80 
times>}, Cr0NpxState = 0x0}, SegGs = 0x33, SegFs = 0x3b, SegEs = 0x7b, SegDs = 
0x7b, Edi = 0x0, Esi = 0x0, Ebx = 0x3fff1000, Edx = 0x0, 
  Ecx = 0x0, Eax = 0x4084e0, Ebp = 0x0, Eip = 0x7bcfce5c, SegCs = 0x73, EFlags 
= 0x202, Esp = 0x67fff0, SegSs = 0x7b, ExtendedRegisters = {0x7f, 0x2, 0x0 
<repeats 22 times>, 0x80, 0x1f, 0x0 <repeats 486 times>}}

--> $eax == 0x4084e0




(manually edited)
#0  0x7bb7ea3e in @BaseThreadInitThunk@12
#1  0x7bcfce80 in call_thread_func_wrapper ()
#2  0x7bd31aa5 in call_thread_func (entry=0x4084e0, arg=0x3fff1000) at 
dlls/ntdll/signal_i386.c:524
#3  0x7bcfce64 in RtlUserThreadStart@8 ()
#4  0xb7cd27ba in __wine_syscall_dispatcher () from 
/usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so
#5  0xb7cd20e2 in NtContinue () from 
/usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so
#0  0xb7cd271c in __wine_syscall_dispatcher () from 
/usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so
#0  0x7bcfcd50 in __wine_syscall ()
#0  0x7bcfceaf in signal_start_thread ()
#0  0x7bd01f28 in LdrInitializeThunk@16 (context=0x67fd24, unk2=0, unk3=0, 
unk4=0) at dlls/ntdll/signal_i386.c:561




(rr) cont
Continuing.

Hardware watchpoint 20: *0x67fdd4

Old value = 0
New value = 4228320
0xb7cd61ea in call_init_thunk (entry=0x4084e0, arg=0x3fff1000, suspend=1, 
teb=0x3ffe2000, frame=0x29fc80, syscall_cfa=0xbff9e690) at 
dlls/ntdll/unix/signal_i386.c:2535
warning: 2535   dlls/ntdll/unix/signal_i386.c: Datei oder Verzeichnis nicht 
gefunden
3: x/i $pc
=> 0xb7cd61ea <call_init_thunk+394>:    rep movsl %ds:(%esi),%es:(%edi)
4: /x $edx = 0x67fff0
(rr) x/1xw 0x67fdd4
0x67fdd4:       0x004084e0
(rr) print/x 4228320
$14 = 0x4084e0
(rr) bt
#0  0xb7cd61ea in call_init_thunk (entry=0x4084e0, arg=0x3fff1000, suspend=1, 
teb=0x3ffe2000, frame=0x29fc80, syscall_cfa=0xbff9e690) at 
dlls/ntdll/unix/signal_i386.c:2535
#1  0xb7cd2604 in signal_start_thread () from 
/usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so
#2  0xb7cd0f20 in server_init_process_done () at dlls/ntdll/unix/server.c:1710
#3  0xb7cc11db in start_main_thread () at dlls/ntdll/unix/loader.c:1873
#4  __wine_main (argc=<optimized out>, argv=<optimized out>) at 
dlls/ntdll/unix/loader.c:2189
#5  0x0040b2a8 in ?? ()
#6  0xb7d7dcc3 in ?? () from /lib/i386-linux-gnu/libc.so.6
#7  0xb7d7dd88 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#8  0x0040b617 in _start ()
(rr) up
#1  0xb7cd2604 in signal_start_thread () from 
/usr/lib/wine/../i386-linux-gnu/wine/i386-unix/ntdll.so
(rr) 
#2  0xb7cd0f20 in server_init_process_done () at dlls/ntdll/unix/server.c:1710
warning: 1710   dlls/ntdll/unix/server.c: Datei oder Verzeichnis nicht gefunden
(rr) print main_image_info.TransferAddress
$15 = (PVOID) 0x4084e0

https://sources.debian.org/src/wine/10.0~repack-5/dlls/ntdll/unix/signal_i386.c/#L2535
https://sources.debian.org/src/wine/10.0~repack-5/dlls/ntdll/unix/server.c/#L1710

(rr) print main_image_info
$16 = {TransferAddress = 0x4084e0, ZeroBits = 0, MaximumStackSize = 2097152, 
CommittedStackSize = 4096, SubSystemType = 2, MinorSubsystemVersion = 0, 
MajorSubsystemVersion = 4, MajorOperatingSystemVersion = 4, 
  MinorOperatingSystemVersion = 0, ImageCharacteristics = 262, 
DllCharacteristics = 320, Machine = 332, ImageContainsCode = 1 '\001', 
{ImageFlags = 4 '\004', {ComPlusNativeReady = 0 '\000', 
      ComPlusILOnly = 0 '\000', ImageDynamicallyRelocated = 1 '\001', 
ImageMappedFlat = 0 '\000', BaseBelow4gb = 0 '\000', ComPlusPrefer32bit = 0 
'\000', Reserved = 0 '\000'}}, LoaderFlags = 0, 
  ImageFileSize = 770057, CheckSum = 828140}
(rr) when-tid
Current tid: 13698
(rr) shell cat /proc/13698/maps | grep -i -E "winemenubuilder"
00120000-00121000 r--p 00000000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
00121000-0012a000 r-xp 00001000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0012a000-0012b000 rw-p 0000a000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0012b000-0012c000 rw-p 0000b000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0012c000-0013a000 r--p 0000c000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0013a000-0013b000 r--p 0001a000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0013c000-0013d000 r--p 0001b000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0013d000-0013e000 r--p 0001c000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0013e000-0013f000 r--p 0001d000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0013f000-00181000 r--p 0001e000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
00181000-00183000 r--p 00060000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
00183000-0018c000 r--p 00062000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0018c000-0018d000 r--p 0006b000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0018d000-0019c000 r--p 0006c000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe
0019c000-0019e000 r--p 0007b000 08:01 948478     
/usr/lib/i386-linux-gnu/wine/i386-windows/winemenubuilder.exe


-> Shouldn't the TransferAddress be inside winemenubuilder.exe ?



(rr) cont
Continuing.

Hardware watchpoint 22: *0xb7d30180

Old value = 0
New value = 4228320
virtual_fill_image_information (pe_info=0x815a50, info=0xb7d30180 
<main_image_info>) at dlls/ntdll/unix/virtual.c:5882
warning: 5882   dlls/ntdll/unix/virtual.c: Datei oder Verzeichnis nicht gefunden
3: x/i $pc
=> 0xb7cfbe30 <virtual_fill_image_information+16>:      mov    0x28(%eax),%ecx
4: /x $edx = 0xb7d30180
(rr) bt
#0  virtual_fill_image_information (pe_info=0x815a50, info=0xb7d30180 
<main_image_info>) at dlls/ntdll/unix/virtual.c:5882
#1  0xb7cfbfe5 in virtual_map_builtin_module (mapping=0x10, module=0xbff9e388, 
size=0xbff9e1bc, info=0xb7d30180 <main_image_info>, limit_low=0, limit_high=0, 
machine=332, prefer_native=0)
    at dlls/ntdll/unix/virtual.c:3475
#2  0xb7cbf773 in open_builtin_pe_file (name=<optimized out>, attr=0xbff9e078, 
module=0xbff9e388, size=<optimized out>, image_info=<optimized out>, 
limit_low=<optimized out>, limit_high=<optimized out>, 
    machine=<optimized out>, prefer_native=<optimized out>) at 
dlls/ntdll/unix/loader.c:1149
#3  find_builtin_dll (nt_name=nt_name@entry=0xbff9e0e8, 
module=module@entry=0xbff9e388, size_ptr=size_ptr@entry=0xbff9e1bc, 
image_info=<optimized out>, limit_low=<optimized out>, limit_high=<optimized 
out>, 
    search_machine=<optimized out>, load_machine=<optimized out>, 
prefer_native=<optimized out>) at dlls/ntdll/unix/loader.c:1264
#4  0xb7cc031d in load_builtin (image_info=0x815640, filename=0x815698, 
machine=332, info=0xb7d30180 <main_image_info>, module=0xbff9e388, 
size=0xbff9e1bc, limit_low=0, limit_high=0)
    at dlls/ntdll/unix/loader.c:1351
#5  0xb7cfc145 in virtual_map_module (mapping=0xc, module=0xbff9e388, 
size=0xbff9e1bc, info=0xb7d30180 <main_image_info>, limit_low=0, limit_high=0, 
machine=332) at dlls/ntdll/unix/virtual.c:3508
#6  0xb7cbead6 in open_main_image (image=0x816250, 
module=module@entry=0xbff9e388, loadorder=loadorder@entry=LO_DEFAULT, 
machine=332, info=0xb7d30180 <main_image_info>) at dlls/ntdll/unix/loader.c:1438
#7  0xb7cc0703 in load_main_exe (dos_name=0x1104ac, unix_name=0x0, 
curdir=0x1104fc, load_machine=332, image=0xbff9e3c4, module=0xbff9e388) at 
dlls/ntdll/unix/loader.c:1504
#8  0xb7ca9e33 in init_startup_info () at dlls/ntdll/unix/env.c:2135
#9  0xb7cc0c1d in start_main_thread () at dlls/ntdll/unix/loader.c:1865
#10 __wine_main (argc=4, argv=0xbff9e904) at dlls/ntdll/unix/loader.c:2189
#11 0x0040b2a8 in ?? ()
#12 0xb7d7dcc3 in ?? () from /lib/i386-linux-gnu/libc.so.6
#13 0xb7d7dd88 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#14 0x0040b617 in _start ()

(rr) print/x pe_info->base + pe_info->entry_point
$19 = 0x4084e0
(rr) print/x pe_info->base
$20 = 0x400000
(rr) print/x pe_info->entry_point
$21 = 0x84e0
(rr) up
#1  0xb7cfbfe5 in virtual_map_builtin_module (mapping=0x10, module=0xbff9e388, 
size=0xbff9e1bc, info=0xb7d30180 <main_image_info>, limit_low=0, limit_high=0, 
machine=332, prefer_native=0)
    at dlls/ntdll/unix/virtual.c:3475
3475    in dlls/ntdll/unix/virtual.c


https://sources.debian.org/src/wine/10.0~repack-5/dlls/ntdll/unix/virtual.c/#L5881
https://sources.debian.org/src/wine/10.0~repack-5/dlls/ntdll/unix/virtual.c/#L3475






Maybe this?

commit 5c45391e9f79854915c50a15054f2de4888596a2
Author: Yuxuan Shui <ys...@codeweavers.com>
Date:   Sat May 3 21:57:23 2025 +0100

    ntdll: Also relocate entry point for builtin modules.

https://gitlab.winehq.org/wine/wine/-/commit/5c45391e9f79854915c50a15054f2de4888596a2
https://gitlab.winehq.org/wine/wine/-/commit/5c45391e9f79854915c50a15054f2de4888596a2.patch








apt build-dep wine

mkdir /home/benutzer/source/wine/orig -p
cd    /home/benutzer/source/wine/orig
apt source wine


export PATH=/usr/lib/ccache:$PATH

cd    /home/benutzer/source/wine
cp orig try1 -a
cd try1/wine-10.0~repack
dpkg-buildpackage -j10


cd /home/benutzer/source/wine/try1
dpkg -i fonts-wine_10.0~repack-5_all.deb libwine_10.0~repack-5_i386.deb 
libwine-dbgsym_10.0~repack-5_i386.deb wine_10.0~repack-5_all.deb 
wine32_10.0~repack-5_i386.deb


Reply via email to