All of lore.kernel.org
 help / color / mirror / Atom feed
* Tcl SIGCHLD lost process error
       [not found] <1199472296.497716.1477658207727.ref@mail.yahoo.com>
@ 2016-10-28 12:36 ` Valentina Skorpion
  2016-11-02  6:32   ` Mircea Gliga
  0 siblings, 1 reply; 2+ messages in thread
From: Valentina Skorpion @ 2016-10-28 12:36 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2218 bytes --]

               Hello everyone,

     I have been using yocto jethro in order to build my custom Linux distribution for several devices ( qemuarm , sama5d4, etc) . I have used the linux-yocto 4.1.5 kernel version and latest version packages. After upgrading to yocto krogoth I have used a newer version of linux kernel ( version 4.7.2 ) and newer version packages. I had some tcl scripts which worked fine before but now  the following error has been triggered: 
    error waiting for process to exit : child process lost is sigchld ignored or trapped? )

     This error is being triggered when tcl exec function is executed. Even simpler commands such as "exec ls" triggers the same error (the command is not executed).

     I have tried to reproduce the error on yocto krogoth with older versions of linux kernel. On linux-yocto 4.4 the same error appeared.  On linux-yocto 4.1.5 with some outdated packages (with older version, only Tcl had the same version in all test cases) the exec function runned fine (as I have mentioned before). To reproduce the error in this case, SIGCHLD had to be trapped outside tclsh (with trap command : trap "" CHLD), but even then, the command inside exec was executed and only after that the mentioned error was triggered (similar to this issue: http://www.rkeene.org/projects/tcl/tcl.fossil/info/2982713fffffffff ). 

     It seemed at a package (on which depends Tcl) traps or ignores the SIGCHLD.  After some research, a similar issue has been reported ( https://sourceware.org/bugzilla/show_bug.cgi?id=19861 ). In a newer glibc version, fork functionality could not use IFUNC resolver so it would trigger in tcl the SIGCHLD error. A patch has been applied to glib pt-fork.c ( https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blobdiff;f=nptl/pt-fork.c;h=db9b61d9aa172c7886b6ed3decb355a3aa4c9036;hp=b65d6b4eddc0c17a39825a9cd30d0dc3fb5b141f;hb=f06f3f05b48c72e2c9b0fa78671f94fd22d67da8;hpb=7838d298d895f65247fb6b498db03a4336fc0506 ) in order to fix the issue and now works fine.


     Has somebody encountered this issue too? Has anyone used this patch to fix the problem or used another fix? Thanks!

          

    

[-- Attachment #2: Type: text/html, Size: 3825 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tcl SIGCHLD lost process error
  2016-10-28 12:36 ` Tcl SIGCHLD lost process error Valentina Skorpion
@ 2016-11-02  6:32   ` Mircea Gliga
  0 siblings, 0 replies; 2+ messages in thread
From: Mircea Gliga @ 2016-11-02  6:32 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2398 bytes --]

Does anyone has this issue also ?
Any input ?

Thanks

On 28/10/16 15:36, Valentina Skorpion wrote:
>        Hello everyone,
>
>      I have been using yocto jethro in order to build my custom Linux 
> distribution for several devices ( qemuarm , sama5d4, etc) . I have 
> used the linux-yocto 4.1.5 kernel version and latest version packages. 
> After upgrading to yocto krogoth I have used a newer version of linux 
> kernel ( version 4.7.2 ) and newer version packages. I had some tcl 
> scripts which worked fine before but now  the following error has been 
> triggered:
>     error waiting for process to exit : child process lost is sigchld 
> ignored or trapped? )
>
>      This error is being triggered when tcl *exec *function is 
> executed. Even simpler commands such as "exec ls" triggers the same 
> error (the command is not executed).
>
>      I have tried to reproduce the error on yocto krogoth with older 
> versions of linux kernel. On linux-yocto 4.4 the same error appeared.  
> On linux-yocto 4.1.5 with some outdated packages (with older version, 
> only Tcl had the same version in all test cases) the exec function 
> runned fine (as I have mentioned before). To reproduce the error in 
> this case, SIGCHLD had to be trapped outside tclsh (with trap command 
> : trap "" CHLD), but even then, the command inside exec was executed 
> and only after that the mentioned error was triggered (similar to this 
> issue: 
> http://www.rkeene.org/projects/tcl/tcl.fossil/info/2982713fffffffff ).
>
>      It seemed at a package (on which depends Tcl) traps or ignores 
> the SIGCHLD.  After some research, a similar issue has been reported ( 
> https://sourceware.org/bugzilla/show_bug.cgi?id=19861 ). In a newer 
> glibc version, fork functionality could not use IFUNC resolver so it 
> would trigger in tcl the SIGCHLD error. A patch has been applied to 
> glib pt-fork.c ( 
> https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blobdiff;f=nptl/pt-fork.c;h=db9b61d9aa172c7886b6ed3decb355a3aa4c9036;hp=b65d6b4eddc0c17a39825a9cd30d0dc3fb5b141f;hb=f06f3f05b48c72e2c9b0fa78671f94fd22d67da8;hpb=7838d298d895f65247fb6b498db03a4336fc0506 
> ) in order to fix the issue and now works fine.
>
>
>      Has somebody encountered this issue too? Has anyone used this 
> patch to fix the problem or used another fix? Thanks!
>
>
>
>
>
>


[-- Attachment #2: Type: text/html, Size: 5351 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-02  6:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1199472296.497716.1477658207727.ref@mail.yahoo.com>
2016-10-28 12:36 ` Tcl SIGCHLD lost process error Valentina Skorpion
2016-11-02  6:32   ` Mircea Gliga

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.