Divinity Banner
Previous Thread
Next Thread
Print Thread
nouveau driver crash #577701
28/12/15 08:07 PM
28/12/15 08:07 PM
Joined: Dec 2015
Posts: 7
A
abishai Offline OP
stranger
abishai  Offline OP
stranger
A

Joined: Dec 2015
Posts: 7
[code]OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NVE4
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.1.0
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.1.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.1.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00[/code]

Game crashed immediately after start.
[code][abishai@darkstar game]$ ./runner.sh
Thread "EoCApp" (280426624)
received signal 11

Call stack:

(0) /usr/lib/libpthread.so.0 : +0x10d60 [0x7f3c18999d60][/code]
Another error if I force OpenGL 4.5
[code][abishai@darkstar game]$ env MESA_GL_VERSION_OVERRIDE=4.5 ./runner.sh
Thread "EoCApp" (4170172544)
received signal 11

Call stack:

(0) /usr/lib/libpthread.so.0 : +0x10d60 [0x7fa600726d60]
(1) ./libOGLBinding.so : api::OpenGLRenderer::ApplyConstants()+0x65 [0x7fa60164e7d5]
(2) ./libRenderFramework.so : rf::Renderer::Apply(bool)+0x57 [0x7fa6012f5207]
(3) ./EoCApp : ig::IggyBinding::Swap(rf::Renderer*)+0xfc [0xebf16c]
(4) ./libGameEngine.so : BaseApp::EndDrawGUI(rf::Renderer*)+0x9b [0x7fa60145088b]
(5) ./libGameEngine.so : BaseApp::MakeFrame()+0x3a4 [0x7fa601450db4]
(6) ./libGameEngine.so : BaseApp::OnIdle()+0xe0 [0x7fa60144f590]
(7) ./EoCApp : main+0x170 [0x6d4430]
(8) /usr/lib/libc.so.6 : __libc_start_main+0xf0 [0x7fa600392610]
(9) ./EoCApp : _start+0x29 [0x6d41a9]
./runner.sh: line 3: 28392 Ошибка сегментирования (core dumped) LD_LIBRARY_PATH="." ./EoCApp
[abishai@darkstar game]$ ./runner.sh
Thread "EoCApp" (280426624)
received signal 11[/code]

It is nice we have money back on GoG. Grats Larian with another Linux fail, you announced Linux version before OpenGL 4.5 was ever released.

Last edited by abishai; 28/12/15 08:09 PM.
Re: nouveau driver crash [Re: abishai] #580880
31/03/16 01:14 PM
31/03/16 01:14 PM
Joined: Mar 2016
Posts: 1
J
Jardik2 Offline
stranger
Jardik2  Offline
stranger
J

Joined: Mar 2016
Posts: 1
I am experiencing the same issue with radeonsi. It supports OpenGL 4.1. It crashes right away. When I override OpenGL version to 4.2, it goes to play a initial logo sound, but there is no video and one of the threads crashes in OpenGLRenderer::ApplyConstants() function. I disassembled this function in gdb. Notice the line starting with =>, that is where the crash occurs.

Code:
   0x00007ffff48467e0 <+0>:	push   r15
   0x00007ffff48467e2 <+2>:	push   r14
   0x00007ffff48467e4 <+4>:	push   r12
   0x00007ffff48467e6 <+6>:	push   rbx
   0x00007ffff48467e7 <+7>:	push   rax
   0x00007ffff48467e8 <+8>:	mov    r14,rdi
   0x00007ffff48467eb <+11>:	mov    eax,DWORD PTR [r14+0x6f8]
   0x00007ffff48467f2 <+18>:	mov    rcx,QWORD PTR [rip+0xd297]        # 0x7ffff4853a90
   0x00007ffff48467f9 <+25>:	cmp    eax,DWORD PTR [rcx]
   0x00007ffff48467fb <+27>:	je     0x7ffff4846959 <_ZN3api14OpenGLRenderer14ApplyConstantsEv+377>
   0x00007ffff4846801 <+33>:	xor    r15d,r15d
   0x00007ffff4846804 <+36>:	test   eax,0x3ff0000
   0x00007ffff4846809 <+41>:	je     0x7ffff4846845 <_ZN3api14OpenGLRenderer14ApplyConstantsEv+101>
   0x00007ffff484680b <+43>:	movzx  ecx,ax
   0x00007ffff484680e <+46>:	mov    edx,DWORD PTR [r14+0xc4]
   0x00007ffff4846815 <+53>:	xor    r15d,r15d
   0x00007ffff4846818 <+56>:	cmp    rcx,rdx
   0x00007ffff484681b <+59>:	jae    0x7ffff4846845 <_ZN3api14OpenGLRenderer14ApplyConstantsEv+101>
   0x00007ffff484681d <+61>:	shr    eax,0x10
   0x00007ffff4846820 <+64>:	mov    rdx,QWORD PTR [r14+0xe0]
   0x00007ffff4846827 <+71>:	xor    r15d,r15d
   0x00007ffff484682a <+74>:	movzx  edx,WORD PTR [rdx+rcx*2]
   0x00007ffff484682e <+78>:	and    eax,0x3ff
   0x00007ffff4846833 <+83>:	cmp    eax,edx
   0x00007ffff4846835 <+85>:	jne    0x7ffff4846845 <_ZN3api14OpenGLRenderer14ApplyConstantsEv+101>
   0x00007ffff4846837 <+87>:	imul   r15,rcx,0x110
   0x00007ffff484683e <+94>:	add    r15,QWORD PTR [r14+0xb8]
=> 0x00007ffff4846845 <+101>:	mov    rcx,QWORD PTR [r15+0x10]
   ......


When analysing the control flow, you can clearly see that there is possible NULL pointer dereference.
Code:
//0x00007ffff48467eb:
  eax = this->variable_at_offset_0x6f8
//0x00007ffff48467f2:
  rcx = some_related_global_or_static_variable
//0x00007ffff48467fb:
  if (eax != rcx) {
    // 0x00007ffff4846801:
    r15 = NULL
    if ((eax & 0x3ff0000) != 0) {
       // ...
       // r15 is set in this block to valid value
       // ...
    }
    // 0x00007ffff4846845:
    rcx = r15->variable_at_offset_0x10 // crash here because r15 can be NULL
  }
// function end



This is bug in game code.

Re: nouveau driver crash [Re: abishai] #580927
01/04/16 12:04 AM
01/04/16 12:04 AM
Joined: Mar 2003
Posts: 26,043
Canada
Raze Offline

veteran
Raze  Offline

veteran

Joined: Mar 2003
Posts: 26,043
Canada

I can forward this to the lead Linux programmer, but only the proprietary AMD/Nvidia drivers are officially supported.

Re: nouveau driver crash [Re: Raze] #581015
02/04/16 02:56 PM
02/04/16 02:56 PM
Joined: Jan 2016
Posts: 2
D
DarthSide Offline
stranger
DarthSide  Offline
stranger
D

Joined: Jan 2016
Posts: 2
Originally Posted By: Raze

I can forward this to the lead Linux programmer, but only the proprietary AMD/Nvidia drivers are officially supported.


Thanks!

See-Also: https://bugs.freedesktop.org/show_bug.cgi?id=93551, https://lists.freedesktop.org/archives/mesa-dev/2016-March/109789.html

Re: nouveau driver crash [Re: Raze] #584170
17/08/16 11:05 AM
17/08/16 11:05 AM
Joined: Jun 2016
Posts: 2
I
Isbjoern Offline
stranger
Isbjoern  Offline
stranger
I

Joined: Jun 2016
Posts: 2
Originally Posted By: Raze

I can forward this to the lead Linux programmer, but only the proprietary AMD/Nvidia drivers are officially supported.

Bad programming is bad even if it at the moment only happens on the non-proprietary driver. How long before AMD och nVidia happens to make a change in their drivers making it crash?


Powered by UBB.threads™ PHP Forum Software 7.6.2