All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Stefan Kisdaroczi <kisda@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] rtdm_dev_register oops
Date: Tue, 18 May 2010 18:43:51 +0200	[thread overview]
Message-ID: <4BF2C3C7.9010406@domain.hid> (raw)
In-Reply-To: <4BF29943.3010309@domain.hid>

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

Stefan Kisdaroczi wrote:
> Am 18.05.2010 13:03, schrieb Jan Kiszka:
>> Stefan Kisdaroczi wrote:
>>> hi,
>>>
>>> i got a exception in rtdm_dev_register(). I didnt call rtdm_dev_unregister in my driver
>>> and after insmodding the module again I got a oops.
>> And that is surprising to you? :)
> 
> A bit.
> 
>> If you leave the previous device registered on rmmod, oopses are
>> programmed to occur: You leave references to unallocated memory behind.
> 
> If one device fails to unregister i can't register any other device anymore,

Then you have to find the bug that prevents proper deregistration.

> the rtdm registry is broken (cat /proc/xenomai/rtdm/names_devices hangs).

That hanging of /proc output is fixed in a series of mine that is yet
unmerged (as it is on hold, waiting for /proc infrastructure
refactorings by Philippe).

> That was surprising. If I have one corrupt file on my disk i can still
> create/access other files or list the filenames without exception.

If your filesystem hangs due to some bug of its own or in the underlying
layers, you won't be able to touch any further file on that system as well.

> 
> Please don't get me wrong, but its not obvious for me that a registry
> behaves like that, but i can life with it. Sorry for the noise.

Again, the problem is that the deregistration hangs. That needs to be
understood and resolved.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

      reply	other threads:[~2010-05-18 16:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-18 10:15 [Xenomai-core] rtdm_dev_register oops Stefan Kisdaroczi
2010-05-18 11:03 ` Jan Kiszka
2010-05-18 13:42   ` Stefan Kisdaroczi
2010-05-18 16:43     ` Jan Kiszka [this message]

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=4BF2C3C7.9010406@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=kisda@domain.hid \
    --cc=xenomai@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.