Hi Daron,<br><br>It is running on a LEON-3. The application exits raising the following exception: <br><br>IU in error mode (tt = 0x07)<br><br>which is a memory access to an unaligned address. The last instruction is this:<br>
<br>4003bd74  d0006034   ld  [%g1 + 0x34], %o0<br><br>I don't understand why i have this error. The code where this error is being reported is compiled independently and then put in a library, but it uses the same cross-compiler as the main source code. I don't think i'm doing something wrong while compiling the library files, i use the same compilation flags.. <br>
<br>What can i be missing to have unaligned memory accesses?<br><br><br>Best,<br>JM<br><br><br><br><div class="gmail_quote">On Fri, Nov 12, 2010 at 6:43 PM, Daron Chabot <span dir="ltr"><<a href="mailto:daron.chabot@gmail.com">daron.chabot@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br><div class="gmail_quote"><div class="im">On Fri, Nov 12, 2010 at 11:50 AM, Joćo Rasta <span dir="ltr"><<a href="mailto:freakforever@gmail.com" target="_blank">freakforever@gmail.com</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi,<br><br>I have an RTEMS POSIX API application which comes to a point that if a small function (with some doubles passed as arguments) is called, the application exits with an error. At first i thought of increasing the stack space. I did this with CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE but the problem remains even if i remove all the contents of the function.<br>



<br>1) Am i setting up the stack size correctly? I think i am, but i ask just in case..<br><br>2) Is there any other explanation to why a function call crashes the application besides having a full stack? Again, i erased the function contents..<br>


</blockquote><div><br></div></div></div><div>What architecture is this running on ?<br></div><div><br></div><div>What is the application exit error (message and/or return code)?</div><div><br></div><div>It looks like all POSIX threads are created as floating-point tasks (FP state saved across context switches), so there "shouldn't" be a problem on that aspect...</div>
<div class="im">

<div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br>Best,<br>JM<br><br><br>
<br>_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
<br></blockquote></div></div><br>
</blockquote></div><br>