https://bugs.winehq.org/show_bug.cgi?id=52185
Bug ID: 52185 Summary: IDA 7.6 irregular crashes when used in an IPC namespace Product: Wine Version: 6.23 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: esteve.varela@gmail.com Distribution: ---
When used within an environment that restricts the IPC Namespace, such as within a Docker container or a Firejail environment, IDA crashes irregularly when performing certain tasks. This can result in frustrating crashes and lost work.
This is fairly simple to reproduce with just the help of the "unshare" utility: 1. Install IDA Free: wget https://out7.hex-rays.com/files/idafree76_windows.exe wine idafree76_windows.exe # Follow the installation, install to default location unshare -Ui wine 'C:\Program Files\IDA Freeware 7.6\ida64.exe' 2. Follow the prompts until you reach the main window which says "Drag a file here to disassemble it" 3. Unmaximize the window if maximized, grab a corner and keep resizing the window 4. Keep doing this for up to 10 seconds. The window will disappear and the following will be shown on the terminal: X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 131 (MIT-SHM) Minor opcode of failed request: 3 (X_ShmPutImage) Value in failed request: 0x2e0 Serial number of failed request: 5854 Current serial number in output stream: 5858
This has been tested and verified on the following platforms: - Gentoo (WINE 6.20, 6.22) - Kubuntu 21.10 (WINE 6.0.2, 6.23) - Kubuntu 20.04 (WINE 6.0.2, 6.23) As well as the following desktop environments/window managers: - KDE - i3
Workarounds: On docker, you can use the `docker run --ipc=host` command to disable the IPC namespace. On firejail, you can use the `ignore ipc-namespace` setting to disable the IPC namespace.
https://bugs.winehq.org/show_bug.cgi?id=52185
--- Comment #1 from esteve.varela@gmail.com --- Worth noting that I've built WINE 5.0 on Gentoo as well and it crashes on there too. I'm not sure when this started happening on my machine. It might've been a kernel or Xorg upgrade, or a change to my firejail settings that went unnoticed for a while.
https://bugs.winehq.org/show_bug.cgi?id=52185
Jinoh Kang jinoh.kang.kr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jinoh.kang.kr@gmail.com
--- Comment #2 from Jinoh Kang jinoh.kang.kr@gmail.com ---
X Error of failed request: BadValue (integer parameter out of range for
operation) Major opcode of failed request: 131 (MIT-SHM) Minor opcode of failed request: 3 (X_ShmPutImage) Value in failed request: 0x2e0 Serial number of failed request: 5854 Current serial number in output stream: 5858
Are you sure this is specific to IDA Pro?
I think we should test other Qt-based applications as well.
https://bugs.winehq.org/show_bug.cgi?id=52185
--- Comment #3 from esteve.varela@gmail.com --- I recently ran into the same issue using LTspice, though for some reason these are the first two programs I've ever found to trigger this issue.
https://bugs.winehq.org/show_bug.cgi?id=52185
--- Comment #4 from Jinoh Kang jinoh.kang.kr@gmail.com --- It turns out that this bug is not specific to WINE:
- https://stackoverflow.com/questions/38907708/docker-ipc-host-and-security - https://github.com/mviereck/x11docker/issues/257 - https://github.com/jessfraz/dockerfiles/issues/359
Workaround: https://github.com/jessfraz/dockerfiles/issues/359#issuecomment-828714848
I propose CLOSED NOTOURBUG.
https://bugs.winehq.org/show_bug.cgi?id=52185
--- Comment #5 from Jinoh Kang jinoh.kang.kr@gmail.com --- (In reply to esteve.varela from comment #3)
I recently ran into the same issue using LTspice, though for some reason these are the first two programs I've ever found to trigger this issue.
It doesn't help that both are GDI-heavy applications, which prefer GDI32 APIs over DirectDraw.
https://bugs.winehq.org/show_bug.cgi?id=52185
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Agreed, if XShm doesn't work the X11 server shouldn't claim that it's supported.
https://bugs.winehq.org/show_bug.cgi?id=52185
--- Comment #7 from esteve.varela@gmail.com --- I see, I wasn't aware this was a global issue, as IDA/WINE were the first applications to exert this issue despite having been running fine for what feels like forever.
Thanks for looking into this and the pointers.