Bug 1212915

Summary: wine-staging 8.11 segfault
Product: [openSUSE] openSUSE Distribution Reporter: Jean Delvare <jdelvare>
Component: OtherAssignee: Marcus Meissner <meissner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: jdelvare, meissner
Version: Leap 15.4   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jean Delvare 2023-07-02 05:35:36 UTC
The latest versions of wine-staging fail to start. I get the following in dmesg:

[  412.766463] wine64-preloade[5252]: segfault at 28 ip 00007d7d00000c14 sp 00007ffd50d8e8b0 error 4 in wine64-preloader[7d7d00000000+2000] likely on CPU 6 (core 2, socket 0)
[  412.766472] Code: 00 00 00 0f 1f 00 f3 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 57 41 56 41 55 41 54 55 53 48 81 ec 68 01 00 00 4c 8b 27 <64> 48 8b 1c 25 28 00 00 00 48 89 9c 24 58 01 00 00 31 db 48 89 7c

Last working version is wine-staging-8.10-lp154.1596.2.x86_64.rpm.

First failing version is wine-staging-8.11-lp154.1598.1.x86_64.rpm.

I'll try to get a backtrace.
Comment 1 Jean Delvare 2023-07-02 05:37:35 UTC
Forgot to mention: I'm using the wine-staging package from the Emulators:Wine repository.
Comment 2 Jean Delvare 2023-07-03 11:09:31 UTC
Unfortunately the backtrace seems to be of little use:

Program received signal SIGSEGV, Segmentation fault.
wld_start (stack=0x7fffffffdd30) at loader/preloader.c:1377
1377	{
(gdb) bt
#0  wld_start (stack=0x7fffffffdd30) at loader/preloader.c:1377
#1  0x00007d7d0000002e in _start ()
(gdb) list wld_start
1372	 *  Repeat the actions the kernel would do when loading a dynamically linked .so
1373	 *  Load the binary and then its ELF interpreter.
1374	 *  Note, we assume that the binary is a dynamically linked ELF shared object.
1375	 */
1376	void* wld_start( void **stack )
1377	{
1378	    long i, *pargc;
1379	    char **argv, **p;
1380	    char *interp, *reserve = NULL;
1381	    struct wld_auxv new_av[8], delete_av[3], *av;
(gdb)

So the crash happens upon entering the function, not on a specific instruction. I have no idea how to continue investigating from there.
Comment 3 Marcus Meissner 2023-07-03 13:21:27 UTC
i applied the patches we have in Emulators/wine to Emulators:Wine/wine too now, lets see if it helps.
Comment 4 Marcus Meissner 2023-07-03 15:31:05 UTC
is fixed for me now on my 15.4 vm
Comment 5 Jean Delvare 2023-07-05 10:36:56 UTC
wine-staging-8.11-lp155.1603.1.x86_64 works for me as well. Thanks!
Comment 6 Jean Delvare 2023-07-05 10:39:33 UTC
There's something odd with the release string, by the way. A "-lp155" package in Emulators:/Wine/15.4/ looks incorrect.