Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-12-08, 09:56 AM   #1
jandd
Registered User
 
jandd's Avatar
 
Join Date: Sep 2004
Location: Dresden, Germany
Posts: 2
Unhappy SEGFAULT in NVidia driver in recent Warzone 2100 (GPL) builds

I recently discovered a crash in a current Warzone 2100 build. The game is actively developed at https://gna.org/projects/warzone/ and https://gna.org/projects/warzone/. The game has the potential to be one of the top free multi platform 3D realtime strategy games.

The bug that I discovered seems to be a memory management issue inside the NVidia Linux (x86_64) driver. I filed the issue at the game's issue tracker (https://gna.org/bugs/?11621). The bug is reproducable using the savegames attached there (I cannot attach it here because the zipped savegames are too large) with the latest stable and beta drivers (169.12 and 173.08).

One of the game's developers could confirm that the issue does not occur when using another OpenGL implementation (Mesa).

Here is a stack dump from gdb:

Code:
$ LD_LIBRARY_PATH=/usr/lib/debug:$LD_LIBRARY_PATH LC_ALL=C LANG=C gdb ~/games/bin/warzone2100 
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".
(gdb) run
Starting program: /home/jan/games/bin/warzone2100 
[Thread debugging using libthread_db enabled]
[New Thread 0x2ad4090a6ca0 (LWP 18610)]
[New Thread 0x40804950 (LWP 18616)]
[New Thread 0x410aa950 (LWP 18617)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ad4090a6ca0 (LWP 18610)]
_int_malloc (av=0x2ad405b989a0, bytes=254704) at malloc.c:4424
4424	malloc.c: No such file or directory.
	in malloc.c
(gdb) bt full
#0  _int_malloc (av=0x2ad405b989a0, bytes=254704) at malloc.c:4424
	p = (void *) 0x5ad43c0
	iters = <value optimized out>
	nb = 254720
	idx = 29
	bin = <value optimized out>
	victim = (mchunkptr) 0x5ad43c0
	size = 18374969062733185280
	victim_index = <value optimized out>
	remainder = <value optimized out>
	remainder_size = 18374969062732930560
	block = 3
	bit = 536870912
	map = <value optimized out>
	fwd = (mchunkptr) 0xff010101ff010101
	bck = (mchunkptr) 0xff010101ff010101
#1  0x00002ad4058c7920 in *__GI___libc_malloc (bytes=254704) at malloc.c:3553
	ar_ptr = (mstate) 0x2ad405b989a0
	victim = (void *) 0x0
	hook = <value optimized out>
#2  0x00002ad4080a4de4 in ?? () from /usr/lib/libGLcore.so.1
No symbol table info available.
#3  0x00002ad408099398 in ?? () from /usr/lib/libGLcore.so.1
No symbol table info available.
#4  0x00002ad4080a4776 in ?? () from /usr/lib/libGLcore.so.1
No symbol table info available.
#5  0x000000004089dca2 in ?? ()
No symbol table info available.
#6  0x0000000000003300 in ?? ()
No symbol table info available.
#7  0x0000000000000004 in ?? ()
No symbol table info available.
#8  0x0000000000002940 in ?? ()
No symbol table info available.
#9  0x00000000000003c0 in ?? ()
No symbol table info available.
#10 0x0000000040805000 in ?? ()
No symbol table info available.
#11 0x0000000000000004 in ?? ()
No symbol table info available.
#12 0x0000000000002940 in ?? ()
No symbol table info available.
#13 0x0000000000000038 in ?? ()
No symbol table info available.
#14 0x0000000000005a00 in ?? ()
No symbol table info available.
#15 0x00002ad4081cc204 in ?? () from /usr/lib/libGLcore.so.1
No symbol table info available.
#16 0x000000004089dc5f in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#17 0x00000000014b0cc0 in ?? ()
No symbol table info available.
#18 0x00007fffa70fa0e0 in ?? ()
No symbol table info available.
#19 0x0000000000000004 in ?? ()
No symbol table info available.
#20 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) p map
$1 = <value optimized out>
(gdb) p fwd
$2 = (mchunkptr) 0xff010101ff010101
(gdb) p *ar_ptr
No symbol "ar_ptr" in current context.
(gdb) p *p
Attempt to dereference a generic pointer.
(gdb) p *victim
$3 = {prev_size = 18374969062733185281, size = 18374969062733185281, fd = 0xff010101ff010101, bk = 0xff010101ff010101, fd_nextsize = 0xff010101ff010101, 
  bk_nextsize = 0xff010101ff010101}
(gdb) p *fwd
Cannot access memory at address 0xff010101ff010101
(gdb) p *bck
Cannot access memory at address 0xff010101ff010101
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Attached Files
File Type: log nvidia-bug-report.log (109.0 KB, 295 views)
jandd is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver quality decrease? legluondunet NVIDIA Linux 17 06-26-12 10:03 AM
NVIDIA Driver Installation flores.facundo NVIDIA Linux 2 06-24-12 08:37 AM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM

All times are GMT -5. The time now is 06:00 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.