mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: "Дмитрий Матросов" <sgf.dma@gmail.com>,
	"Jiri Slaby" <jirislaby@gmail.com>
Cc: 645071@bugs.debian.org, LKML <linux-kernel@vger.kernel.org>
Subject: WARNING in tty_ldisc_reinit
Date: Tue, 18 Oct 2011 02:36:23 +0100	[thread overview]
Message-ID: <1318901789.3340.41.camel@deadeye> (raw)
In-Reply-To: <CAFdVUFme+kwFaMmVThhry91L5V-hfwvd3R8EZhV2k0B5kCPMvA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1798 bytes --]

Дмитрий Матросов wrote:
> I try to compile with printk() instead of printk_ratelimited() in your
> patch, and it's succeeded. Then i install it with

Sorry, I didn't notice that would need to be changed.  Thanks for fixing
that yourself!

> # 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
[...]
> 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\n",
> +                               __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));
> [..]

"%ps" should have resulted in printing the symbol name for the structure
that the argument points to.  I don't know why that didn't work.

Anyway, Jiri, this should be the information you wanted way back in
<http://article.gmane.org/gmane.linux.kernel/1176604>:

> [   83.736104] tty_ldisc_reinit: refcount of c13c7878 (n_tty, num=0, mag=21507, flags=0) is still 2

You can find more explanation of when this happens in the bug log at
<http://bugs.debian.org/645071>.

Ben.

-- 
Ben Hutchings
No political challenge can be met by shopping. - George Monbiot

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

           reply	other threads:[~2011-10-18  1:36 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAFdVUFme+kwFaMmVThhry91L5V-hfwvd3R8EZhV2k0B5kCPMvA@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1318901789.3340.41.camel@deadeye \
    --to=ben@decadent.org.uk \
    --cc=645071@bugs.debian.org \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sgf.dma@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®