LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-30-2004, 04:52 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Segmentation fault + error on bootup


EDIT Pinpointed the problem.. The explanation starts at post #8

I've been having alot of trouble with slack 10.1 lately on my laptop (presario x1000). I witnessed some file system corruption when i recompiled a kernel, but that's so far solved.

Now (with a clean install of kernel 2.4.28 from slack's site), when i boot up, i get a Segmentation fault. Its too fast to read, but i think it comes right after agpgart.

Also, if i login, and type dmesg, i cant see what happened in booting, all i see is pages and pages of this

The only weird thing i see now is that i get these ... 'signal errors' (signal 2) with Mplayer whenever i move any folder, surf the web, etc.. while watching an avi or dvd...

Any help appreciated.
Thanks

Code:
i810_rng: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
hw_random: RNG not detected
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
hw_random: RNG not detected
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5

Last edited by xushi; 01-02-2005 at 04:48 AM.
 
Old 12-30-2004, 07:35 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
I would try to disable hotplug and load the needed modules in /etc/rc.d/rc.modules as you use a 2.4
kernel, see if it fixes the problem...
 
Old 12-30-2004, 09:09 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Hello again Cedrik

You sure do hate hotplug. =). Btw this problem comes before hotplug is being loaded. I've recompiled the kernel, and got rid of PCI Express, so that's gone. But i still have a
hw_random: RNG not detected
i810_rng: RNG not detected

errors as you can see. I'ts probably the usb mouse (which it detects, but is not working atm). As for data corruption, ill keep an eye out for that today and see if it happens again or not.

Also, slight off topic, When i recompile the kernel, is it safe to use 'checkinstall' instead of 'make install' ? If not, is it safe to remove kernel-ide-2.4.28 from pkgtool, since i recompile anyway?


Code:
Linux version 2.4.28 (root@xushitop) (gcc version 3.3.4) #10 Thu Dec 30 14:35:02 GMT 2004
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00023f3a380067ca]
intel8x0_measure_ac97_clock: measured 49431 usecs
intel8x0: clocking to 48000
i810_rng: RNG not detected
hw_random: RNG not detected
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Guessed IRQ 5 for device 00:1d.7
PCI: Setting latency timer of device 00:1d.7 to 64
ehci_hcd 00:1d.7: Intel Corp. 82801DB USB2
ehci_hcd 00:1d.7: irq 5, pci mem f8c0a000
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:1d.7: enabled 64bit PCI DMA
PCI: cache line size of 32 is not supported by device 00:1d.7
ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 6 ports detected
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Guessed IRQ 10 for device 00:1d.0
PCI: Sharing IRQ 10 with 01:00.0
PCI: Sharing IRQ 10 with 02:00.0
PCI: Setting latency timer of device 00:1d.0 to 64
uhci.c: USB UHCI at I/O 0x48c0, IRQ 10
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Guessed IRQ 5 for device 00:1d.1
PCI: Setting latency timer of device 00:1d.1 to 64
uhci.c: USB UHCI at I/O 0x48e0, IRQ 5
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Guessed IRQ 5 for device 00:1d.2
PCI: Sharing IRQ 5 with 00:1f.1
PCI: Sharing IRQ 5 with 02:04.0
PCI: Setting latency timer of device 00:1d.2 to 64
uhci.c: USB UHCI at I/O 0x4c00, IRQ 5
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
hub.c: new USB device 00:1d.7-5, assigned address 2
usb.c: USB device 2 (vend/prod 0x4b4/0x6830) is not claimed by any active driver.
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hub.c: new USB device 00:1d.0-1, assigned address 2
hw_random: RNG not detected
usb.c: USB device 2 (vend/prod 0x45e/0x39) is not claimed by any active driver.
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
hub.c: new USB device 00:1d.0-2, assigned address 3
usb.c: USB device 3 (vend/prod 0x4b8/0x5) is not claimed by any active driver.
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
i810_rng: RNG not detected
hw_random: RNG not detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: _NEC      Model: DVD_RW ND-2510A   Rev: 2.04
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0
sr1: scsi-1 drive
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
usb.c: registered new driver usbmouse
input0: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM) on usb2:2.0
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
usb.c: registered new driver usblp
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
printer.c: v0.13: USB Printer Device Class driver
 
Old 12-30-2004, 09:15 AM   #4
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Bah, as i finished this post, the laptop froze on me, and the caps lock kept flashing...

This is not turning out well =/ Is there anyway i can find out what's going on?

dmesg:

Code:
kernel BUG at page_alloc.c:142!
invalid operand: 0000
CPU:    0
EIP:    0010:[<c012fce3>]    Not tainted
EFLAGS: 00013206
eax: c0301568   ebx: c1953f30   ecx: 00004000   edx: c03012e0
esi: 00000000   edi: f1d67598   ebp: 62400000   esp: f1f1fe48
ds: 0018   es: 0018   ss: 0018
Process java (pid: 4012, stackpage=f1f1f000)
Stack: c0301468 00037000 c1000020 c1953f60 c03013b8 c1030020 00003202 fffffffe
       0000c2ff 31bfb067 00166000 f1d67598 62400000 c0124b1c c1953f30 c1953f30
       00000166 00400000 62800000 00000000 62800000 f3657624 00000260 6d900000
Call Trace:    [<c0124b1c>] [<c01274d5>] [<c0115e0f>] [<c011a14c>] [<c011fae5>]
  [<c01088cc>] [<c01e0a34>] [<c01e0b3f>] [<c0109fbd>] [<c0114a82>] [<c0108ad4>]

Code: 0f 0b 8e 00 23 18 2c c0 8b 53 08 85 d2 74 08 0f 0b 90 00 23

root@xushitop:~#

Last edited by xushi; 12-30-2004 at 09:19 AM.
 
Old 12-30-2004, 10:00 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Hey I find hotplug not bad but in your first post I saw many lines with "hotplug" keyword
so I tought it won't hurt to give a try to disable it.

Did you compile hw_random as module ? If yes, what happen when you rmmod, then
modprobe it ?

For your last post, what was your last action and what programs were running in your comp ?
 
Old 12-30-2004, 10:20 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by Cedrik
Did you compile hw_random as module ? If yes, what happen when you rmmod, then
modprobe it ?
I don't think i did, i didn't see it in the kernel setup when i was modifying a few things.. And its not loaded, if i do try to modprobe it i get
Code:
root@xushitop:~# modprobe hw_random
/lib/modules/2.4.28/kernel/drivers/char/hw_random.o: init_module: No such device
/lib/modules/2.4.28/kernel/drivers/char/hw_random.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output fromdmesg
/lib/modules/2.4.28/kernel/drivers/char/hw_random.o: insmod /lib/modules/2.4.28/kernel/drivers/char/hw_random.o failed
/lib/modules/2.4.28/kernel/drivers/char/hw_random.o: insmod hw_random failed
Is it important?

Quote:
For your last post, what was your last action and what programs were running in your comp ?
The usual KDE, xmms, xchat, but it happened when i tried loading Azureus. Laptop froze, and caps lock kept flashing. When i rebooted, i tried running it again, but it refused, untill i tried through the console. Afterwards i ran dmesg and got the message above.

=============================
EDIT:
=============================

Here's another one just now... while im using mplayer. I think all this might have to do with hw_random.

Code:
hw_random: RNG not detected
kernel BUG at page_alloc.c:274!
invalid operand: 0000
CPU:    0
EIP:    0010:[<c0130251>]    Not tainted
EFLAGS: 00010202
eax: 01000044   ebx: c03013b8   ecx: 0002077b   edx: 00001000
esi: c03013f0   edi: 00000000   ebp: c1616730   esp: ee0b9d90
ds: 0018   es: 0018   ss: 0018
Process gmplayer (pid: 14149, stackpage=ee0b9000)
Stack: 00001000 f65f8c20 0001f77b 0001f778 00000286 00000000 c03013b8 c03013b8
       c030156c 00000001 00000000 c0130559 c0220e27 e0790e40 e0790f60 f648bbc0
       c03013b8 c0301568 000000f0 f6510984 00000202 00000010 c1c0fdc4 000000f0
Call Trace:    [<c0130559>] [<c0220e27>] [<c0130797>] [<c012e02a>] [<c012e250>]
  [<c0138f70>] [<c0139016>] [<c0139257>] [<c0139b1c>] [<c012eac8>] [<c018353f>]
  [<c0183460>] [<c012828e>] [<c01288fd>] [<c0128b86>] [<c0129140>] [<c01292b5>]
  [<c0129140>] [<c0114824>] [<c0136ef8>] [<c0108a93>]

Code: 0f 0b 12 01 23 18 2c c0 8b 45 18 a9 80 00 00 00 74 08 0f 0b

root@xushitop:~#

Last edited by xushi; 12-30-2004 at 10:25 AM.
 
Old 12-30-2004, 11:50 AM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
If you're using hotplug, you could try to add hw_random to /etc/hotplug/blacklist as your
hardware does not seem have a random generator (I guess that from your output of
modprobe hw_random).
 
Old 01-02-2005, 04:39 AM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Still need help =/ I'm not sure if i should start a new thread or not, so ill just continue here..

I've managed to get rid of almost all the problems but two... I added the following to the blacklist, and dmesg is much cleaner now. I'd opt them out with a kernel recompile, but... see below.. =/
snd-intel8x0m
fglrx (drivers kept hanging)
hw_random
pciehp
pci_hotplug
shpchp
i810_rng
scsi_hostadapter

But..

I still am getting one Segmentation fault in bootup, and its from agpgart.
Code:
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 816M
agpgart: Detected Intel(R) 855PM chipset
Unable to handle kernel NULL pointer dereference at virtual address 000000c0
 printing eip:
c01143f6
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[<c01143f6>]    Not tainted
EFLAGS: 00010246
eax: 000000fe   ebx: 00000000   ecx: c1a5541c   edx: c1a5541c
esi: c1a5541c   edi: 00000000   ebp: 00000000   esp: f76a7e98
ds: 0018   es: 0018   ss: 0018
Process modprobe.old (pid: 35, stackpage=f76a7000)
Stack: c100001c c1a5541c 00000000 00000000 c01146a7 c1a5541c 00000173 f76a7eb8
       00000000 c100001c f71c0000 00a55400 00000006 f8b2fa0a c1a5541c 00000040
       00000173 371c0000 00010000 f71fffff f8b2e000 00000000 00000000 00000100
Call Trace:    [<c01146a7>] [<f8b2fa0a>] [<f8b3669c>] [<f8b36932>] [<f8b37e80>]
  [<c0118600>] [<f8b2e060>] [<c0108a93>]
 
Code: 2b 8b c0 00 00 00 c1 f9 02 8d 04 89 8d 04 c1 8d 04 81 8d 04
Sometimes it goes through, but says can't modprobe agpgart due to some error (i'll post it when i see it again).

The second problem i guess i'll solve later with a new thread.. Its got to do with the fact that my laptop totally fails on me whenever i recompile the kernel (2.4.28).. All i want to do is enable highmem (1Gig), and all i get when i recompile the kernel are segmentation faults, kernel panicks, laptop hangs, data corruption, etc... (like the random firefox, mplayer seg faults above) Leading me to revert back to the default ide kernel from slack/pb. I'm going to try not modifying anything, and just do a recompile, and see if it still happens.

But let me solve one problem at a time =)
Thanks.

Last edited by xushi; 01-02-2005 at 04:40 AM.
 
Old 01-02-2005, 11:22 AM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
You could try a memory test :
http://freshmeat.net/projects/memtest86/

Download and burn the iso image and boot from the CD, it will test your memory

Another thing to test is play with your bios values for AGP (disable fastwrite, etc...) you can put
agpart in hotplug too or boot with kernel parameter option : "noagp" or append="noagp" in a
lilo.conf
 
Old 01-03-2005, 05:37 PM   #10
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by Cedrik
You could try a memory test :
http://freshmeat.net/projects/memtest86/
Download and burn the iso image and boot from the CD, it will test your memory
Thanks. I let it run for a few hours.. It did the tests 5 times over, and thankfully there were no errors. My memory is alright.

Quote:
Another thing to test is play with your bios values for AGP (disable fastwrite, etc...) you can put
agpart in hotplug too or boot with kernel parameter option : "noagp" or append="noagp" in a
lilo.conf
The laptop's BIOS is simple.. no AGP settings there. However, if i put agpgart in the blacklist, wont that prevent X from loading up?

As for the problem.. I've almost pinpointed it. Everytime i recompiled the kernel, i changed three things..
Toshiba Laptop support (n)
Dell Laptop Support (n)
High Memory Support (4Gb)
The first two, because my laptop is a Compaq (HP) Presario X1000, and the third because i have 1Gb ram. But this time, i haven't changed anything, just did a recompile, and so far everything still works fine. So i guess my problems are coming from one of these three, most probably the High mem support...

I could just enable that to make sure, but it will take time to recompile, and i don't want to risk any data corruption again.. I'm just confused to why the problems are happening, especially when i have 1Gig of ram..
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation Fault ERROR bluechicken Programming 8 06-30-2005 07:02 AM
Segmentation Fault Error ashwinipahuja Programming 1 03-29-2004 02:09 PM
Cannot boot; Segmentation Fault Error Evan P. Linux - Newbie 2 11-24-2003 09:06 AM
The Gimp: Segmentation Fault error Mega Man X Linux - Software 8 10-04-2003 08:07 PM
Getting segmentation fault error with Xmms Unreal7000 Linux - Software 1 06-03-2003 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration