Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Out of memory..

Altera_Forum
Honored Contributor II
981 Views

I'm running an application that runs with 16 threads ( 17 if you count main()) on uCLIunx Nios II with 32 MB SDRAM. After it runs a while (for almost 1/2 hour), suddenly the OS does this: 

 

http://www.e-mag.com/problem.jpg (http://www.e-mag.com/problem.jpg

 

I really dont understand what could cause this because 

 

1) my application doesnt do any memory allocation. 

2) the 16 threads just sem_wait for interrupts from some processors that it's controlling. 

 

so basically, the application just keeps calling sem_wait and sem_post and makes a few hardware-related calls. 

 

This can't be related to stack overflow can it? 

 

Any thoughts would be greatly appreciated.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
269 Views

Problem stemmed from the fact that the two NIOS processors on the board had mismatched kernel and or rootfs. 

 

Wow, weird problem requires weird solution. Heh. 

 

 

--- Quote Start ---  

originally posted by shachris23@Aug 20 2006, 04:50 PM 

i'm running an application that runs with 16 threads ( 17 if you count main()) on ucliunx nios ii with 32 mb sdram. after it runs a while (for almost 1/2 hour), suddenly the os does this: 

 

http://www.e-mag.com/problem.jpg (http://www.e-mag.com/problem.jpg

 

i really dont understand what could cause this because 

 

1) my application doesnt do any memory allocation. 

2) the 16 threads just sem_wait for interrupts from some processors that it's controlling. 

 

so basically, the application just keeps calling sem_wait and sem_post and makes a few hardware-related calls. 

 

this can't be related to stack overflow can it? 

 

any thoughts would be greatly appreciated. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17730) 

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Reply