Very strange bug
Pascal Chevochot
Pascal.Chevochot at irisa.fr
Tue Jun 19 07:11:35 UTC 2001
Hello,
>>>>> "Joel" == Joel Sherrill <joel at OARcorp.com> writes:
Joel> Pascal Chevochot wrote:
>> Hello,
>> Below, you can find a short program. With rtems 4.5.0/bsp586, it
>> works
>> fine. But if I uncomment line `printf("2\n");', then this programm
>> badly crashes !!! Now, if I replace `printf' by `puts', it works !!!
>> Could someone make this test on another bsp586 ?
Joel> I ran it on the sparc/erc32 BSP and it worked fine. It produced this
Joel> output:
Joel> 1
Joel> id
Joel> 2
Joel> wakeup
Joel> And then went into a tight look in mainThread. What else does it do?
It is the correct result.
Joel> I would normally suspect a stack problem. I would suspect that printf
Joel> takes more
Joel> memory than puts. But that is just a guess.
If I increase the stack size, there is still the problem.
Pascal.
--
Irisa - Solidor - HADES | E-mail : Pascal.Chevochot at irisa.fr
Bureau E-302 (niv rouge) | Phone : [+33|0]2 99 84 25 02
Campus de Beaulieu | Fax : [+33|0]2 99 84 71 71
35042 Rennes Cedex, France | http://www.irisa.fr/solidor/work/hades
More information about the users
mailing list