Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 317209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:27:17+00:00 2026-05-12T08:27:17+00:00

I have a VxWorks application running on ARM uC. First let me summarize the

  • 0

I have a VxWorks application running on ARM uC.

First let me summarize the application;

Application consists of a 3rd party stack and a gateway application.
We have implemented an operating system abstraction layer to support OS in-dependency.

The underlying stack has its own memory management&control facility which holds memory blocks in a doubly linked list.

For instance ; we don’t directly perform malloc/new , free/delege .Instead we call OSA layer’s routines and it gets the memory from OS and puts it in a list then returns this memory to application.(routines : XXAlloc , XXFree,XXReAlloc)

And when freeing the memory we again use XXFree.

In fact this block is a struct which has

-magic numbers indication the beginning and end of memory block
-size that user requested allocated
-size in reality due to alignment issue previous and next pointers
-pointer to piece of memory given back to application. link register that shows where in the application xxAlloc is called.

With this block structure stack can check if a block is corrupted or not.

Also we have pthread library which is ported from Linux that we use to
-create/terminate threads(currently there are 22 threads)
-synchronization objects(events,mutexes..)

There is main task called by taskSpawn and later this task created other threads.

this was a description of application and its VxWorks interface.

The problem is :

one of tasks suddenly gets destroyed by VxWorks giving no information about what’s wrong.
I also have a jtag debugger and it hits the VxWorks taskDestoy() routine but call stack doesn’t give any information neither PC or r14.

I’m suspicious of specific routine in code where huge xxAlloc is done but problem occurs
very sporadic giving no clue that I can map it to source code.

I think OS detects and exception and performs its handling silently.

any help would be great

regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:27:17+00:00Added an answer on May 12, 2026 at 8:27 am

    It resolved.

    I did an isolated test. Allocated 20MB with malloc and memset with 0x55 and stopped thread of my application.

    And I wrote another thread which checks my 20MB if any data else than 0x55 is written.

    And quess what!! some other thread which belongs other components in CPU (someone else developed them) write my allocated space.

    Thanks 4 your help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a vxWorks design which requires one task to process messages from two
If you have round robin enabled in Vxworks and your task gets preempted by
If you have round robin scheduling enabled in VxWorks, and you use taskLock() to
We have two tasks (T1 and T2) in our vxWorks embedded system that have
I have been unable to receive UDP multicast under VxWorks 5.5. I've joined the
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have just started using Google Chrome , and noticed in parts of our site,
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you guys had any experiences (positive or negative) by placing your source code/solution
Have just started using Visual Studio Professional's built-in unit testing features, which as I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.