Bug 84727 - amarok crashes on startup with nvidia glx 6106
Summary: amarok crashes on startup with nvidia glx 6106
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.0.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-08 14:45 UTC by Peter Leugner
Modified: 2006-06-11 12:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Leugner 2004-07-08 14:45:56 UTC
Version:           1.0.1 (using KDE KDE 3.2.3)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.3 
OS:                Linux

Amarok doesn't start with the new nvidia glx 6106. The splashscreen is shown and then it segfaults. It runs ok, if you compile it without opengl support.
Comment 1 Max Howell 2004-07-08 19:12:58 UTC
I run opengl amaroK with the 6106 drivers just fine. I think you may have to dig deeper. Can you think of anything else? Perhaps this bug will help:

http://bugs.kde.org/show_bug.cgi?id=84419
Comment 2 Peter Leugner 2004-07-12 09:32:21 UTC
I tried it on a second machine. Same thing, runs without opengl support, crashes with opengl support. I compiled it without any special optimizations, but that didn't help either. It's Gentoo Linux with kernel 2.6.7 and nptl. Maybe it's the nptl part that crashes it?
Comment 3 Christian Muehlhaeuser 2004-07-13 02:03:24 UTC
can't confirm, sorry. runs just fine on two machines with 6106...
we'll figure out, hopefully.
Comment 4 Mark Kretschmann 2004-07-13 07:53:29 UTC
Reporter: Please get a backtrace. I would like to close this report otherwise.
Comment 5 Mark Kretschmann 2004-07-13 07:54:43 UTC
Oh, and please state what distro you were using.
Comment 6 Peter Leugner 2004-07-13 16:24:55 UTC
Pretty useless backtrace:

db amarokapp
GNU gdb 6.1.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) r
Starting program: /usr/kde/3.3/bin/amarokapp
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x413b54e5 in ?? ()
#2  0x41df32d0 in ?? ()
#3  0x0811d2d0 in ?? ()
#4  0x414e249e in ?? ()
#5  0x4150d698 in ?? ()
#6  0x414e2794 in ?? ()
#7  0x00000000 in ?? ()
#8  0x415019c4 in ?? ()
#9  0x41517484 in ?? ()
#10 0x00000002 in ?? ()
#11 0x00000003 in ?? ()
#12 0x00000004 in ?? ()
#13 0x414e278b in ?? ()
#14 0x41df32d0 in ?? ()
#15 0x00003752 in ?? ()
#16 0x4001455c in ?? ()
#17 0x414a62b0 in ?? ()
#18 0x40014790 in ?? ()
#19 0xbffff784 in ?? ()
#20 0x416f0eee in ?? ()
#21 0x4000b330 in ?? ()
#22 0x00000001 in ?? ()
....
#552 0x65646b2f in ?? ()
#553 0x322e332f in ?? ()
#554 0x6168732f in ?? ()
#555 0x632f6572 in ?? ()
#556 0x69666e6f in ?? ()
#557 0x752f2067 in ?? ()
#558 0x732f7273 in ?? ()
#559 0x65726168 in ?? ()
#560 0x6e6f632f in ?? ()
#561 0x00676966 in ?? ()
#562 0x52425f47 in ?? ()
#563 0x4e454b4f in ?? ()
#564 0x4c49465f in ?? ()
#565 0x4d414e45 in ?? ()
#566 0x313d5345 in ?? ()
#567 0x73752f00 in ?? ()
#568 0x646b2f72 in ?? ()
#569 0x2e332f65 in ?? ()
#570 0x69622f33 in ?? ()
#571 0x6d612f6e in ?? ()
#572 0x6b6f7261 in ?? ()
#573 0x00707061 in ?? ()
#574 0x00000000 in ?? ()
Cannot access memory at address 0xc0000000

the last lines of strace:


mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41717000
open("/usr/kde/3.3/lib/libGLcore.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/qt/3/lib/libGLcore.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libGLcore.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/opengl/nvidia/lib/libGLcore.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\351"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=7132152, ...}) = 0
mmap2(NULL, 7174120, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x41718000
mmap2(0x41dc1000, 110592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6a9) = 0x41dc1000
mmap2(0x41ddc000, 79848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41ddc000
close(3)                                = 0
open("/usr/kde/3.3/lib/libnvidia-tls.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/qt/3/lib/libnvidia-tls.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libnvidia-tls.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/opengl/nvidia/lib/libnvidia-tls.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\3\0\000"..., 512) = 512
lseek(3, 1304, SEEK_SET)                = 1304
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\2\0\0\0"..., 32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=2352, ...}) = 0
mmap2(NULL, 5588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x41df0000
mmap2(0x41df1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x41df1000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41df2000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41df3000
mprotect(0x41df0000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0x41df0000, 4096, PROT_READ|PROT_EXEC) = 0
mprotect(0x41718000, 6983680, PROT_READ|PROT_WRITE) = 0
mprotect(0x41718000, 6983680, PROT_READ|PROT_EXEC) = 0
mprotect(0x414b0000, 360448, PROT_READ|PROT_WRITE) = 0
mprotect(0x414b0000, 360448, PROT_READ|PROT_EXEC) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x41df32d0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x403a1000, 108743)              = 0
set_tid_address(0x41df3318)             = 14176
rt_sigaction(SIGRTMIN, {0x413b15b8, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff488, 32, (nil), 0}) = 0
futex(0x415ebf2c, FUTEX_WAKE, 2147483647) = 0
brk(0)                                  = 0x811d000
brk(0x811e000)                          = 0x811e000
open("/dev/zero", O_RDWR)               = 3
mmap2(NULL, 1024, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x403a1000
close(3)                                = 0
mmap2(NULL, 671744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41df4000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


My distro is Gentoo Linux, gcc-3.3.3, glibc-2.3.4.20040619-r0, kernel 2.6.7, nptl enabled
Comment 7 Peter Leugner 2004-07-13 17:29:45 UTC
Works now, the gentoo installer for nvidia-glx put the wrong libnvidia-tls.so.1.0.6106 in the directory /usr/lib/opengl/nvidia/lib. Once I copied the one from /usr/lib/tls to /usr/lib/opengl/nvidia/lib, it worked.