From: Jan Kiszka <jan.kiszka@domain.hid>
To: Roderik_Wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: AW: AW: [Xenomai-help] resubmission : memset of heap crashes Xenomai-Task
Date: Wed, 06 Sep 2006 16:47:21 +0200 [thread overview]
Message-ID: <44FEDF79.6080507@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A4E9D41@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2706 bytes --]
Roderik_Wildenburg@domain.hid wrote:
> jan.kiszka@domain.hid [mailto:jan.kiszka@domain.hid] :
>
>> First of all, do we know where the demo precisely faults? In
>> which heap's memset? We could then analyse how this heap is
>> being set up in the kernel, if all mappings are done as
>> expected, if reasonable address are passed to the user, etc.
>>
>
> It crashs when the last heap is touched (please see programs output below).
Where precisely? What address is touched? Already tried to catch the
SEGV with a debugger?
> Astonishingly it does not crash every time !? In fact I had to reboot to produce this output (after running the program several times without a crash; don´t ask me why) :
>
> Start Heap
> root_thread_init :
> timer startedt
> display task created
> root_thread_init beendet
> Available Memory 113377280 (Pagesize 4096)
> heap 0 of size 16000000 created
> Heap 0 allocated size 16000000
> heap 1 of size 16000000 created
> Heap 1 allocated size 16000000
> heap 2 of size 16000000 created
> Heap 2 allocated size 16000000
> heap 3 of size 16000000 created
> Heap 3 allocated size 16000000
> heap 4 of size 16000000 created
> Heap 4 allocated size 16000000
> heap 5 of size 16000000 created
> Heap 5 allocated size 16000000
> heap 6 of size 16000000 created
> Heap 6 allocated size 16000000
> Available Memory after allocation 4317184
> Heap 7 created with size 1505280
> Heap 7 allocated size 1505280
> Memory allocated in total : 113505280
> Setting heap 0. Size 16000000
> Setting heap 1. Size 16000000
> Setting heap 2. Size 16000000
> Setting heap 3. Size 16000000
> Setting heap 4. Size 16000000
> Setting heap 5. Size 16000000
> Setting heap 6. Size 16000000
> Setting heap 7. Size 1505280
> Segmentation fault
>
>>> I may have my hands on a 405 board on Friday, but I'm not
>> sure if I can do much more testing than a simple run of the
>> program. Of course, testing will primarily take place over
>> latest Xenomai...
>>
>
> This certainly would be helpful, especially if you could reproduce the problem (so I know I don´t hunt a phantasm).
>
>> Roderik, you said you tested under Qemu as well? For PPC or x86 arch?
>
> I thought, you tested with Qemu without success (crash). But perhaps my rememberence mixes something up. When I said, that the crash could not be reproduced with Qemu I thought to reference your test. Isn´t this correct ?
Ok, misunderstanding. I tried with Qemu and real x86 hardware, but only
over 2.6 so far. Will have to check with 2.4 as well because of the
over-commitment 2.6 does when requesting memory + the OOM killer
shooting the test immediately.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-09-06 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-06 14:07 AW: AW: [Xenomai-help] resubmission : memset of heap crashes Xenomai-Task Roderik_Wildenburg
2006-09-06 14:47 ` Jan Kiszka [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-07 10:13 Roderik_Wildenburg
2006-09-07 10:25 ` Wolfgang Grandegger
2006-09-07 12:15 ` Gilles Chanteperdrix
2006-09-10 8:18 ` Wolfgang Grandegger
2006-09-06 13:33 Roderik_Wildenburg
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=44FEDF79.6080507@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Roderik_Wildenburg@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.