This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ASSERT FAIL
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] ASSERT FAIL
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 27 Jun 2001 18:31:07 +0100
- Cc: 'eCos discussion' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000c01c0ff2c$21291bc0$090110ac@TRENT>
"Trenton D. Adams" wrote:
>
> I get the following error and then my program hangs. What does the <1>
> mean, and what does the [170] mean? I didn't see information on these
> numbers in the documentation. Also, my threads work just fine without
> tracing and assertions enabled.
>
> ASSERT FAIL: <1>[170]void cyg_thread_create() Bad handle pointer
>
> cyg_thread_entry_t WatchSlot;
> cyg_thread_entry_t Start;
>
> void cyg_user_start(void)
> {
>
> cyg_mutex_init(&cliblock);
>
> cyg_thread_create(4, WatchSlot, (cyg_addrword_t) 0,
> "Slot Watch", (void *) stack[0], 4096,
> &slotWatch, &thread_s[0]);
> cyg_thread_create(4, Start, (cyg_addrword_t) 0,
> "Start", (void *) stack[1], 4096,
> &start, &thread_s[1]);
^^^^^
Not &Start?
You'll find that "start" from vectors.S is polluting your namespace. This
is a bug in vectors.S. Many of the labels were chosen without leading
underscores to make them reserved. Patches to fix this are welcome :-|.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/