Hello,

We have managed to reproduce the issue with your binary.

Tested with (./deadlock 4 1000000):

- Raspberry Pi 1 with Raspbian Buster
- Raspberry Pi 3 with Raspbian Buster
- QEMU 4.2.0 on a Core i7-8650U Archlinux
- QEMU 4.2.0 on a Core i7-8700 Gentoo

Maybe you are using an older version of QEMU which does not have support 
for Multi-Threaded TCG? One single core machines/emulation the mutex 
deadlocks much less often. The occurrence depends on CPU speed and 
thread numbers.

You may need to increase the thread numbers (first argument) and 
iteration count (second argument) or even try to run several times.

Best regards,
Gyula FARKAS

On 2/21/20 1:30 PM, Waldemar Brodkorb wrote:
> Hi,
> Gyula FARKAS wrote,
> 
>> Hello,
>>
>> The segfault is from the missing command line arguments, which I did not 
>> check in sample app. Please run it as:
>>
>>      $ ./deadlock 4 1000000
> 
> Does it happen with the attached binary? I couldn't reproduce in
> Qemu.
> 
> best regards
>   Waldemar
> 
> ________________________
> This email was scanned by Bitdefender
> 
_______________________________________________
devel mailing list
[email protected]
https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

Reply via email to