You are not logged in.

#1 2008-02-12 04:53:09

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

New nvidia drivers cause X crash [solved]

(II) Initializing extension GLX

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x7e) [0x80baf4e]
1: [0xb7fc9420]
2: /usr/bin/X(main+0x2ca) [0x8073d7a]
3: /lib/libc.so.6(__libc_start_main+0xe0) [0xb7d95390]
4: /usr/bin/X(FontFileCompleteXLFD+0x209) [0x80732b1]

This happens with the 171.05 drivers as well.

Everything remotely related to GLX and/or composite is disabled in xorg.conf

Last edited by buttons (2008-02-12 04:58:40)


Cthulhu For President!

Offline

#2 2008-02-12 04:58:24

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: New nvidia drivers cause X crash [solved]

Gar.

Installing the drivers directly provided the fix.  Evidently some cruft had been left in the arch system somewhere, and the driver needed to remove that first.


Cthulhu For President!

Offline

#3 2008-02-12 05:27:39

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

buttons wrote:

Evidently some cruft

What are you talking about? The pkgbuild works fine. Provide *detail*.

Offline

#4 2008-02-12 05:49:55

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: New nvidia drivers cause X crash [solved]

brebs wrote:
buttons wrote:

Evidently some cruft

What are you talking about? The pkgbuild works fine. Provide *detail*.

There are evidently differences in the cleanup scripts executed by each product, since nvidia's works, and arch's does not.

I'd provide detail, but nvidia's installer is a black box.

I suspect there were some stray symlinks pertaining to libwfb and perhaps others.  The only evidence for this is an experiment, where I tried to remove the nvidia driver and reinstall xorg-server, which informed me another libwfb was detected.  I think that counts as cruft.


Cthulhu For President!

Offline

#5 2008-02-12 06:01:27

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

Take a look at /var/abs/extra/x11/nvidia-utils/nvidia.install, to understand libwfb.

Your excuse for not providing detail, is not an excuse. You type commands into the console, and get results out. Show the console i/o.

Offline

#6 2008-02-12 14:21:48

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: New nvidia drivers cause X crash [solved]

brebs wrote:

Your excuse for not providing detail, is not an excuse. You type commands into the console, and get results out. Show the console i/o.

Er, have you ever used nvidia's installer?

sh NVIDIA-Linux-x86-171.05-pkg0.run

...hit enter...

rmmod nvidia
modprobe nvidia

profit?

Installing arch's version produced the error in the first post of this thread.  Nvidia drivers have historically been very edgy when it comes to stray libraries getting loaded by xorg, which is why they include a script which basically searches every known location of said libraries and either deletes them or provides a symlink to the real nvidia library.  It does this entirely transparently to the user, which is why people use it.


Cthulhu For President!

Offline

#7 2008-02-12 15:37:02

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

buttons wrote:

Installing arch's version produced the error in the first post of this thread.

For *one* person. Works fine for me, and works fine for the other zillions of people, otherwise the forums would be flooded, I expect.

I've seen this a million times on the Gentoo forums. It's because the user did something stupid, then the user realizes it, fixes it, and is too embarrased to state how it was fixed. Is this thread going to be any different to that?

Offline

#8 2008-02-12 16:07:02

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: New nvidia drivers cause X crash [solved]

brebs wrote:
buttons wrote:

Installing arch's version produced the error in the first post of this thread.

For *one* person. Works fine for me, and works fine for the other zillions of people, otherwise the forums would be flooded, I expect.

I've seen this a million times on the Gentoo forums. It's because the user did something stupid, then the user realizes it, fixes it, and is too embarrased to state how it was fixed. Is this thread going to be any different to that?

That would be the case, if I knew what I did wrong smile

The simple fact is (and it is very simple) I tried to use the arch package, several packages in fact, and they did not work.  Nvidia's did.  You are assuming I am hiding information from you, which wouldn't be very sporting of me, would it?  Nor would it assist this forum community in any way.

The nvidia base installer uses extra magic that makes assumptions about the user's installation (specifically, that it is broken) the arch PKGBUILD does not.


Cthulhu For President!

Offline

#9 2008-02-12 16:21:38

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

buttons wrote:

uses extra magic

Then explain how it *works* for me.

Offline

#10 2008-02-12 18:00:47

Bestiapeluda
Member
From: Buenos Aires, Argentina
Registered: 2007-10-16
Posts: 181

Re: New nvidia drivers cause X crash [solved]

Im sorry brebs but YOU didnt read the rest of the forums. Im having the same problem as buttons.
And other people are having this problem as well.
When I return home I will try using nvidias installer.

Offline

#11 2008-02-12 20:15:14

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

Bestiapeluda wrote:

YOU didnt read

What thread?

By running nvidia's installer, you're just throwing files onto the filesystem outside of pacman's tracking. And creating problems for yourself later.

Offline

#12 2008-02-13 21:44:23

cirkit
Member
From: San Francisco
Registered: 2008-01-29
Posts: 80
Website

Re: New nvidia drivers cause X crash [solved]

buttons,

Have you been able to find a solution besides using nvidia's installer instead? So far, I am leaning towards using nvidia's installer ... either  that or keep 2.6.24 and downgrade nvidia with the previous package.

Offline

#13 2008-02-13 23:35:12

krigun
Member
From: Norway
Registered: 2005-06-06
Posts: 122
Website

Re: New nvidia drivers cause X crash [solved]

Not sure if this is related, but I'm having issues with the latest nvidia (arch) package myself. Just did a clean install of arch, no testing repo or nothing, running nvidia 169.09-2, nvidia-utils 169.09-1 and xorg-server 1.4.0.90-6, so I know that there are no strange symlinks or other jibberish lying around.

I code on an Ogre3D project, and the code I'm writing works fine on ATI hardware (fglfx), but screen freezes for ~5 seconds on my GF 7950 GS, and just shows a black window. No errors for clues, nothing. Only thing that pops up in dmesg is:

NVRM: Xid (0001:00): 13, 0003 beef3097 00004097 00000208 0000012b 00000002
NVRM: Xid (0001:00): 36,  L1 -> L0

Im thinking about trying the nvidia-harakiri-installer, but not sure if it is of much help.. Anyone else with similar problems?

PS: Of course, nothing wrong with glxinfo and glxgears are spinning like never before.. Strange.

Last edited by krigun (2008-02-13 23:41:07)

Offline

#14 2008-02-13 23:52:59

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: New nvidia drivers cause X crash [solved]

cirkit wrote:

buttons,

Have you been able to find a solution besides using nvidia's installer instead? So far, I am leaning towards using nvidia's installer ... either  that or keep 2.6.24 and downgrade nvidia with the previous package.

Yes, I was.

First, grab the official nvidia installer and see if it works for you.  If it does, nvidia's installer is cleaning up something that shouldn't be there.

In that case, I killed X and did the following:

sudo sh NVIDIA-Linux-x86-171.05-pkg0.run -b

Which, instead of backing up conflicting X files, simply deletes them.  Then,

sudo sh NVIDIA-Linux-x86-171.05-pkg0.run --uninstall
pacman -S testing/nvidia testing/nvidia-utils

This is going to make your xorg very unhappy if for some reason you don't want to use the nvidia drivers again, though I suspect reinstalling xorg-server would clean that up in a hurry.

Obviously this would work with any nvidia installer, but it's always safest to use the most recent one.


Cthulhu For President!

Offline

#15 2008-02-14 02:00:24

cirkit
Member
From: San Francisco
Registered: 2008-01-29
Posts: 80
Website

Re: New nvidia drivers cause X crash [solved]

Well I ended up using nvidia's official installer and I had no problem booting into X .... I did suspect, as mentioned in earlier posts, that there was some kind of faulty symlinking going on with arch's nvidia packages. It sounds like you're right, the nvidia installer from nvidia.com seems to have deleted / cleaned up all unncessary files instead of *backing* them up ...

Offline

#16 2008-02-14 02:03:10

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

buttons wrote:

grab the official nvidia installer

No, don't do that, otherwise you end up with garbage files in /usr/lib64.

Stop suggesting such stupid advice.

Offline

#17 2008-02-14 04:02:24

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: New nvidia drivers cause X crash [solved]

brebs wrote:
buttons wrote:

grab the official nvidia installer

No, don't do that, otherwise you end up with garbage files in /usr/lib64.

Stop suggesting such stupid advice.

All right, I've been kind.  I'd like you to please read the rest of my post, where I then tell the user to uninstall it.

Garbage files are automatically cleaned up, and nothing has been added to /usr/lib64.

You are not contributing to this thread.


Cthulhu For President!

Offline

#18 2008-02-14 11:56:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

This is what I use, on x86_64:

/var/abs/local/nvidia/PKGBUILD

pkgname=nvidia
pkgver=171.05
_kernver=2.6.24.2
pkgrel=3
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686"   ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('kernel26' 'nvidia-utils')
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=nvidia.install
source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)

build() {
  # Extract
  cd $startdir/src/
  sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
  cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
  
  # Any extra patches are applied in here...

  cd usr/src/nv/
  ln -s Makefile.kbuild Makefile
  make SYSSRC=/lib/modules/${_kernver}/build module 
  
  # install kernel module
  mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
  install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/

  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}

/var/abs/local/nvidia-utils/PKGBUILD

pkgname=nvidia-utils
pkgver=171.05
_nver=${pkgver}
pkgrel=1
pkgdesc="NVIDIA drivers utilities and libraries."
arch=(i686 x86_64)
[ "$CARCH" = "i686"   ] && ARCH=x86      
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('xorg-server')
conflicts=('libgl' 'libgl-dri' 'ati-fglrx-utils' 'nvidia-legacy-utils' \
           'nvidia-71xx-utils' 'nvidia-96xx-utils')
provides=('libgl')
install=nvidia.install
source=(http://us.download.nvidia.com/XFree86/Linux-${ARCH}/${_nver}/NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run)
#md5sums=('af434d27f9b089ac1cb216f55f9b0f33' 'bf8d68d66757096c3ab17653230bf2a8')
#[ "$CARCH" = "x86_64" ] && md5sums=('e87b354355cce583646004dbfea1f09a' 'bf8d68d66757096c3ab17653230bf2a8')
options=(docs !strip)

build()
{
  # override nvida install routine and do it the long way.
  cd $startdir/src/
  sh NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run --extract-only
  cd NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/

  mkdir -p $startdir/pkg/usr/{lib,bin,share/applications,share/pixmaps,man/man1}
  mkdir -p $startdir/pkg/usr/lib/xorg/modules/{extensions,drivers}
  mkdir -p $startdir/pkg/usr/share/licenses/nvidia/
  
  install lib/{libGLcore.so.${pkgver},libGL.so.${pkgver},libnvidia-cfg.so.${pkgver},tls/libnvidia-tls.so.${pkgver}} \
       $startdir/pkg/usr/lib/ || return 1
  install -m644 share/man/man1/* $startdir/pkg/usr/man/man1/ || return 1
  rm $startdir/pkg/usr/man/man1/nvidia-installer.1.gz || return 1
  install X11R6/lib/libXv* $startdir/pkg/usr/lib/ || return 1
  install -m644 share/applications/nvidia-settings.desktop $startdir/pkg/usr/share/applications/ || return 1
  # fix nvidia .desktop file
  sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $startdir/pkg/usr/share/applications/nvidia-settings.desktop
  install -m644 share/pixmaps/nvidia-settings.png $startdir/pkg/usr/share/pixmaps/ || return 1
  install X11R6/lib/modules/libnvidia-wfb.so.$pkgver $startdir/pkg/usr/lib/xorg/modules || return 1
  install X11R6/lib/modules/drivers/nvidia_drv.so $startdir/pkg/usr/lib/xorg/modules/drivers || return 1
  install X11R6/lib/modules/extensions/libglx.so.$pkgver $startdir/pkg/usr/lib/xorg/modules/extensions || return 1
  install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $startdir/pkg/usr/bin/ || return 1
  cd $startdir/pkg/usr/lib/
  ln -s /usr/lib/libGL.so.$pkgver libGL.so || return 1
  ln -s /usr/lib/libGL.so.$pkgver libGL.so.1 || return 1
  ln -s /usr/lib/libGLcore.so.$pkgver libGLcore.so.1 || return 1
  ln -s /usr/lib/libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1 || return 1
  ln -s /usr/lib/libnvidia-tls.so.$pkgver libnvidia-tls.so.1 || return 1
  cd $startdir/pkg/usr/lib/xorg/modules
  ln -s /usr/lib/xorg/modules/libnvidia-wfb.so.$pkgver libwfb.so
  cd $startdir/pkg/usr/lib/xorg/modules/extensions
  ln -s /usr/lib/xorg/modules/extensions/libglx.so.$pkgver libglx.so || return 1

  install -m644 $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/LICENSE $startdir/pkg/usr/share/licenses/nvidia/ || return 1
  install -D -m644 $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/share/doc/README.txt $startdir/pkg/usr/share/doc/nvidia/README || return 1
  #install -D -m644 $startdir/src/supported-cards.txt $startdir/pkg/usr/share/doc/nvidia/supported-cards.txt || return 1
  
  find $startdir/pkg/usr -type d -exec chmod 755 {} \;
}

They work fine.

Offline

#19 2008-02-15 13:49:50

krigun
Member
From: Norway
Registered: 2005-06-06
Posts: 122
Website

Re: New nvidia drivers cause X crash [solved]

Alright, I tested the PKGBUILDS that brebs posted (171.05), but I'm still having the same issues. Guess the rest of you guys have fixed your systems and/or don't care anymore. Anyways, I also noticed that my glxgears framerate has dropped by ~2000 fps since my nvidia drivers were OK (I had ~13000 fps, now have ~11000, and yes... I know, glxgears is not a very good benchmark, but for me it is an indicator of GPU health smile ).

Im going to compile my own 2.6.<version_that_works> and check which nvidia drivers work. Sick and tired of mocking around with this stuff.

Offline

#20 2008-02-17 15:03:46

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

See libwfb.so simplification bug, which will fix this problem, assuming it's caused by xorg and nvidia fighting over libwfb.so

Provide some useful feedback, if affected:

find /usr/lib -name libwfb\* | xargs pacman -Qo

(This will show "No package owns" for symlinks created by the .install files for xorg-server and nvidia-utils)

Those interested can take a careful look at the ln commands in /var/abs/extra/x11/xorg-server/xorg-server.install and /var/abs/extra/x11/nvidia-utils/nvidia.install

Offline

#21 2008-02-17 19:44:19

krupintupple
Member
From: toronto
Registered: 2007-06-11
Posts: 29

Re: New nvidia drivers cause X crash [solved]

to be frank, the ease at which my system has been running over the past year has caused my knowledge of its inner workings to degrade a little, so imagine my surprise when this exact issue effects me. X wouldn't even load, so I popped in a livecd and used the missing file from nvidia's website, as all of my attempts to fix this otherwise were not working.

it's very relativist, but the nvidia installer worked for me, although i wish i could've got it working without the official driver...

Offline

#22 2008-02-21 03:04:22

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: New nvidia drivers cause X crash [solved]

See module thread for how this error can come about, and why I was blissfully unaffected by it.

Offline

#23 2008-03-31 12:51:36

machete
Member
Registered: 2008-03-31
Posts: 5

Re: New nvidia drivers cause X crash [solved]

hi everyone,

when starting X my screen turns black showing a non-blinking cursor in the upper left. keyboard commands don't seem to get recognized after that, meaning i can't do "ctrl+alt+del/+backspace" etc.. after resetting my machine the X log shows the already known error:

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x7e) [0x80cf9ce]
1: [0xb7f9b420]
2: /usr/bin/X(main+0x2ca) [0x8073d2a]
3: /lib/libc.so.6(__libc_start_main+0xe6) [0xb7d5d396]
4: /usr/bin/X(FontFileCompleteXLFD+0x209) [0x8073261]

Fatal server error:
Caught signal 11.  Server aborting

this happens using:
kernel26 (2.6.24.4-1)
nvidia (169.12-2)
nvidia-utils (169.12-1)

i jumped back to kernel 2.6.23. i haven't tried to compile the kernel or the nvidia modules myself yet. i just wanna check if there's a way to get it to work the "pacman way" that i might have missed since installing via the nvidia-installer-script is no solution for me.

any help would be appreciated.

Offline

#24 2008-04-01 13:07:21

machete
Member
Registered: 2008-03-31
Posts: 5

Re: New nvidia drivers cause X crash [solved]

i had a read on the bugtracker:

brain0 wrote:

A common problem with old installations is that we used the nvidia installer in the past, or that people themselves run it. That often results in broken nvidia drivers, X server segfaults and such.

Basically, nvidia may use leftover libraries which don't match its version. Look for /{,usr/}lib/tls directories, which usually don't exist on Arch but are often created by nvidia's installer. Also, check for all the libraries in the nvidia-utils package if there is another version of them somewhere.

i found the /usr/lib/tls folder on my system, which contained leftover files from nividia-9742. removing it solved the problem for me.

Offline

#25 2008-06-15 06:16:36

krupintupple
Member
From: toronto
Registered: 2007-06-11
Posts: 29

Re: New nvidia drivers cause X crash [solved]

machete wrote:

i had a read on the bugtracker:

brain0 wrote:

A common problem with old installations is that we used the nvidia installer in the past, or that people themselves run it. That often results in broken nvidia drivers, X server segfaults and such.

Basically, nvidia may use leftover libraries which don't match its version. Look for /{,usr/}lib/tls directories, which usually don't exist on Arch but are often created by nvidia's installer. Also, check for all the libraries in the nvidia-utils package if there is another version of them somewhere.

i found the /usr/lib/tls folder on my system, which contained leftover files from nividia-9742. removing it solved the problem for me.

hah, had this happen to me what with the recent nvidia update coming down the pipe. deleting /usr/lib/tls and sticking with the arch build did it for me.

sorry for casting raise dead on this thread, but there might be others who would benefit from reading it!

Offline

Board footer

Powered by FluxBB