segmentaion fault with array[4096]

2 messages, 2 authors, 2005-08-18 · open the first message on its own page

segmentaion fault with array[4096]

From: Studencki Pawel <hidden>
Date: 2005-08-18 09:58:23

hello,

because I want to do some tests with fusion/RTAI on my mpc852,
I had to downgrade my system to kernel 2.6.10
And I get a strange problem: if I start application with char array size
4096 (or even smaller 2600) I get "segmentation fault".
Could someone gives me a hint? Is this kernel configuration problem?
Where can I start looking for a reason?

thanks
Pawel

Re: segmentaion fault with array[4096]

From: Marcelo Tosatti <hidden>
Date: 2005-08-18 18:09:53

Hi!
On Thu, Aug 18, 2005 at 11:45:04AM +0200, Studencki Pawel wrote:
hello,

because I want to do some tests with fusion/RTAI on my mpc852,
I had to downgrade my system to kernel 2.6.10
Downgrade from what? 
And I get a strange problem: if I start application with char array size
4096 (or even smaller 2600) I get "segmentation fault".

Could someone gives me a hint? Is this kernel configuration problem?
Where can I start looking for a reason?
Have you tried to debug the application with gdb to spot more precisely 
what is it doing that makes it receive a segfault? 

Most likely its doing an invalid memory access.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help