kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #32550
[Bug 1232473] Re: depmod fills disk to 100% with invisible modules.ccwmap
We also ran into this on one of our machines. depmod seems to be writing
to the file in question in a loop:
# strace -s 100 -p $(pgrep depmod)
write(3, "0x00\nnvidia_304 0x2887 0xfbad 0x00 0x0000 0x00\nnvidia_304 0x2887 "..., 4096) = 4096
Attaching to process 17565
Reading symbols from /sbin/depmod...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.15.so...done.
done.
Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.15.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007fed6ba89040 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0 0x00007fed6ba89040 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007fed6ba1b883 in _IO_new_file_write (f=0x18164b0, data=0x7fed621c2000, n=4096) at fileops.c:1289
#2 0x00007fed6ba1b74a in new_do_write (fp=0x18164b0,
data=0x7fed621c2000 "0x00\nnvidia_304", ' ' <repeats 11 times>, "0x2887 0xfbad 0x00 0x0000 0x00\nnvidia_304", ' ' <repeats 11 times>, "0x2887 0xfbad 0x00 0x0000 0x00\nnvidia_304", ' ' <repeats 11 times>, "0x2887 0xfbad 0x00 0x0000 0x00\nnvi"..., to_do=4096) at fileops.c:543
#3 0x00007fed6ba1ceb5 in _IO_new_do_write (fp=<optimized out>, data=<optimized out>, to_do=4096) at fileops.c:516
#4 0x00007fed6ba1c025 in _IO_new_file_xsputn (n=4, data=<optimized out>, f=0x18164b0) at fileops.c:1371
#5 _IO_new_file_xsputn (f=0x18164b0, data=<optimized out>, n=4) at fileops.c:1305
#6 0x00007fed6b9ec4a7 in _IO_vfprintf_internal (s=<optimized out>, format=<optimized out>, ap=<optimized out>) at vfprintf.c:1660
#7 0x00007fed6baab80b in ___fprintf_chk (fp=0x18164b0, flag=1, format=<optimized out>) at fprintf_chk.c:37
#8 0x0000000000405a24 in ?? ()
#9 0x00000000004021a4 in ?? ()
#10 0x00007fed6b9c376d in __libc_start_main (main=0x401770, argc=5, ubp_av=0x7fff69f88ea8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fff69f88e98) at libc-start.c:226
#11 0x0000000000402535 in ?? ()
#12 0x00007fff69f88e98 in ?? ()
#13 0x000000000000001c in ?? ()
#14 0x0000000000000005 in ?? ()
#15 0x00007fff69f8ae05 in ?? ()
#16 0x00007fff69f8ae12 in ?? ()
#17 0x00007fff69f8ae26 in ?? ()
#18 0x00007fff69f8ae29 in ?? ()
#19 0x00007fff69f8ae15 in ?? ()
#20 0x0000000000000000 in ?? ()
I'll build module-init-tools with debug symbols and try to reproduce.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1232473
Title:
depmod fills disk to 100% with invisible modules.ccwmap
Status in “linux” package in Ubuntu:
Confirmed
Bug description:
I ran update manager, it was installing a new kernel
(3.2.0-54-generic). Then an error dialog/message popped up that the
disk (root partition) was full, the dialog had two buttons (examine -
starts baobab and skip/cancel).
At first I tried to find any big files (du didn't help, showed that
only 8GB of 20GB was used). Long story short, googled a bit about why
df and du might disagree and someone recommended lsof | grep deleted.
depmod (i think) had created a file and deleted it then kept writing
to it filling up my root partition. In the end I had to kill it,
because it just kept writing to it even when I zeroed out that deleted
file.
Here's a log (shortened) of what I typed in the console:
root@localhost:/# lsof | grep deleted | grep depmod
depmod 8673 root 3w REG 8,1 14525296640 676388 /lib/modules/3.2.0-54-generic/modules.ccwmap (deleted)
root@localhost:/# cd /proc/8673/fd
root@localhost:/proc/8673/fd# ll -h | grep ccwmap
l-wx------ 1 root root 64 sep 28 16:52 3 -> /lib/modules/3.2.0-54-generic/modules.ccwmap (deleted)
root@localhost:/proc/8673/fd# > 3
root@localhost:/proc/8673/fd# df -h | grep sda1
/dev/sda1 22G 9,3G 12G 45% /
root@localhost:/proc/8673/fd# lsof | grep deleted | grep depmod
depmod 8673 root 3w REG 8,1 27424661504 676388 /lib/modules/3.2.0-54-generic/modules.ccwmap (deleted)
root@localhost:/proc/8673/fd# df -h | grep sda1
/dev/sda1 22G 22G 0 100% /
root@localhost:/proc/8673/fd# > 3
root@localhost:/proc/8673/fd# df -h | grep sda1
/dev/sda1 22G 8,8G 13G 42% /
root@localhost:/proc/8673/fd# df -h | grep sda1
/dev/sda1 22G 11G 11G 49% /
root@localhost:/proc/8673/fd# pkill depmod
Seems I'm not the only one who's seen this issue with kernel updates:
http://askubuntu.com/questions/157740/updating-to-linux-image-3-2-0-26
-generic-occupies-all-disk-space
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: andris 2142 F.... pulseaudio
Card0.Amixer.info:
Card hw:0 'PCH'/'HDA Intel PCH at 0xf1c00000 irq 50'
Mixer name : 'Intel CougarPoint HDMI'
Components : 'HDA:10ec0269,10280446,00100100 HDA:80862805,80860101,00100000'
Controls : 25
Simple ctrls : 12
DistroRelease: Ubuntu 12.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: Dell Inc. Dell System XPS 15Z
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-53-generic root=UUID=9543673d-3cae-4de0-ad02-31f9d0ae1614 ro quiet splash elevator=noop vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-53.81-generic 3.2.50
RelatedPackageVersions:
linux-restricted-modules-3.2.0-53-generic N/A
linux-backports-modules-3.2.0-53-generic N/A
linux-firmware 1.79.6
StagingDrivers: mei
Tags: precise running-unity staging
Uname: Linux 3.2.0-53-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-06-02 (482 days ago)
UserGroups: adm admin cdrom dialout fuse lpadmin plugdev sambashare vboxusers wireshark
dmi.bios.date: 08/11/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A05
dmi.board.name: 0MFNCV
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA05:bd08/11/2011:svnDellInc.:pnDellSystemXPS15Z:pvr:rvnDellInc.:rn0MFNCV:rvrA00:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Dell System XPS 15Z
dmi.sys.vendor: Dell Inc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1232473/+subscriptions
References