This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
problem with multi_lo_select.c
- From: sandeep <shimple0 at yahoo dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 23 Nov 2004 20:03:15 +0530
- Subject: [ECOS] problem with multi_lo_select.c
following problem is even possible with non-smp configuration (patches for it
have been sent two times in past years in the bundle of smp patches).
in dummy thread, s_s1 is static variable and access to it is unprotected. this
can lead to more than 1 dummy threads enter "if (s_s1 < 0) { ...." and some part
of test not behaving as expected.
in the wake of recent weeks bugs with ecos/ecos-tests, it would be fruitful to
also examine cases for unprotected static/global variable accesses of similar
nature in both, from no-smp and smp point of views.
sandeep
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss