How do I stop run-parts?

R Kimber rkimber at ntlworld.com
Tue Jul 18 16:52:30 UTC 2006


On Sat, 15 Jul 2006 23:08:19 +0100
glinsvad <ulist at gs1.ubuntuforums.org> wrote:

> First we'd bette figure out exactly what run-parts is running:

>   top -b -n 1 -c | grep run-parts | grep -v "grep run-parts"

Thanks for responding so helpfully.

As far as the above command is concerned, I decided to reboot before I
got your message, on the ground that we have a heatwave and the machine
was just getting too hot.  But I will use this next time anything like
this happens.

> If anythings shows up, you should probably post it in this thread.
> Without knowing exactly what is persistently running, it is kinda hard
> to kill it no? Also you mentioned similar problems under breezy - how
> similar I ask?

Previously, I had a process taking up 100% of CPU:
29477 root      25   0  7024 1516 1112 R  100  0.1  52:48.84 sh

this seemed to be related to run-parts:-

29477 ?    Rs    49:20 /bin/sh -c    run-parts --report /etc/cron.hourly

My guess at the time was that it might have been related to logrotate
or logcheck

On this occasion, although I don't understand the output, it looks as
though there was an oops while run-parts was running

Jul 15 19:22:52 infinity kernel: [ 1083.232991] Unable to handle kernel
NULL pointer dereference at 0000000000000008 RIP: Jul 15 19:22:52
infinity kernel: [ 1083.233003] <ffffffff802100d0>{prio_tree_remove
+160} Jul 15 19:22:52 infinity kernel: [ 1083.233016] PGD 0 Jul 15
19:22:52 infinity kernel: [ 1083.233020] Oops: 0000 [1] PREEMPT SMP Jul
15 19:22:52 infinity kernel: [ 1083.233024] CPU 0 Jul 15 19:22:52
infinity kernel: [ 1083.233026] Modules linked in: binfmt_misc
ipt_limit iptable_mangle ipt_LOG ipt_MASQUERADE ip_nat ipt_TOS
ipt_REJECT ip_conntrack_irc ip_conntrack_ftp ipt_state ip_conntrack
nfnetlink iptable_filter ip_tables ipv6 ppdev cpufreq_userspace
cpufreq_stats freq_table cpufreq_powersave cpufreq_ondemand
cpufreq_conservative nls_iso8859_1 nls_cp437 vfat fat md_mod dm_mod
w83627hf hwmon_vid eeprom i2c_isa lp sg snd_seq_dummy snd_seq_oss
snd_seq_midi snd_seq_midi_event tsdev snd_seq parport_pc parport sd_mod
snd_via82xx pcspkr i2c_viapro gameport psmouse snd_ac97_codec
snd_ac97_bus i2c_core serio_raw snd_pcm_oss snd_mixer_oss snd_pcm
snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd
soundcore shpchp pci_hotplug tg3 evdev ext3 jbd usb_storage scsi_mod
ide_generic ehci_hcd uhci_hcd usbcore ide_disk via82cxxx generic ide_cd
cdrom pdc202xx_new thermal processor fan capability commoncap vga16fb
cfbcopyarea vgastate cfbimgblt cfbfillrect fbcon tileblit font bitblit
softcu Jul 15 19:22:52 infinity kernel: sor Jul 15 19:22:52 infinity
kernel: [ 1083.233083] Pid: 8144, comm: run-parts Tainted: G   M
2.6.15-26-amd64-k8 #1 Jul 15 19:22:52 infinity kernel: [ 1083.233087]
RIP: 0010:[prio_tree_remove+160/224] <ffffffff802100d0>{prio_tree_remove
+160} Jul 15 19:22:52 infinity kernel: [ 1083.233094] RSP:
0018:ffff81006693fdf8  EFLAGS: 00010286 Jul 15 19:22:52 infinity
kernel: [ 1083.233099] RAX: ffff81004c9b6248 RBX: ffff81004c9b6248 RCX:
ffff81006693fe08 Jul 15 19:22:52 infinity kernel: [ 1083.233104] RDX:
ffff810066f27590 RSI: 0000000000000000 RDI: ffff81007da77680 Jul 15
19:22:52 infinity kernel: [ 1083.233108] RBP: ffff81007da77680 R08:
ffff81006693fe10 R09: 0000000000000000 Jul 15 19:22:52 infinity kernel:
[ 1083.233112] R10: 0000000000000000 R11: 0000000000000246 R12:
ffff81006693fe10 Jul 15 19:22:52 infinity kernel: [ 1083.233117] R13:
ffff81006693fe00 R14: ffff810066f39e80 R15: 0000000000000000 Jul 15
19:22:52 infinity kernel: [ 1083.233122] FS:  00002aaaaadfb6d0(0000)
GS:ffffffff8044a800(0000) knlGS:0000000000000000 Jul 15 19:22:52
infinity kernel: [ 1083.233126] CS:  0010 DS: 0000 ES: 0000 CR0:
000000008005003b Jul 15 19:22:52 infinity kernel: [ 1083.233129] CR2:
0000000000000008 CR3: 0000000000101000 CR4: 00000000000006e0 Jul 15
19:22:52 infinity kernel: [ 1083.233134] Process run-parts (pid: 8144,
threadinfo ffff81006693e000, task ffff81007a1e9880) Jul 15 19:22:52
infinity kernel: [ 1083.233137] Stack: 0000000100000002
00000000000001e1 00000000000001e1 00000000000000e2 Jul 15 19:22:52
infinity kernel: [ 1083.233145]        ffff81007da77658
ffff81006d71e280 ffff81007da776a0 ffff810066f39e30 Jul 15 19:22:52
infinity kernel: [ 1083.233153]        ffff81006693fec0
ffffffff8017f308 Jul 15 19:22:52 infinity kernel: [ 1083.233158] Call
Trace:<ffffffff8017f308>{unlink_file_vma+72} <ffffffff8017b1fb>
{free_pgtables+59} Jul 15 19:22:52 infinity kernel:
[ 1083.233193]        <ffffffff8017f1c5>{exit_mmap+165}
<ffffffff8013ad34>{mmput+52} Jul 15 19:22:52 infinity kernel:
[ 1083.233211]        <ffffffff8014045e>{do_exit+542} <ffffffff80140ffc>
{do_group_exit+252} Jul 15 19:22:52 infinity kernel:
[ 1083.233231]        <ffffffff8010febe>{system_call+126} Jul 15
19:22:52 infinity kernel: [ 1083.233251] Jul 15 19:22:52 infinity
kernel: [ 1083.233252] Code: 48 39 5e 08 75 0c 48 89 76 08 49 39 de 75
0c 90 eb 1c 48 89 Jul 15 19:22:52 infinity kernel: [ 1083.233264] RIP
<ffffffff802100d0>{prio_tree_remove+160} RSP <ffff81006693fdf8> Jul 15
19:22:52 infinity kernel: [ 1083.233270] CR2: 0000000000000008 Jul 15
19:22:52 infinity kernel: [ 1083.233273]  <1>Fixing recursive fault but
reboot is needed! Jul 15 19:22:52 infinity kernel: [ 1083.233283]
scheduling while atomic: run-parts/0x00000002/8144 Jul 15 19:22:52
infinity kernel: [ 1083.233286] Jul 15 19:22:52 infinity kernel:
[ 1083.233287] Call Trace:<ffffffff803151aa>{schedule+122}
<ffffffff8013e16e>{printk+78} Jul 15 19:22:52 infinity kernel:
[ 1083.233303]        <ffffffff803163e1>{__down_read+49}
<ffffffff80140356>{do_exit+278} Jul 15 19:22:52 infinity kernel:
[ 1083.233322]        <ffffffff802613ee>{do_unblank_screen+110}
<ffffffff80127344>{do_page_fault+1908} Jul 15 19:22:52 infinity kernel:
[ 1083.233343]        <ffffffff8016f10a>{__pagevec_free+42}
<ffffffff80175f41>{release_pages+353} Jul 15 19:22:52 infinity kernel:
[ 1083.233365]        <ffffffff80110c29>{error_exit+0}
<ffffffff802100d0>{prio_tree_remove+160} Jul 15 19:22:52 infinity
kernel: [ 1083.233394]        <ffffffff8021007d>{prio_tree_remove+77}
<ffffffff8017f308>{unlink_file_vma+72} Jul 15 19:22:52 infinity kernel:
[ 1083.233411]        <ffffffff8017b1fb>{free_pgtables+59}
<ffffffff8017f1c5>{exit_mmap+165} Jul 15 19:22:52 infinity kernel:
[ 1083.233427]        <ffffffff8013ad34>{mmput+52} <ffffffff8014045e>
{do_exit+542} Jul 15 19:22:52 infinity kernel: [ 1083.233441]
<ffffffff80140ffc>{do_group_exit+252} <ffffffff8010febe>{system_call
+126}

After that I received:-

/etc/cron.daily/logrotate:
acpid: can't open /proc/acpi/event: Device or resource busy
error: error running postrotate script for /var/log/acpid
run-parts: /etc/cron.daily/logrotate exited with return code 1

and also:-

Warning: If you are seeing this message, your log files may not have
been checked!

Details:
Could not output to TMPDIR/checked.1 Disk Full?

Check temporary directory: /tmp/logcheck.whbnLy

declare -x HOME="/var/lib/logcheck"
declare -x LANG="en_GB.UTF-8"
declare -x LANGUAGE="en_GB:en"
declare -x LOGNAME="logcheck"
declare -x MAILTO="root"
declare -x OLDPWD
declare -x
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PWD="/var/lib/logcheck" declare -x SHELL="/bin/sh"
declare -x SHLVL="2"

/tmp is only 1% used
/var is 10% used
/tmp/logcheck.whbnLy didn't exist

/usr/sbin/logcheck: line 391: 27365 Exit 1                  egrep
--text -v -f "$clean/$file" $TMPDIR/checked 27366 Segmentation
fault      | cat >>$TMPDIR/checked.1

Most recently I have got:-

Jul 18 06:02:07 infinity kernel: [33062.306909] logcheck[27366]:
segfault at 0000000000439c80 rip 0000000000439c80 rsp 00007ffffff49188
error 14

I'm not able to make much sense of all this.  Maybe there is more than
one effect taking place.

I might add that under Breezy my machine was pretty unstable, crashing
two or three times per week (even per day occasionally), but that it
has been very stable with Dapper.

- Richard.
-- 
Richard Kimber
http://www.psr.keele.ac.uk/




More information about the ubuntu-users mailing list