smokey's fork tests hangs?

Jan Kiszka jan.kiszka at siemens.com
Fri Mar 8 14:00:07 CET 2019


On 07.03.19 15:55, Lange Norbert via Xenomai wrote:
> Hello,
> 
> I have problems with the fork tests, they both hang for me.
> 
> # xeno smokey --run=11 --verbose=2
> <hangs>
> 
> # xeno smokey --run=20 --verbose=2
> no leak withthread
> no leak withmutex
> no leak withcond
> no leak withsem
> no leak withnamed sem
> no leak withtimer
> no leak withmq
> <hangs>
> 
> When started under gdb, the parent is running into waitpid,
> The child is stuck at an innocent locking snippet [1].
> 
> #0  __lll_lock_wait_private ()
>      at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:63
> #1  0x00007ffff7ed74de in __GI___register_atfork (
>      prepare=0x7ffff7f5edc0 <atfork_lock>, prepare at entry=0x0,
>      parent=parent at entry=0x0,
>      child=child at entry=0x7ffff7f9f4e0 <cobalt_fork_handler>,
>      dso_handle=0x7ffff7de0e5b <__lll_lock_wait_private+27>)
>      at register-atfork.c:40
> #2  0x00007ffff7faca9d in __pthread_atfork (prepare=prepare at entry=0x0,
>      parent=parent at entry=0x0,
>      child=child at entry=0x7ffff7f9f4e0 <cobalt_fork_handler>)
>      at pthread_atfork.c:51
> #3  0x00007ffff7f9f307 in __cobalt_init ()
>      at /home/lano/buildroot/build/xenomai/lib/cobalt/init.c:212
> #4  cobalt_init () at /home/lano/buildroot/build/xenomai/lib/cobalt/init.c:252
> #5  0x00007ffff7f9f4fc in cobalt_fork_handler ()
>      at /home/lano/buildroot/build/xenomai/lib/cobalt/init.c:192
> #6  0x00007ffff7ed7898 in __run_fork_handlers (who=who at entry=atfork_run_child)
>      at register-atfork.c:134
> #7  0x00007ffff7e9b04a in __libc_fork () at ../sysdeps/nptl/fork.c:137
> #8  0x0000000000408d0b in ?? ()
> #9  0x00000000004051d1 in main ()
> 
> [1] - https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/x86_64/lowlevellock.S;h=71dd740202b1d6501a2ffd929aa99cbd99a019ef;hb=1e5c5303a522764d7e9d2302a60e4a32cdb902f1
> 

Not reproducible here with stable/3.0.x or next, and with ipipe-x86-4.14.y. What 
are your parameters?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list