Hi, Sorry for the lack of information, I'm still bit of a new guy. I have found the following (I do use a mlockall(current | future)):
When i declare larger arrays in the real-time task I get the segmentation fault. This is when I declare as follows double arr[10000]; //some KB sized value When I use malloc I don't get the problem. My question now is where does the first one declare the memory. I am assuming that the malloc declares strait into the RAM, becuase there I am safe to declare a couple of MB? Thanks Dehann On Fri, Sep 26, 2008 at 5:55 PM, Gilles Chanteperdrix < [EMAIL PROTECTED]> wrote: > Dehann Fourie wrote: > > Hi, > > > > I'm having trouble with a segmentation fault in my real-time application. > > The problem seems to occur when I use large amounts of memory. The > > application works fine when I don't try to populate the large arrays. > > > > I have tried changing parameters in the real time create call, but this > > didn't work. The error message is: > > > > Xenomai: Switching nav to secondary mode after exception #14 from > user-space > > at 0x804ad13 (pid 1938) > > nav [1938]; segfault at 26756e50 eip 0804ad13 esp b762ac28 error 6 > > Segmentation fault > > > > This is from text mode. > > You do not give us much information about your configuration. However, > have you tried gdb ? In case of segmentation faults, it should stop you > right at the point where the segmentation occurs. > > -- > Gilles. >
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
