nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   nvidia-settings segfault in 270.41.03 (http://www.nvnews.net/vbulletin/showthread.php?t=161460)

lacrimstein 04-12-11 03:24 PM

nvidia-settings segfault in 270.41.03
 
1 Attachment(s)
I am running 64-bit Arch Linux, kernel version 2.6.38, and after the recent update which upgraded the nvidia driver to 270.41.03, any attempt to launch nvidia-settings results in a segmentation fault.
Code:

dmesg | tail
reveals the following:
Code:

nvidia-settings[2477]: segfault at 7f95a7253b90 ip 00007f95a7253b90 sp 00007fff5f842548 error 15 in SYSV00000000 (deleted)[7f95a7224000+60000]
Attached is a bug report.

danix 04-14-11 12:52 PM

Re: nvidia-settings segfault in 270.41.03
 
Hello lacrimstein,

Does nvidia-settings crash with the older 270.xx drivers?

Can you download the nvidia-settings source from ftp://download.nvidia.com/XFree86/nv....41.03.tar.bz2 and build nvidia-settings with debug info to see if you can get some more clues?

lacrimstein 04-14-11 11:53 PM

Re: nvidia-settings segfault in 270.41.03
 
Thank you for replying!!! After downgrading to 270.30, nvidia-settings works perfectly fine. I also forgot to mention that my card is an 8600M GT.

artem 04-15-11 02:04 AM

Re: nvidia-settings segfault in 270.41.03
 
lacrimstein,

You still have to download nvidia-settings sources, compile them with debug symbols (export CFLAGS=-O2 -g) and run with newer drivers (preferably under gdb). Downgrading is just a temporary solution.

lacrimstein 04-15-11 03:33 PM

Re: nvidia-settings segfault in 270.41.03
 
I tried compiling, but I get the following error:

/usr/bin/ld: i386 architecture of input file `src/libXNVCtrl/libXNVCtrl.a(NVCtrl.o)' is incompatible with i386:x86-64 output

artem 04-16-11 04:19 AM

Re: nvidia-settings segfault in 270.41.03
 
You've spotted an error in compilation logic.

OK, here's how you can resolve this issue.

Code:

$ export CFLAGS="-O2 -g"
$ rm src/libXNVCtrl/libXNVCtrl.a
$ cd src/libXNVCtrl/
$ make
$ cd ../..
$ make

Before running all these commands you must edit root Makefile and comment out (just add # in the very beginning) line 169: $(call quiet_cmd,STRIP_CMD) $@

The resulting binary should weigh approximately 3.5MB.

XjCook 04-16-11 12:34 PM

Re: nvidia-settings segfault in 270.41.03
 
artem,

I've tried compile nvidia-settings from source with your instructions and nvidia-settings is launch without segfault :-)
But nvidia-settings utility from NVIDIA-Linux-x86_64-270.41.03-no-compat32.run is throwing segfault. I have standard X setup (I tried remove xorg.conf). This segfaults appear only when exists ~/.nvidia-settings.rc, when I delete rc file, utility is launch correctly.

My distribution is also Arch Linux on 64bit with GF330M.

danix 04-18-11 04:17 PM

Re: nvidia-settings segfault in 270.41.03
 
Does it segfault when there's *any* ~/.nvidia-settings.rc file present, or only if a particular one is present? If the latter, could you provide a .nvidia-settings.rc file that causes the crash?

Also, please try building without the additional -O2 flag, just the -g flag. Changing the compiler optimization settings might have an effect on the bug.

bob p 04-22-11 08:41 PM

Re: nvidia-settings segfault in 270.41.03
 
270.41.06 does it too. look here:

http://www.nvnews.net/vbulletin/showthread.php?t=161809

XjCook 04-30-11 09:54 AM

Re: nvidia-settings segfault in 270.41.03
 
2 Attachment(s)
Quote:

Originally Posted by danix (Post 2420245)
Does it segfault when there's *any* ~/.nvidia-settings.rc file present, or only if a particular one is present? If the latter, could you provide a .nvidia-settings.rc file that causes the crash?

Also, please try building without the additional -O2 flag, just the -g flag. Changing the compiler optimization settings might have an effect on the bug.

Sorry for late answer but I didn't have my laptop. Yes it segfaults when any nvidia-settings.rc file is present. For example when I remove ~/.nvidia-settings.rc, nvidia-settings is started without segfault but when I quit this app and launch again, nvidia-settings throw segfault.
With "-n" option is launching correctly. And nvidia-settings from source (compiled without O2 flag) launch without problems.

This bug appear also in 270.41.06

XjCook 04-30-11 02:01 PM

Re: nvidia-settings segfault in 270.41.03
 
I solved this problem by switch desktop from KDE4 to XFCE. I was very surprised when nvidia-settings started in GNOME/XFCE without segfault.

alessandro_ufms 05-05-11 11:23 PM

Re: nvidia-settings segfault in 270.41.03
 
It's happening to me too on KDE4 (64 bits). Very annoying.


All times are GMT -5. The time now is 08:18 AM.

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