All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Bug with Xenomai and xeno_heap: Eeek! page_mapcount(page) went negative!
@ 2008-10-09 13:07 M. Koehrer
  2008-10-09 16:06 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 6+ messages in thread
From: M. Koehrer @ 2008-10-09 13:07 UTC (permalink / raw)
  To: xenomai


[-- Attachment #1.1: Type: text/plain, Size: 1576 bytes --]

Hi everybody,

I am using the Xenomai version 2.4.5 with Linux version 2.6.26.5 (adeos patch provided with Xenomai 2.4.5).
Pentium D 3.2 GHz.

There seems to be a bug with the Xenomai mmap page handling that leads to
a 
Eeek! page_mapcount(page) went negative! (-1)
Kernel error.

With previous version (Xeno 2.3.3,  Kernel 2.6.20.4) this worked.
The situation is the following:
I allocate DMA capable memory in a kernel module.
Then I map to this memory from user space.
So far, everything is fine.
I can access the memory without problem.

However, once I terminate by user space application I get the Eeek.
The strange thing is, that the crash seems to happen with a xeno thread (not the one that mapped to the memory).

I have included the dmesg dump and also a very tiny standalone application that crashes with my system
every time I start it.
Untar the heap.tgz archive, run make to build the kernel module and the user space application.
Then, insmod the module and run the user space application.
After a couple of seconds, the system crashes with the Eeek.


Any help on this issue is highly welcome!

Best regards

Mathias





-- 
Mathias Koehrer
mathias_koehrer@domain.hid


Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv

[-- Attachment #2: dmesg.gz --]
[-- Type: application/x-gzip, Size: 1486 bytes --]

[-- Attachment #3: heap.tgz --]
[-- Type: application/x-compressed, Size: 1157 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-10 11:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-09 13:07 [Xenomai-help] Bug with Xenomai and xeno_heap: Eeek! page_mapcount(page) went negative! M. Koehrer
2008-10-09 16:06 ` Gilles Chanteperdrix
2008-10-10  6:36   ` M. Koehrer
2008-10-10  8:19     ` M. Koehrer
2008-10-10  9:06       ` Gilles Chanteperdrix
2008-10-10 11:42         ` M. Koehrer

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.