nvidia-settings crashes on exit

Bug #1268027 reported by Vadim Peretokin on 2014-01-10
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nvidia-settings (Ubuntu)
Medium
Alberto Milone

Bug Description

Started happening after I upgraded to 331 drivers to enable support for 780 Ti.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nvidia-settings 331.20-0ubuntu0.0.1
ProcVersionSignature: Ubuntu 3.2.0-58.88-generic 3.2.53
Uname: Linux 3.2.0-58-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 331.20 Wed Oct 30 17:43:35 PDT 2013
 GCC version: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
.tmp.unity.support.test.0:

ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
CompositorRunning: compiz
Date: Sat Jan 11 08:25:46 2014
DistUpgraded: 2012-04-27 06:33:59,441 DEBUG enabling apt cron job
DistroCodename: precise
DistroVariant: ubuntu
DkmsStatus:
 nvidia-331, 331.20, 3.2.0-58-generic, x86_64: installed
 nvidia-331-updates, 331.20, 3.2.0-58-generic, x86_64: installed
 vboxhost, 4.3.6, 3.2.0-57-generic, x86_64: installed
 vboxhost, 4.3.6, 3.2.0-58-generic, x86_64: installed
EcryptfsInUse: Yes
GraphicsCard:
 NVIDIA Corporation Device [10de:100a] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: eVga.com. Corp. Device [3842:2884]
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
JockeyStatus:
 kmod:nvidia_331 - nvidia_331 (Proprietary, Enabled, Not in use)
 kmod:nvidia_331_updates - nvidia_331_updates (Proprietary, Enabled, Not in use)
MachineType: Gigabyte Technology Co., Ltd. Z68AP-D3
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_AU:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-58-generic root=UUID=20aa0109-67bb-46a0-95c6-626f0f0487eb ro quiet splash
SourcePackage: nvidia-settings
UpgradeStatus: Upgraded to precise on 2012-04-26 (624 days ago)
dmi.bios.date: 10/12/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: FB
dmi.board.name: Z68AP-D3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFB:bd10/12/2011:svnGigabyteTechnologyCo.,Ltd.:pnZ68AP-D3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnZ68AP-D3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: Z68AP-D3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.7.12-0ubuntu3
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.46-1ubuntu0.0.0.1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.4-0ubuntu0.7
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.4-0ubuntu0.7
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10.14
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1.2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4.4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build3

Vadim Peretokin (vperetokin) wrote :
Alberto Milone (albertomilone) wrote :

Can you attach the error that you get when running nvidia-settings from the command line, please? Also, the output of gdb would be welcome.

Changed in nvidia-settings (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: New → Incomplete

vadi@gooseberry:~$ nvidia-settings

** (nvidia-settings:23883): WARNING **: PRIME: Failed to execute child
process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no
Segmentation fault (core dumped)
vadi@gooseberry:~$ gdb nvidia-settings
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/nvidia-settings...(no debugging symbols
found)...done.
(gdb) r
Starting program: /usr/bin/nvidia-settings
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff078f700 (LWP 23902)]
[New Thread 0x7fffeef1d700 (LWP 23903)]
[New Thread 0x7fffed578700 (LWP 23904)]

** (nvidia-settings:23899): WARNING **: PRIME: Failed to execute child
process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe49d88a6 in ?? ()
   from
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
(gdb) bt
#0 0x00007fffe49d88a6 in ?? ()
   from
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
#1 0x00007ffff78ba892 in XCloseDisplay ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x000000000041203d in ?? ()
#3 0x000000000040c696 in ?? ()
#4 0x00007ffff5b5776d in __libc_start_main (main=0x40c560, argc=1,
    ubp_av=0x7fffffffe098, init=<optimised out>, fini=<optimised out>,
    rtld_fini=<optimised out>, stack_end=0x7fffffffe088) at libc-start.c:226
#5 0x000000000040c7ad in ?? ()
#6 0x00007fffffffe088 in ?? ()
#7 0x000000000000001c in ?? ()
#8 0x0000000000000001 in ?? ()
#9 0x00007fffffffe375 in ?? ()
#10 0x0000000000000000 in ?? ()
(gdb) q
A debugging session is active.

Inferior 1 [process 23899] will be killed.

Quit anyway? (y or n) y
vadi@gooseberry:~$

On Sun, Jan 12, 2014 at 8:16 PM, Alberto Milone <
<email address hidden>> wrote:

> Can you attach the error that you get when running nvidia-settings from
> the command line, please? Also, the output of gdb would be welcome.
>
> ** Changed in: nvidia-settings (Ubuntu)
> Assignee: (unassigned) => Alberto Milone (albertomilone)
>
> ** Changed in: nvidia-settings (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1268027
>
> Title:
> nvidia-settings crashes on exit
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1268027/+subscriptions
>

Alberto Milone (albertomilone) wrote :

Does the attached package solve the problem?

Changed in nvidia-settings (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → High
importance: High → Medium
Vadim Peretokin (vperetokin) wrote :
Download full text (3.1 KiB)

It does not seem to:

vadi@gooseberry:~$ nvidia-settings

** (nvidia-settings:20334): WARNING **: PRIME: Failed to execute child
process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no

Segmentation fault (core dumped)
vadi@gooseberry:~$
vadi@gooseberry:~$ nvi^Cb n
vadi@gooseberry:~$ ^Cidia
vadi@gooseberry:~$ apt-cache policy nvidia-settings
nvidia-settings:
  Installed: 331.20-0ubuntu0.0.2
  Candidate: 331.20-0ubuntu0.0.2
  Version table:
 *** 331.20-0ubuntu0.0.2 0
        100 /var/lib/dpkg/status
     331.20-0ubuntu0.0.1 0
        500 http://mirror.aarnet.edu.au/pub/ubuntu/archive/precise-proposed/main
amd64 Packages
     304.88-0ubuntu0.0.3 0
        500 http://mirror.aarnet.edu.au/pub/ubuntu/archive/precise-updates/main
amd64 Packages
     304.88-0ubuntu0.0.2 0
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64
Packages
     295.33-0ubuntu1 0
        500 http://mirror.aarnet.edu.au/pub/ubuntu/archive/ precise/main
amd64 Packages
vadi@gooseberry:~$ gdb nvidia-settings
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/nvidia-settings...(no debugging symbols
found)...done.
(gdb) re
Ambiguous command "re": rec, record, refresh, remote, remove-inferiors,
restart, restore, return, rev, reverse-continue...
(gdb) r
Starting program: /usr/bin/nvidia-settings
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff078f700 (LWP 20387)]
[New Thread 0x7fffeef1d700 (LWP 20388)]
[New Thread 0x7fffed578700 (LWP 20389)]

** (nvidia-settings:20384): WARNING **: PRIME: Failed to execute child
process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe49d88a6 in ?? ()
   from
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
(gdb) bt
#0 0x00007fffe49d88a6 in ?? ()
   from
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
#1 0x00007ffff78ba892 in XCloseDisplay ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x000000000041203d in ?? ()
#3 0x000000000040c696 in ?? ()
#4 0x00007ffff5b5776d in __libc_start_main (main=0x40c560, argc=1,
    ubp_av=0x7fffffffe098, init=<optimised out>, fini=<optimised out>,
    rtld_fini=<optimised out>, stack_end=0x7fffffffe088) at libc-start.c:226
#5 0x000000000040c7ad in ?? ()
#6 0x00007fffffffe088 in ?? ()
#7 0x000000000000001c in ?? ()
#8 0x0000000000000001 in ?? ()
#9 0x00007fffffffe375 in ?? ()
#10 0x0000000000000000 in ?? ()
(gdb) q
A debugging session is active.

Inferior 1 [process 20384] will be killed.

Quit anyway? (y or n) ...

Read more...

Alberto Milone (albertomilone) wrote :

1) Does that happen when you save and exit or when you exit without saving?
2) What happens if you do "sudo apt-get --purge remove nvidia-settings" and install the deb package?
3) Please use the package from precise-proposed and collect a backtrace using apport. You can do so by starting apport with "sudo service apport start force_start=1" and triggering the error again.

Alberto Milone (albertomilone) wrote :

4) Does it help if you remove ~/.nvidia-settings* and then you start nvidia-settings?

Vadim Peretokin (vperetokin) wrote :

On Tue, Jan 14, 2014 at 7:32 AM, Alberto Milone <
<email address hidden>> wrote:

> 1) Does that happen when you save and exit or when you exit without saving?
>

This happens when I exit without saving.

> 2) What happens if you do "sudo apt-get --purge remove nvidia-settings"
> and install the deb package?
>

Same thing.

4) Does it help if you remove ~/.nvidia-settings* and then you start
nvidia-settings?

No, still crashes the same.

3) Please use the package from precise-proposed and collect a backtrace
> using apport. You can do so by starting apport with "sudo service apport
> start force_start=1" and triggering the error again.
>
>
I think that has been done.

> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1268027
>
> Title:
> nvidia-settings crashes on exit
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1268027/+subscriptions
>

Alberto Milone (albertomilone) wrote :

if you do what I asked in 3), I'll also get the debugging symbols in the backtrace which, in turn, will help me understand the problem better.

Vadim Peretokin (vperetokin) wrote :

I already am using the package from precise-proposed:

$ apt-cache policy nvidia-settings
nvidia-settings:
  Installed: 331.20-0ubuntu0.0.1
  Candidate: 331.20-0ubuntu0.0.1
  Version table:
 *** 331.20-0ubuntu0.0.1 0
        500 http://mirror.aarnet.edu.au/pub/ubuntu/archive/precise-proposed/main
amd64 Packages
        100 /var/lib/dpkg/status
     304.88-0ubuntu0.0.3 0
        500 http://mirror.aarnet.edu.au/pub/ubuntu/archive/precise-updates/main
amd64 Packages
     304.88-0ubuntu0.0.2 0
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64
Packages
     295.33-0ubuntu1 0
        500 http://mirror.aarnet.edu.au/pub/ubuntu/archive/ precise/main
amd64 Packages

Alberto Milone (albertomilone) wrote :

I was referring to catching a full backtrace using apport so that we also get the debugging symbols

Please start apport with "sudo service apport start force_start=1" and trigger the error again.

Vadim Peretokin (vperetokin) wrote :

I did run the command already, all it does is: "start: Job is already
running: apport", nothing else happens when I crash it. At most, it asks if
the error should be reported and uploaded - I say continue, and nothing
else after that.

On Tue, Jan 14, 2014 at 7:48 PM, Alberto Milone <
<email address hidden>> wrote:

> I was referring to catching a full backtrace using apport so that we
> also get the debugging symbols
>
> Please start apport with "sudo service apport start force_start=1" and
> trigger the error again.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1268027
>
> Title:
> nvidia-settings crashes on exit
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1268027/+subscriptions
>

Alberto Milone (albertomilone) wrote :

weird, that should have sent the errors to https://errors.ubuntu.com.

Here's how to enable the crash interception component, please give it a try:
https://wiki.ubuntu.com/Apport#Ubuntu_12.04_and_later

Changed in nvidia-settings (Ubuntu):
status: Triaged → Incomplete
Vadim Peretokin (vperetokin) wrote :

Nothing happend:

vadi@gooseberry:~$ sudo nano /etc/apport/crashdb.conf
[sudo] password for vadi:
vadi@gooseberry:~$ nvidia-settings ^C
vadi@gooseberry:~$ cat /etc/apport/crashdb.conf | grep problem_types
        # 'problem_types': ['Bug', 'Package'],
vadi@gooseberry:~$ nvidia-settings

** (nvidia-settings:18810): WARNING **: PRIME: Failed to execute child
process "/usr/bin/prime-supported" (No such file or directory)
** Message: PRIME: is it supported? no
Segmentation fault (core dumped)
vadi@gooseberry:~$ ls /var/crash/
vadi@gooseberry:~$

So I purged apport and apport-gtk to remove and config files and reset any
possible "don't show me the crash again" settings, reinstalled them both,
but it still did not come up.

Alberto Milone (albertomilone) wrote :

I think I know what's going on.

Please replace the following line:

# 'problem_types': ['Bug', 'Package'],

with the following:

# 'problem_types': ['Bug', 'Package', 'Crash'],

You can test that apport is running by causing a crash:
sh -c 'kill -SEGV $$'

Vadim Peretokin (vperetokin) wrote :

I had set apport to ignore the file and I found the setting
in ~/.apport-ignore.xml. It would seem purging did not remove that file as
I expected.

Having removed an entry in there, I got the dialog to report the crash,
which I did at:
https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1270490

On Sat, Jan 18, 2014 at 7:22 PM, Alberto Milone <
<email address hidden>> wrote:

> I think I know what's going on.
>
> Please replace the following line:
>
> # 'problem_types': ['Bug', 'Package'],
>
> with the following:
>
> # 'problem_types': ['Bug', 'Package', 'Crash'],
>
> You can test that apport is running by causing a crash:
> sh -c 'kill -SEGV $$'
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1268027
>
> Title:
> nvidia-settings crashes on exit
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1268027/+subscriptions
>

Alberto Milone (albertomilone) wrote :

that page says:

This page does not exist, or you may not have permission to see it.

If you have been to this page before, it is possible it has been removed.

Vadim Peretokin (vperetokin) wrote :

The page is still classified: "The information on this page is private.".

Alberto Milone (albertomilone) wrote :

I can access the page now

Alberto Milone (albertomilone) wrote :

bug #1270490 looks like bug #1226968 which wouldn't make it a regression in precise-proposed

tags: added: bot-stop-nagging
ssm (somestupidmind) wrote :

on amd64 I try to reinstall gtk2-engines-pixbuf for libpixbufloader-xpm.so,
but failed still get segfault, then
got package gtk2-engines-pixbuf_2.24.10-0ubuntu6_amd64.deb , and
dpkg -i gtk2-engines-pixbuf_2.24.10-0ubuntu6_amd64.deb
check with apt-get install -f, and was ok.

Martin Spacek (mspacek) wrote :

I just marked this as a duplicate of Bug #1214508. Alberto Milone, could you assign yourself to that bug?

Reviews-10 (allan3) wrote :

Getting some really odd hack jobs on my computer. Please test and get back to me.

Latest was this Bug from Nividia

To post a comment you must log in.