Kron4ek / Conty

Easy to use unprivileged Linux container packed into a single portable executable
MIT License
745 stars 42 forks source link

"stack smashing detected" while running Conty with legacy Nvidia drivers 390 #179

Closed ivan-hc closed 3 weeks ago

ivan-hc commented 3 weeks ago

I have tested this behaviour with both my AppImages and your conty.sh build

Running Conty
Nvidia driver handler is enabled
Found Nvidia driver 390.157
Downloading the Nvidia driver 390.157...
######################################################################### 100.0%
Installing the Nvidia driver, please wait...
The driver installed successfully

*** stack smashing detected ***: terminated

Istantanea_2024-09-09_23-25-28

NOTE, nvidia-detect suggests the Nvidia Tesla 470 driver, but on Debian testing I'm unable to build it again, so I'm using the legacy drivers as a fallback, I have an Nvidia GeForce GT 710

ivan@debian:~$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1024 MB
    Total available memory: 1024 MB
    Currently available dedicated video memory: 915 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 710/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 390.157
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 390.157
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.157
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Any tip?

ivan-hc commented 3 weeks ago

Update!

By reading the best answer here I have moved "libnvidia-tls.so.390.157" from ~/.local/share/Conty/overlayfs_shared/up/usr/lib/tls to ~/.local/share/Conty/overlayfs_shared/up/usr/lib, and now everything works.

NOTE, the file "libnvidia-tls.so.390.157"that is already in "lib" must be replaced/overwrited.

Kron4ek commented 3 weeks ago

Thanks, this is useful information. I added a fix.

https://github.com/Kron4ek/Conty/commit/7844d08792828425e8ff53abe2a28001a374a1da

ivan-hc commented 3 weeks ago

Thanks to you, I just updated Bottles and VirtualBox AppImages using this fix, now all works well!

SOLVED