Bug#645071: linux-image-2.6.32-5-686-bigmem: init crashes during runlevel switch
Package: linux-2.6
Version: 2.6.32-38
Severity: normal
Tags: squeeze
Steps to reproduce:
1. Reboot computer.
2. Boot into runlevel 2.
3. Switch to console and go to single-user runlevel:
# telinit 1
4. Enter root password and switch to runlevel 2 again:
# telinit 2
5. And now, as i understand, second init copy (which run by telinit) will
crash.
I can't reproduce this again without rebooting system, i.e. it occurs only
after reboot and only once.
Also, i can't reproduce this with previous kernel (=2.6.32-35squeeze2), and,
though, i don't sure that this is kernel bug, but it seems, like last kernel
upgrade (=2.6.32-38) triggers it.
Dmitriy Matrosov.
-- Package-specific info:
** Version:
Linux version 2.6.32-5-686-bigmem (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 05:03:32 UTC 2011
15:00.3 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: ricoh-mmc
15:00.4 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 11)
Subsystem: Lenovo ThinkPad T61 [17aa:20ca]
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin C routed to IRQ 11
Region 0: Memory at f8102000 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
15:00.5 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 11)
Subsystem: Lenovo Device [17aa:20cb]
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin C routed to IRQ 11
Region 0: Memory at f8102400 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
** USB devices:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 002 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-image-2.6.32-5-686-bigmem depends on:
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii initramfs-tools [linux-initra 0.98.8 tools for generating an initramfs
ii linux-base 2.6.32-38 Linux image base package
ii module-init-tools 3.12-1 tools for managing Linux kernel mo
Versions of packages linux-image-2.6.32-5-686-bigmem recommends:
ii firmware-linux-free 2.6.32-38 Binary firmware for various driver
ii libc6-i686 2.11.2-10 Embedded GNU C Library: Shared lib
Versions of packages linux-image-2.6.32-5-686-bigmem suggests:
pn grub | lilo <none> (no description available)
ii linux-doc-2.6.32 2.6.32-38 Linux kernel specific documentatio
Versions of packages linux-image-2.6.32-5-686-bigmem is related to:
pn firmware-bnx2 <none> (no description available)
pn firmware-bnx2x <none> (no description available)
pn firmware-ipw2x00 <none> (no description available)
pn firmware-ivtv <none> (no description available)
ii firmware-iwlwifi 0.28+squeeze1 Binary firmware for Intel Wireless
pn firmware-linux <none> (no description available)
pn firmware-linux-nonfree <none> (no description available)
pn firmware-qlogic <none> (no description available)
pn firmware-ralink <none> (no description available)
pn xen-hypervisor <none> (no description available)
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111012100544.3554.54216.reportbug@shilvana.local ">http://lists.debian.org/20111012100544.3554.54216.reportbug@shilvana.local
10-13-2011, 03:19 AM
Ben Hutchings
Bug#645071: linux-image-2.6.32-5-686-bigmem: init crashes during runlevel switch
On Wed, 2011-10-12 at 14:05 +0300, Matrosov Dmitriy wrote:
> Package: linux-2.6
> Version: 2.6.32-38
> Severity: normal
> Tags: squeeze
>
> Steps to reproduce:
> 1. Reboot computer.
> 2. Boot into runlevel 2.
> 3. Switch to console and go to single-user runlevel:
> # telinit 1
> 4. Enter root password and switch to runlevel 2 again:
> # telinit 2
> 5. And now, as i understand, second init copy (which run by telinit) will
> crash.
>
> I can't reproduce this again without rebooting system, i.e. it occurs only
> after reboot and only once.
> Also, i can't reproduce this with previous kernel (=2.6.32-35squeeze2), and,
> though, i don't sure that this is kernel bug, but it seems, like last kernel
> upgrade (=2.6.32-38) triggers it.
This warning message was added by the bug fix "TTY: ldisc, do not close
until there are readers". I don't believe that the warning a
regression; it's just reporting a problem that already existed.
If you would like to help us understand and fix the problem, please can
you test the attached patch, following the instructions at
<http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official>. It should replace the warnings with log lines of the form
"tty_ldisc_reinit: refcount of <name> is still <number>" which you
should send back.
Ben.
--
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.
10-13-2011, 12:41 PM
Дмитрий Матросов
Bug#645071: linux-image-2.6.32-5-686-bigmem: init crashes during runlevel switch
2011/10/13 Ben Hutchings <ben@decadent.org.uk>:
> On Wed, 2011-10-12 at 14:05 +0300, Matrosov Dmitriy wrote:
>> Package: linux-2.6
>> Version: 2.6.32-38
>> Severity: normal
>> Tags: squeeze
>>
>> Steps to reproduce:
>> 1. Reboot computer.
>> 2. Boot into runlevel 2.
>> 3. Switch to console and go to single-user runlevel:
>> # telinit 1
>> 4. Enter root password and switch to runlevel 2 again:
>> # telinit 2
>> 5. And now, as i understand, second init copy (which run by telinit) will
>> crash.
>>
>> I can't reproduce this again without rebooting system, i.e. it occurs only
>> after reboot and only once.
>> Also, i can't reproduce this with previous kernel (=2.6.32-35squeeze2), and,
>> though, i don't sure that this is kernel bug, but it seems, like last kernel
>> upgrade (=2.6.32-38) triggers it.
>
> This isn't a crash.
>
> [...]
>> [ 75.608119] ------------[ cut here ]------------
>> [ 75.608136] WARNING: at /build/buildd-linux-2.6_2.6.32-38-i386-G9QRBd/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:738 tty_ldisc_reinit+0x3e/0x6c()
>> [ 75.608144] Hardware name: 6460EDG
>> [ 75.608148] Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_powersave cpufreq_conservative cpufreq_userspace pppoe pppox ppp_generic slhc binfmt_misc uinput fuse ipt_REJECT ipt_LOG xt_limit xt_tcpudp xt_state iptable_filter ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle ip_tables x_tables ext3 jbd ext2 tp_smapi thinkpad_ec loop firewire_sbp2 snd_hda_codec_analog btusb snd_hda_intel bluetooth arc4 snd_hda_codec sg snd_hwdep ecb iwlagn snd_pcm nouveau iwlcore sr_mod sdhci_pci sdhci ttm snd_seq mac80211 snd_timer firewire_ohci cdrom drm_kms_helper snd_seq_device joydev firewire_core mmc_core cfg80211 drm pcmcia yenta_socket snd thinkpad_acpi soundcore rsrc_nonstatic i2c_algo_bit i2c_i801 wmi uhci_hcd pcmcia_core ricoh_mmc crc_itu_t snd_page_alloc ehci_hcd i2c_core ata_piix ata_generic e1000e rfkill led_class nvram usbcore nls_base processor button ac battery psmouse evdev pcspkr video output serio_raw ext4 mbcache jbd2 crc
>> 16 dm_mod sd_mod crc_t10dif ahci libata scsi_mod thermal thermal_sys [last unloaded: kvm]
>> [ 75.608352] Pid: 2422, comm: init Not tainted 2.6.32-5-686-bigmem #1
>> [ 75.608357] Call Trace:
>> [ 75.608369] [<c1036819>] ? warn_slowpath_common+0x5e/0x8a
>> [ 75.608378] [<c103684f>] ? warn_slowpath_null+0xa/0xc
>> [ 75.608386] [<c11a38b9>] ? tty_ldisc_reinit+0x3e/0x6c
>> [ 75.608394] [<c11a39d6>] ? tty_ldisc_hangup+0xef/0x172
>> [ 75.608403] [<c10a5c14>] ? remove_vma+0x43/0x48
>> [ 75.608413] [<c119e136>] ? do_tty_hangup+0xd0/0x2b1
>> [ 75.608422] [<c119e60d>] ? disassociate_ctty+0x3b/0x1b3
>> [ 75.608430] [<c103961a>] ? do_exit+0x212/0x5cd
>> [ 75.608439] [<c1039a34>] ? do_group_exit+0x5f/0x82
>> [ 75.608449] [<c10449bf>] ? get_signal_to_deliver+0x30d/0x32e
>> [ 75.608459] [<c10075b4>] ? do_notify_resume+0x6f/0x713
>> [ 75.608469] [<c110a800>] ? security_task_wait+0xc/0xd
>> [ 75.608478] [<c103902e>] ? wait_consider_task+0x983/0x990
>> [ 75.608488] [<c104a804>] ? remove_wait_queue+0xb/0x2f
>> [ 75.608496] [<c10391ea>] ? do_wait+0x1af/0x1e3
>> [ 75.608504] [<c10392b6>] ? sys_wait4+0x98/0xa2
>> [ 75.608514] [<c1037c44>] ? child_wait_callback+0x0/0x5f
>> [ 75.608522] [<c10392d3>] ? sys_waitpid+0x13/0x17
>> [ 75.608530] [<c10082f4>] ? work_notifysig+0x13/0x1b
>> [ 75.608536] ---[ end trace a550edb008c670a3 ]---
> [...].
>
> This warning message was added by the bug fix "TTY: ldisc, do not close
> until there are readers". I don't believe that the warning a
> regression; it's just reporting a problem that already existed.
>
> If you would like to help us understand and fix the problem, please can
> you test the attached patch, following the instructions at
> <http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official>. It should replace the warnings with log lines of the form
> "tty_ldisc_reinit: refcount of <name> is still <number>" which you
> should send back.
>
> Ben.
>
> --
> Ben Hutchings
> Quantity is no substitute for quality, but it's the only one we've got.
>
Hi, Ben.
I am not sure, that i do all correctly, but it doesn't compile. Here
is what i get
$ apt-get source linux-2.6=2.6.32-38
$ cd linux-2.6-2.6.32/
$ bash debian/bin/test-patches ../0001-TTY-tty_ldisc_wait_idle-debug.patch
[...]
CC [M] drivers/bluetooth/btmrvl_sdio.o
LD drivers/cdrom/built-in.o
CC [M] drivers/cdrom/cdrom.o
CC drivers/char/mem.o
CC drivers/char/random.o
CC drivers/char/tty_io.o
CC drivers/char/n_tty.o
CC drivers/char/tty_ioctl.o
CC drivers/char/tty_ldisc.o
/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:
In function ‘tty_ldisc_reinit’:
/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:742:
error: implicit declaration of function ‘printk_ratelimited’
make[6]: *** [drivers/char/tty_ldisc.o] Error 1
make[5]: *** [drivers/char] Error 2
make[4]: *** [drivers] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/build_i386_none_686-bigmem'
make[1]: *** [debian/stamps/build_i386_none_686-bigmem_plain] Error 2
make[1]: Leaving directory
`/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32'
make: *** [binary-arch_i386_none_686-bigmem_real] Error 2
Dmitriy Matrosov.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAFdVUFmAN=HmHa4BWO7PUkDyp3=_oeom3Y+AFbvdV3HvYoRS7 w@mail.gmail.com">http://lists.debian.org/CAFdVUFmAN=HmHa4BWO7PUkDyp3=_oeom3Y+AFbvdV3HvYoRS7 w@mail.gmail.com
10-13-2011, 02:41 PM
Дмитрий Матросов
Bug#645071: linux-image-2.6.32-5-686-bigmem: init crashes during runlevel switch
I try to compile with printk() instead of printk_ratelimited() in your
patch, and it's succeeded. Then i install it with
and then try to reproduce this bug. Here is the result:
[ 65.162361] apm: BIOS not found.
[ 65.276280] [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 2
[ 84.368180] tty_ldisc_reinit: refcount of is still 2
[ 85.134084] Bluetooth: L2CAP ver 2.14
[ 85.134089] Bluetooth: L2CAP socket layer initialized
[ 85.179597] Bluetooth: RFCOMM TTY layer initialized
[ 85.179605] Bluetooth: RFCOMM socket layer initialized
[ 85.179610] Bluetooth: RFCOMM ver 1.11
[ 86.928111] input: ACPI Virtual Keyboard Device as
/devices/virtual/input/input11
[ 87.012983] apm: BIOS not found.
[ 87.386813] Registered led device: iwl-phy0::radio
[ 87.386854] Registered led device: iwl-phy0::assoc
[ 87.386894] Registered led device: iwl-phy0::RX
[ 87.386931] Registered led device: iwl-phy0::TX
[ 87.467491] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 87.566675] [drm] nouveau 0000:01:00.0: Allocating FIFO number 2
[ 87.573771] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc:
initialised FIFO 2
13 октября 2011*г. 16:41 пользователь Дмитрий Матросов
<sgf.dma@gmail.com> написал:
> 2011/10/13 Ben Hutchings <ben@decadent.org.uk>:
>> On Wed, 2011-10-12 at 14:05 +0300, Matrosov Dmitriy wrote:
>>> Package: linux-2.6
>>> Version: 2.6.32-38
>>> Severity: normal
>>> Tags: squeeze
>>>
>>> Steps to reproduce:
>>> 1. Reboot computer.
>>> 2. Boot into runlevel 2.
>>> 3. Switch to console and go to single-user runlevel:
>>> # telinit 1
>>> 4. Enter root password and switch to runlevel 2 again:
>>> # telinit 2
>>> 5. And now, as i understand, second init copy (which run by telinit) will
>>> * *crash.
>>>
>>> I can't reproduce this again without rebooting system, i.e. it occurs only
>>> after reboot and only once.
>>> Also, i can't reproduce this with previous kernel (=2.6.32-35squeeze2), and,
>>> though, i don't sure that this is kernel bug, but it seems, like last kernel
>>> upgrade (=2.6.32-38) triggers it.
>>
>> This isn't a crash.
>>
>> [...]
>>> [ * 75.608119] ------------[ cut here ]------------
>>> [ * 75.608136] WARNING: at /build/buildd-linux-2.6_2.6.32-38-i386-G9QRBd/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:738 tty_ldisc_reinit+0x3e/0x6c()
>>> [ * 75.608144] Hardware name: 6460EDG
>>> [ * 75.608148] Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_powersave cpufreq_conservative cpufreq_userspace pppoe pppox ppp_generic slhc binfmt_misc uinput fuse ipt_REJECT ipt_LOG xt_limit xt_tcpudp xt_state iptable_filter ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle ip_tables x_tables ext3 jbd ext2 tp_smapi thinkpad_ec loop firewire_sbp2 snd_hda_codec_analog btusb snd_hda_intel bluetooth arc4 snd_hda_codec sg snd_hwdep ecb iwlagn snd_pcm nouveau iwlcore sr_mod sdhci_pci sdhci ttm snd_seq mac80211 snd_timer firewire_ohci cdrom drm_kms_helper snd_seq_device joydev firewire_core mmc_core cfg80211 drm pcmcia yenta_socket snd thinkpad_acpi soundcore rsrc_nonstatic i2c_algo_bit i2c_i801 wmi uhci_hcd pcmcia_core ricoh_mmc crc_itu_t snd_page_alloc ehci_hcd i2c_core ata_piix ata_generic e1000e rfkill led_class nvram usbcore nls_base processor button ac battery psmouse evdev pcspkr video output serio_raw ext4 mbcache jbd2 crc
>>> *16 dm_mod sd_mod crc_t10dif ahci libata scsi_mod thermal thermal_sys [last unloaded: kvm]
>>> [ * 75.608352] Pid: 2422, comm: init Not tainted 2.6.32-5-686-bigmem #1
>>> [ * 75.608357] Call Trace:
>>> [ * 75.608369] *[<c1036819>] ? warn_slowpath_common+0x5e/0x8a
>>> [ * 75.608378] *[<c103684f>] ? warn_slowpath_null+0xa/0xc
>>> [ * 75.608386] *[<c11a38b9>] ? tty_ldisc_reinit+0x3e/0x6c
>>> [ * 75.608394] *[<c11a39d6>] ? tty_ldisc_hangup+0xef/0x172
>>> [ * 75.608403] *[<c10a5c14>] ? remove_vma+0x43/0x48
>>> [ * 75.608413] *[<c119e136>] ? do_tty_hangup+0xd0/0x2b1
>>> [ * 75.608422] *[<c119e60d>] ? disassociate_ctty+0x3b/0x1b3
>>> [ * 75.608430] *[<c103961a>] ? do_exit+0x212/0x5cd
>>> [ * 75.608439] *[<c1039a34>] ? do_group_exit+0x5f/0x82
>>> [ * 75.608449] *[<c10449bf>] ? get_signal_to_deliver+0x30d/0x32e
>>> [ * 75.608459] *[<c10075b4>] ? do_notify_resume+0x6f/0x713
>>> [ * 75.608469] *[<c110a800>] ? security_task_wait+0xc/0xd
>>> [ * 75.608478] *[<c103902e>] ? wait_consider_task+0x983/0x990
>>> [ * 75.608488] *[<c104a804>] ? remove_wait_queue+0xb/0x2f
>>> [ * 75.608496] *[<c10391ea>] ? do_wait+0x1af/0x1e3
>>> [ * 75.608504] *[<c10392b6>] ? sys_wait4+0x98/0xa2
>>> [ * 75.608514] *[<c1037c44>] ? child_wait_callback+0x0/0x5f
>>> [ * 75.608522] *[<c10392d3>] ? sys_waitpid+0x13/0x17
>>> [ * 75.608530] *[<c10082f4>] ? work_notifysig+0x13/0x1b
>>> [ * 75.608536] ---[ end trace a550edb008c670a3 ]---
>> [...].
>>
>> This warning message was added by the bug fix "TTY: ldisc, do not close
>> until there are readers". *I don't believe that the warning a
>> regression; it's just reporting a problem that already existed.
>>
>> If you would like to help us understand and fix the problem, please can
>> you test the attached patch, following the instructions at
>> <http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official>. *It should replace the warnings with log lines of the form
>> "tty_ldisc_reinit: refcount of <name> is still <number>" which you
>> should send back.
>>
>> Ben.
>>
>> --
>> Ben Hutchings
>> Quantity is no substitute for quality, but it's the only one we've got.
>>
>
> Hi, Ben.
>
> I am not sure, that i do all correctly, but it doesn't compile. Here
> is what i get
>
> $ apt-get *source *linux-2.6=2.6.32-38
> $ cd linux-2.6-2.6.32/
> $ bash debian/bin/test-patches * ../0001-TTY-tty_ldisc_wait_idle-debug.patch
> [...]
> *CC [M] *drivers/bluetooth/btmrvl_sdio.o
> *LD * * *drivers/cdrom/built-in.o
> *CC [M] *drivers/cdrom/cdrom.o
> *CC * * *drivers/char/mem.o
> *CC * * *drivers/char/random.o
> *CC * * *drivers/char/tty_io.o
> *CC * * *drivers/char/n_tty.o
> *CC * * *drivers/char/tty_ioctl.o
> *CC * * *drivers/char/tty_ldisc.o
> /home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:
> In function ‘tty_ldisc_reinit’:
> /home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:742:
> error: implicit declaration of function ‘printk_ratelimited’
> make[6]: *** [drivers/char/tty_ldisc.o] Error 1
> make[5]: *** [drivers/char] Error 2
> make[4]: *** [drivers] Error 2
> make[3]: *** [sub-make] Error 2
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/build_i386_none_686-bigmem'
> make[1]: *** [debian/stamps/build_i386_none_686-bigmem_plain] Error 2
> make[1]: Leaving directory
> `/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32'
> make: *** [binary-arch_i386_none_686-bigmem_real] Error 2
>
> Dmitriy Matrosov.
>
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAFdVUFme+kwFaMmVThhry91L5V-hfwvd3R8EZhV2k0B5kCPMvA@mail.gmail.com">http://lists.debian.org/CAFdVUFme+kwFaMmVThhry91L5V-hfwvd3R8EZhV2k0B5kCPMvA@mail.gmail.com
10-13-2011, 05:28 PM
Дмитрий Матросов
Bug#645071: linux-image-2.6.32-5-686-bigmem: init crashes during runlevel switch
I suppose, that result of previous attempt is not very useful, because
something is missed in the output (after "of" word). So, i rewrite
your patch a little:
[..]
+ printk(KERN_DEBUG "%s: refcount of %p (%s, num=%d, mag=%d,
flags=%d) is still %d
",
+ __func__,
+ tty->ldisc->ops, tty->ldisc->ops->name, tty->ldisc->ops->num,
tty->ldisc->ops->magic, tty->ldisc->ops->flags,
+ atomic_read(&tty->ldisc->users));
[..]
And here is the output from this patch:
[ 59.693814] apm: BIOS not found.
[ 59.853081] [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 2
[ 83.736104] tty_ldisc_reinit: refcount of c13c7878 (n_tty, num=0,
mag=21507, flags=0) is still 2
[ 84.094367] Bluetooth: L2CAP ver 2.14
[ 84.094372] Bluetooth: L2CAP socket layer initialized
[ 84.130202] Bluetooth: RFCOMM TTY layer initialized
[ 84.130210] Bluetooth: RFCOMM socket layer initialized
[ 84.130215] Bluetooth: RFCOMM ver 1.11
[ 86.090140] input: ACPI Virtual Keyboard Device as
/devices/virtual/input/input11
[ 86.244260] apm: BIOS not found.
[ 86.683605] Registered led device: iwl-phy0::radio
[ 86.683619] Registered led device: iwl-phy0::assoc
[ 86.683631] Registered led device: iwl-phy0::RX
[ 86.683643] Registered led device: iwl-phy0::TX
[ 86.755718] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 86.756950] [drm] nouveau 0000:01:00.0: Allocating FIFO number 2
[ 86.763668] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc:
initialised FIFO 2
13 октября 2011*г. 18:41 пользователь Дмитрий Матросов
<sgf.dma@gmail.com> написал:
> I try to compile with printk() instead of printk_ratelimited() in your
> patch, and it's succeeded. Then i install it with
>
> # dpkg -i * ./linux-image-2.6.32-5-686-bigmem_2.6.32-38a~test_i386.deb
> # dpkg --configure --force-depends-version *linux-image-2.6.32-5-686-bigmem
>
> and then try to reproduce this bug. Here is the result:
>
> [ * 65.162361] apm: BIOS not found.
> [ * 65.276280] [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 2
> [ * 84.368180] tty_ldisc_reinit: refcount of *is still 2
> [ * 85.134084] Bluetooth: L2CAP ver 2.14
> [ * 85.134089] Bluetooth: L2CAP socket layer initialized
> [ * 85.179597] Bluetooth: RFCOMM TTY layer initialized
> [ * 85.179605] Bluetooth: RFCOMM socket layer initialized
> [ * 85.179610] Bluetooth: RFCOMM ver 1.11
> [ * 86.928111] input: ACPI Virtual Keyboard Device as
> /devices/virtual/input/input11
> [ * 87.012983] apm: BIOS not found.
> [ * 87.386813] Registered led device: iwl-phy0::radio
> [ * 87.386854] Registered led device: iwl-phy0::assoc
> [ * 87.386894] Registered led device: iwl-phy0::RX
> [ * 87.386931] Registered led device: iwl-phy0::TX
> [ * 87.467491] ADDRCONF(NETDEV_UP): wlan0: link is not ready
> [ * 87.566675] [drm] nouveau 0000:01:00.0: Allocating FIFO number 2
> [ * 87.573771] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc:
> initialised FIFO 2
>
>
> 13 октября 2011*г. 16:41 пользователь Дмитрий Матросов
> <sgf.dma@gmail.com> написал:
>> 2011/10/13 Ben Hutchings <ben@decadent.org.uk>:
>>> On Wed, 2011-10-12 at 14:05 +0300, Matrosov Dmitriy wrote:
>>>> Package: linux-2.6
>>>> Version: 2.6.32-38
>>>> Severity: normal
>>>> Tags: squeeze
>>>>
>>>> Steps to reproduce:
>>>> 1. Reboot computer.
>>>> 2. Boot into runlevel 2.
>>>> 3. Switch to console and go to single-user runlevel:
>>>> # telinit 1
>>>> 4. Enter root password and switch to runlevel 2 again:
>>>> # telinit 2
>>>> 5. And now, as i understand, second init copy (which run by telinit) will
>>>> * *crash.
>>>>
>>>> I can't reproduce this again without rebooting system, i.e. it occurs only
>>>> after reboot and only once.
>>>> Also, i can't reproduce this with previous kernel (=2.6.32-35squeeze2), and,
>>>> though, i don't sure that this is kernel bug, but it seems, like last kernel
>>>> upgrade (=2.6.32-38) triggers it.
>>>
>>> This isn't a crash.
>>>
>>> [...]
>>>> [ * 75.608119] ------------[ cut here ]------------
>>>> [ * 75.608136] WARNING: at /build/buildd-linux-2.6_2.6.32-38-i386-G9QRBd/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:738 tty_ldisc_reinit+0x3e/0x6c()
>>>> [ * 75.608144] Hardware name: 6460EDG
>>>> [ * 75.608148] Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_powersave cpufreq_conservative cpufreq_userspace pppoe pppox ppp_generic slhc binfmt_misc uinput fuse ipt_REJECT ipt_LOG xt_limit xt_tcpudp xt_state iptable_filter ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle ip_tables x_tables ext3 jbd ext2 tp_smapi thinkpad_ec loop firewire_sbp2 snd_hda_codec_analog btusb snd_hda_intel bluetooth arc4 snd_hda_codec sg snd_hwdep ecb iwlagn snd_pcm nouveau iwlcore sr_mod sdhci_pci sdhci ttm snd_seq mac80211 snd_timer firewire_ohci cdrom drm_kms_helper snd_seq_device joydev firewire_core mmc_core cfg80211 drm pcmcia yenta_socket snd thinkpad_acpi soundcore rsrc_nonstatic i2c_algo_bit i2c_i801 wmi uhci_hcd pcmcia_core ricoh_mmc crc_itu_t snd_page_alloc ehci_hcd i2c_core ata_piix ata_generic e1000e rfkill led_class nvram usbcore nls_base processor button ac battery psmouse evdev pcspkr video output serio_raw ext4 mbcache jbd2 crc
>>>> *16 dm_mod sd_mod crc_t10dif ahci libata scsi_mod thermal thermal_sys [last unloaded: kvm]
>>>> [ * 75.608352] Pid: 2422, comm: init Not tainted 2.6.32-5-686-bigmem #1
>>>> [ * 75.608357] Call Trace:
>>>> [ * 75.608369] *[<c1036819>] ? warn_slowpath_common+0x5e/0x8a
>>>> [ * 75.608378] *[<c103684f>] ? warn_slowpath_null+0xa/0xc
>>>> [ * 75.608386] *[<c11a38b9>] ? tty_ldisc_reinit+0x3e/0x6c
>>>> [ * 75.608394] *[<c11a39d6>] ? tty_ldisc_hangup+0xef/0x172
>>>> [ * 75.608403] *[<c10a5c14>] ? remove_vma+0x43/0x48
>>>> [ * 75.608413] *[<c119e136>] ? do_tty_hangup+0xd0/0x2b1
>>>> [ * 75.608422] *[<c119e60d>] ? disassociate_ctty+0x3b/0x1b3
>>>> [ * 75.608430] *[<c103961a>] ? do_exit+0x212/0x5cd
>>>> [ * 75.608439] *[<c1039a34>] ? do_group_exit+0x5f/0x82
>>>> [ * 75.608449] *[<c10449bf>] ? get_signal_to_deliver+0x30d/0x32e
>>>> [ * 75.608459] *[<c10075b4>] ? do_notify_resume+0x6f/0x713
>>>> [ * 75.608469] *[<c110a800>] ? security_task_wait+0xc/0xd
>>>> [ * 75.608478] *[<c103902e>] ? wait_consider_task+0x983/0x990
>>>> [ * 75.608488] *[<c104a804>] ? remove_wait_queue+0xb/0x2f
>>>> [ * 75.608496] *[<c10391ea>] ? do_wait+0x1af/0x1e3
>>>> [ * 75.608504] *[<c10392b6>] ? sys_wait4+0x98/0xa2
>>>> [ * 75.608514] *[<c1037c44>] ? child_wait_callback+0x0/0x5f
>>>> [ * 75.608522] *[<c10392d3>] ? sys_waitpid+0x13/0x17
>>>> [ * 75.608530] *[<c10082f4>] ? work_notifysig+0x13/0x1b
>>>> [ * 75.608536] ---[ end trace a550edb008c670a3 ]---
>>> [...].
>>>
>>> This warning message was added by the bug fix "TTY: ldisc, do not close
>>> until there are readers". *I don't believe that the warning a
>>> regression; it's just reporting a problem that already existed.
>>>
>>> If you would like to help us understand and fix the problem, please can
>>> you test the attached patch, following the instructions at
>>> <http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official>. *It should replace the warnings with log lines of the form
>>> "tty_ldisc_reinit: refcount of <name> is still <number>" which you
>>> should send back.
>>>
>>> Ben.
>>>
>>> --
>>> Ben Hutchings
>>> Quantity is no substitute for quality, but it's the only one we've got.
>>>
>>
>> Hi, Ben.
>>
>> I am not sure, that i do all correctly, but it doesn't compile. Here
>> is what i get
>>
>> $ apt-get *source *linux-2.6=2.6.32-38
>> $ cd linux-2.6-2.6.32/
>> $ bash debian/bin/test-patches * ../0001-TTY-tty_ldisc_wait_idle-debug.patch
>> [...]
>> *CC [M] *drivers/bluetooth/btmrvl_sdio.o
>> *LD * * *drivers/cdrom/built-in.o
>> *CC [M] *drivers/cdrom/cdrom.o
>> *CC * * *drivers/char/mem.o
>> *CC * * *drivers/char/random.o
>> *CC * * *drivers/char/tty_io.o
>> *CC * * *drivers/char/n_tty.o
>> *CC * * *drivers/char/tty_ioctl.o
>> *CC * * *drivers/char/tty_ldisc.o
>> /home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:
>> In function ‘tty_ldisc_reinit’:
>> /home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/source_i386_none/drivers/char/tty_ldisc.c:742:
>> error: implicit declaration of function ‘printk_ratelimited’
>> make[6]: *** [drivers/char/tty_ldisc.o] Error 1
>> make[5]: *** [drivers/char] Error 2
>> make[4]: *** [drivers] Error 2
>> make[3]: *** [sub-make] Error 2
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory
>> `/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32/debian/build/build_i386_none_686-bigmem'
>> make[1]: *** [debian/stamps/build_i386_none_686-bigmem_plain] Error 2
>> make[1]: Leaving directory
>> `/home/sgf/Documents/kernel/src/test_patch/linux-2.6-2.6.32'
>> make: *** [binary-arch_i386_none_686-bigmem_real] Error 2
>>
>> Dmitriy Matrosov.
>>
>
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAFdVUFmGpv7mUzpLEWgH_KnJHNhVoCHGXTK34qBiitj0FZ6gT g@mail.gmail.com">http://lists.debian.org/CAFdVUFmGpv7mUzpLEWgH_KnJHNhVoCHGXTK34qBiitj0FZ6gT g@mail.gmail.com