[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] rtl pthread bug ?? (was unwelcome reboot)



Olaf,

1. To fix problems with rtl_printf buffer overflows, you need to upgrade
to version RTLinux 3.x. 3.0pre8 is the latest.

2. The real problem with the code is that Linux does not have a chance to run:
your thread2_code never blocks. Insert usleep(100000) in the loop and it should
work.

Michael.

Olaf Petzold (opetzold@wit.regiocom.net) wrote:
> Hello,
> 
> the attached code crashs, why ? The goal was to synchronize two rtl threads
> with kernel-2.2.14-rtl-2.2. The counter mechanism is working as we can see on
> the debug messages. After the screen was full of those messages, the box was
> rebooting. It's not clear for us why it's does. The source isn't using the
> periodic mode. If I see these problems, I guess that the problems from the
> thread "unwelcome reboot" does not regards to comedi. The only thing: inside
> the callback function there should not be a rtl_printf - thats kills the
> interrupt handler! Mostly the cursor disappears after insmod this module.
> 
> Who can help ??
> 
> Thanks	Olaf
> 
>