Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated test "mutex_posix" fails sporadically #1

Open
luebbers opened this issue Jan 27, 2011 · 0 comments
Open

Automated test "mutex_posix" fails sporadically #1

luebbers opened this issue Jan 27, 2011 · 0 comments

Comments

@luebbers
Copy link
Owner

The "exec_mute_posix" test of the automated test suite ($RECONOS/tests/automated) fails with the following output:

 mutex lock and release by hwthread: too early

A possible cause may be an insufficient priority of the delegate thread causing it not to wake up reliably during the waiting period of the test routine.

Possible fixes:

  • Generally increase delegate thread priority (e.g. "cyg_thread_set_priority(self_handle, 1)" within the delegate thread's code (reconos_delegate_thread() in delegate.tmpl). Works, but is not recommended, since it does not allow application control over the priorities of delegates, which may need to be different.
  • Fix the test routine to use cyg_thread_delay() instead of a polling delay loop. Works, but kinda hides the problem.
  • Other fixes?

See also mailing-list thread starting with this post:
http://www.mail-archive.com/reconos-devel@lists.reconos.de/msg00008.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant