You are not logged in.

#1 2012-01-22 00:23:26

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Pacman induces kernel panic (intermittent)

Hello Archers,

I've got a fresh Arch install. I'm working my way through syncing packages I want from pacman. Two times now, a call to "pacman -S" has resulted in a kernel panic requiring a hard reboot.

I've booted into my Arch CD - it was still sitting in the drive anyway smile - and recovered the kernel and pacman logs.

$ tail -22 kernel.log

Jan 22 09:43:42 localhost kernel: [   82.840043] NET: Unregistered protocol family 10
Jan 22 09:44:09 localhost kernel: [  110.618188] NET: Registered protocol family 10
Jan 22 09:44:09 localhost kernel: [  110.618491] PERCPU: allocation failed, size=252 align=4, failed to allocate new chunk
Jan 22 09:44:09 localhost kernel: [  110.618494] Pid: 751, comm: modprobe Not tainted 3.2.1-1-ARCH #1
Jan 22 09:44:09 localhost kernel: [  110.618496] Call Trace:
Jan 22 09:44:09 localhost kernel: [  110.618502]  [<c0473180>] ? printk+0x1d/0x1f
Jan 22 09:44:09 localhost kernel: [  110.618506]  [<c01f335b>] pcpu_alloc+0x7ab/0x810
Jan 22 09:44:09 localhost kernel: [  110.618517]  [<f830fe1b>] ? __addrconf_sysctl_register+0xab/0xf0 [ipv6]
Jan 22 09:44:09 localhost kernel: [  110.618521]  [<c03d9b4e>] ? neigh_parms_alloc+0x6e/0x100
Jan 22 09:44:09 localhost kernel: [  110.618524]  [<c047afc2>] ? _raw_write_unlock_bh+0x22/0x30
Jan 22 09:44:09 localhost kernel: [  110.618526]  [<c01f33cf>] __alloc_percpu+0xf/0x20
Jan 22 09:44:09 localhost kernel: [  110.618529]  [<c0428ee8>] snmp_mib_init+0x18/0x30
Jan 22 09:44:09 localhost kernel: [  110.618539]  [<f83111a1>] ipv6_add_dev+0x121/0x440 [ipv6]
Jan 22 09:44:09 localhost kernel: [  110.618548]  [<f80c52da>] addrconf_init+0x4b/0x1a1 [ipv6]
Jan 22 09:44:09 localhost kernel: [  110.618551]  [<c03ca5ad>] ? register_pernet_subsys+0x2d/0x40
Jan 22 09:44:09 localhost kernel: [  110.618559]  [<f80c5179>] inet6_init+0x179/0x280 [ipv6]
Jan 22 09:44:09 localhost kernel: [  110.618562]  [<c0101125>] do_one_initcall+0x35/0x170
Jan 22 09:44:09 localhost kernel: [  110.618568]  [<f80c5000>] ? 0xf80c4fff
Jan 22 09:44:09 localhost kernel: [  110.618570]  [<c0182acd>] sys_init_module+0x91d/0x1af0
Jan 22 09:44:09 localhost kernel: [  110.618576]  [<c047be1f>] sysenter_do_call+0x12/0x28
Jan 22 09:44:10 localhost kernel: [  111.030054] NET: Unregistered protocol family 10
Jan 22 09:44:54 localhost kernel: [  155ai.417609] EXT2-fs (sda10): warning: mounting unchecked fs, running e2fsck is recommended

$ tail -5 pacman.log

[2012-01-22 09:43] synchronizing package lists
[2012-01-22 09:43] starting full system upgrade
[2012-01-22 09:44] Running 'pacman -S cpio'
[2012-01-22 09:44] installed cpio (2.11-2)
[2012-01-22 10:17] Running 'pacman -S gvim'

$ lspci -nnmvk
Pastebin

$ lsmod

Module                  Size  Used by
ext2                   54892  1 
snd_hda_codec_hdmi     21777  4 
snd_hda_codec_realtek   149985  1 
nouveau               680909  0 
snd_usb_audio          75510  0 
snd_usbmidi_lib        15644  1 snd_usb_audio
video                   9716  1 nouveau
snd_rawmidi            15014  1 snd_usbmidi_lib
mxm_wmi                 1101  1 nouveau
drm_kms_helper         22653  1 nouveau
ttm                    45781  1 nouveau
drm                   151588  3 ttm,drm_kms_helper,nouveau
agpgart                22255  2 drm,ttm
i2c_algo_bit            4487  1 nouveau
arc4                    1086  2 
snd_hda_intel          20050  0 
snd_hda_codec          75987  3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_pcm                60595  4 snd_hda_codec,snd_hda_intel,snd_usb_audio,snd_hda_codec_hdmi
snd_page_alloc          5869  2 snd_pcm,snd_hda_intel
snd_hwdep               4942  2 snd_hda_codec,snd_usb_audio
firewire_ohci          27475  0 
uvcvideo               57039  0 
videodev               71421  1 uvcvideo
ath9k                  77023  0 
snd_seq_device          4284  1 snd_rawmidi
snd_timer              15438  1 snd_pcm
usb_storage            35343  0 
media                   8641  2 videodev,uvcvideo
snd                    44501  11 snd_timer,snd_seq_device,snd_hwdep,snd_pcm,snd_hda_codec,snd_hda_intel,snd_rawmidi,snd_usbmidi_lib,snd_usb_audio,snd_hda_codec_realtek,snd_hda_codec_hdmi
firewire_core          43511  1 firewire_ohci
i2c_piix4               7084  0 
ath9k_common            1604  1 ath9k
uas                     6440  0 
wmi                     7263  1 mxm_wmi
i2c_core               16816  6 i2c_piix4,videodev,i2c_algo_bit,drm,drm_kms_helper,nouveau
usblp                   9335  0 
floppy                 48805  0 
serio_raw               3357  0 
processor              23026  0 
pcspkr                  1375  0 
k10temp                 2139  0 
crc_itu_t               1095  1 firewire_core
ath9k_hw              333834  2 ath9k_common,ath9k
button                  3614  1 nouveau
evdev                   7278  0 
joydev                  7439  0 
r8169                  41700  0 
soundcore               5018  1 snd
ath                    11990  3 ath9k_hw,ath9k_common,ath9k
mac80211              203700  1 ath9k
cfg80211              147716  3 mac80211,ath,ath9k
rfkill                 12470  1 cfg80211
mii                     3407  1 r8169
sp5100_tco              3760  0 
aes_generic            25702  16 
xts                     1929  8 
gf128mul                5950  1 xts
hid_logitech           14192  0 
ff_memless              3895  1 hid_logitech
dm_crypt               13591  1 
dm_mod                 60337  17 dm_crypt
usbhid                 31263  1 hid_logitech
hid                    66367  2 usbhid,hid_logitech
sr_mod                 13244  0 
cdrom                  31437  1 sr_mod
sd_mod                 26211  7 
pata_jmicron            1644  2 
ohci_hcd               19119  0 
pata_atiixp             2984  0 
ahci                   17529  2 
pata_acpi               2388  0 
libahci                16783  1 ahci
libata                146606  5 libahci,pata_acpi,ahci,pata_atiixp,pata_jmicron
ehci_hcd               36010  0 
xhci_hcd               69730  0 
scsi_mod              112826  5 libata,sd_mod,sr_mod,uas,usb_storage
usbcore               122501  11 xhci_hcd,ehci_hcd,ohci_hcd,usbhid,usblp,uas,usb_storage,uvcvideo,snd_usbmidi_lib,snd_usb_audio
usb_common               622  1 usbcore
ext4                  377865  2 
crc16                   1091  1 ext4
jbd2                   60273  1 ext4
mbcache                 4281  2 ext4,ext2

$ grep "^MODULES\|^HOOKS\|^DAEMONS" /etc/{rc,mkinitcpio}.conf

/mnt/etc/rc.conf:MODULES=()
/mnt/etc/rc.conf:DAEMONS=(hwclock syslog-ng dbus iptables network netfs crond sshd)
/mnt/etc/mkinitcpio.conf:MODULES="ext4"
/mnt/etc/mkinitcpio.conf:HOOKS="base udev autodetect pata scsi sata keymap lvm2 encrypt lvm2 resume filesystems usbinput"

It seems to happen when pacman tries to use the network. The kernel log also seems to suggest a network problem.

$ ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 6c:f0:49:ee:a7:b7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 94:0c:6d:c9:63:26 brd ff:ff:ff:ff:ff:ff

$ ip route

default via 192.168.1.1 dev eth0  metric 202 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2  metric 202 

I haven't had any kernel panics when using any other network programs, just pacman. I can ping google by name and I can scp to my laptop running on the WLAN.

I tried googling, using the wiki, and searching the forums, but all kernel-panic related problem seem to happen at boot time, not in the process of using pacman.

Some other things about my system that may or may not affect things: it's an LVM over LUKS over LVM, the lowest LVM sits across several hard-drives, and it's got an AMD64 processor but I installed off an i686 iso.

Does anyone have any ideas?

Offline

#2 2012-01-22 02:30:25

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: Pacman induces kernel panic (intermittent)

I just generated another kernel panic while trying to sync fuse, openssh and sshfs from pacman.

I now notice something not captured by either the kernel log or the pacman log. Before the call trace begins, I also get this message:

:: Retrieving packages from extra...
[ 8340.507133] Kernel panic - not syncing: cannot create neighbour cache statistics

Still looking for ideas here. It's really weird that pacman can work properly for a while and then all of a sudden causes a kernel panic.

Offline

#3 2012-01-22 02:41:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Pacman induces kernel panic (intermittent)

Seems like a problem being induced by r8169. pacman is just the victim.

Last edited by falconindy (2012-01-22 02:42:07)

Offline

#4 2012-01-22 02:52:08

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: Pacman induces kernel panic (intermittent)

falconindy wrote:

Seems like a problem being induced by r8169. pacman is just the victim.

Ta for that.

I guess a work-around if it keeps happening is that I could use the wireless card.

What do you recommend as a way to proceed?

Offline

#5 2012-01-22 12:47:38

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: Pacman induces kernel panic (intermittent)

file a kernel bug report.

Offline

Board footer

Powered by FluxBB