Someone will have to find the bug in gcc-3.2.1->gcc-3.2.3 causing ticker to crash for pc386

Salman unix at gofree.indigo.ie
Thu Apr 3 13:11:44 UTC 2003


Well, if we're certain that it's GCC related (and not our own patches,
etc) can't we just report it to the GCC bug list or something ??

I would have tackled the problem myself, if I wasn't so damn busy with
my final year studies, since it has effected my project as well.

Salman

-----Original Message-----

From: Valette Eric <eric.valette at free.fr>
To: RTEMS User List <rtems-users at oarcorp.com>
Subject: Someone will have to find the bug in gcc-3.2.1->gcc-3.2.3 causing ticker to crash for pc386
Date: 03 Apr 2003 14:30:21 +0200

I extracted gcc 3.2.3 directly from cvs uing the gcc-3.2_branch today 
(or something like that). I also extracted newlib from cvs today.

I did rebuild everything including 4.6pre1 from scratch and ticker still 
fails when switching context as the result of init thread deleting 
itself. The PC of the fault is totally wrong (0x7C01) meaning that there 
is not much to debug doing any kind of backtrace.

Putting printk and using bochs, I can say the init thread is running 
doing the task create, the task start but the newly created ticker 
threads are not even started... The crash seems to occur in the middle 
of the context switch. Just to be sure that it is not due to an irq, I 
added a asm volatile ("sti") in the init thread and it continue its 
execution up to the task delete itself...

------------------------------------------------------------------------
i386-rtems-gcc -v 

Reading specs from 
/usr/local/rtems-ix86-dev-tools/lib/gcc-lib/i386-rtems/3.2.3/specs
Configured with: ../gcc/configure 
--prefix=/usr/local/rtems-ix86-dev-tools --target=i386-rtems 
--enable-threads --with-newlib --with-gnu-ld --with-gnu-as 
--enable-languages=c,c++
Thread model: rtems
gcc version 3.2.3 20030403 (prerelease)
----------------------------------------------------------------------------

-- 
    __
   /  `                   	Eric Valette
  /--   __  o _.          	6 rue Paul Le Flem
(___, / (_(_(__         	35740 Pace

Tel: +33 (0)2 99 85 26 76	Fax: +33 (0)2 99 85 26 76
E-mail: eric.valette at free.fr





More information about the users mailing list