Skip to contentSkip to conversation

malloc greater than 4K issue

Xenomai-help [email protected] 1 participant 2 messages Jan 16, 2009 – Jan 19, 2009

lore
Share & tools
lore
#0 lore raw

Dear experts

we have a systems with Ubuntu Linux 2.6.25.11 and Xenomai 2.4.4. The system has a Pentium III (Coppermine) 1GHz.
The Xenomai installation seems to be ok.

The application, in an Rt task in user mode, allocates and uses a buffer of 4K or greater.
The buffer is allocated with malloc.

When the buffer is greater that 4K the progam exits with a sementation fault.

I have no idea of the origin of the issue.
I ask you if the use of malloc for buffer greater than 4K is correct or the use of other APIs is suggested.
I have tried also with rt_heap_create but I receive an error of "permission denied".

Any suggestions?

Thanks in advance

Stefano

#1 lore raw

Issue solved.
Sinuous bug into my application!

Stefano

stefano.franzoni@
marposs.com
Sent by: To
xenomai-help-boun "[email protected]"
[email protected] <[email protected]>
cc

16/01/2009 17:36 Subject
[Xenomai-help] malloc greater than 4K issue

Dear experts

we have a systems with Ubuntu Linux 2.6.25.11 and Xenomai 2.4.4. The system has a Pentium III (Coppermine) 1GHz.
The Xenomai installation seems to be ok.

The application, in an Rt task in user mode, allocates and uses a buffer of 4K or greater.
The buffer is allocated with malloc.

When the buffer is greater that 4K the progam exits with a sementation fault.

I have no idea of the origin of the issue.
I ask you if the use of malloc for buffer greater than 4K is correct or the use of other APIs is suggested.
I have tried also with rt_heap_create but I receive an error of "permission denied".

Any suggestions?

Thanks in advance

Stefano

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help