All of lore.kernel.org
 help / color / mirror / Atom feed
* AW: AW: [Xenomai-help] resubmission : memset of heap crashes Xenomai-Task
@ 2006-09-06 14:07 Roderik_Wildenburg
  2006-09-06 14:47 ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Roderik_Wildenburg @ 2006-09-06 14:07 UTC (permalink / raw)
  To: jan.kiszka, wg; +Cc: xenomai

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).
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 ?  

Roderik


^ permalink raw reply	[flat|nested] 7+ messages in thread
* AW: AW: [Xenomai-help] resubmission : memset of heap crashes Xenomai-Task
@ 2006-09-07 10:13 Roderik_Wildenburg
  2006-09-07 10:25 ` Wolfgang Grandegger
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Roderik_Wildenburg @ 2006-09-07 10:13 UTC (permalink / raw)
  To: gilles.chanteperdrix, wg; +Cc: xenomai

Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org] :
> 
> Ok. Now the question remains: does this problem still exist 
> with version
> 2.2.2 ? The heaps overhead computations have changed recently.
> 

Good news. I can´t reproduce the "seg. fault" with 2.2.2 although I tried hard (restarted at least 20 times). Obviously the new "heap overhead computations" eliminated the problem. 
Wolgang could you be so nice to try to reproduce the problem with 2.2.2, just to be sure ?

Many thanks to everybody who spend his precious time 
Roderik

P.s.: with 2.2.2 I noticed, that in /proc/xenomai/interfaces vxWorks is not listed although I compiled the kernel with support for vxworks. Is this o.K. ?


^ permalink raw reply	[flat|nested] 7+ messages in thread
* AW: AW: [Xenomai-help] resubmission : memset of heap crashes Xenomai-Task
@ 2006-09-06 13:33 Roderik_Wildenburg
  0 siblings, 0 replies; 7+ messages in thread
From: Roderik_Wildenburg @ 2006-09-06 13:33 UTC (permalink / raw)
  To: gilles.chanteperdrix, wg; +Cc: xenomai

> 
> Ok. Now the question remains: does this problem still exist 
> with version
> 2.2.2 ? The heaps overhead computations have changed recently.
> 

I will try this tomorrow.


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

end of thread, other threads:[~2006-09-10  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

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.