[ 
https://issues.apache.org/jira/browse/MESOS-7160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063108#comment-16063108
 ] 

Andrei Budnik commented on MESOS-7160:
--------------------------------------

It's very unusual that parent fails to wait for a child. Sure, {{waitpid}} can 
be called before or after child exits. But AFAIK it shouldn't be a race 
condition as kernel keeps {{task_struct}} until parent process invokes 
{{wait*()}}.

In addition, if path to an executable is invalid, then {{execv}} will fail, 
causing invocation of {{abort()}} twice:
[https://github.com/apache/mesos/blob/18695ae8d5cfc209072950e887495a42dd83a1d9/3rdparty/libprocess/include/process/posix/subprocess.hpp#L195]
[https://github.com/apache/mesos/blob/18695ae8d5cfc209072950e887495a42dd83a1d9/3rdparty/libprocess/src/subprocess.cpp#L181]

> Parsing of perf version segfaults
> ---------------------------------
>
>                 Key: MESOS-7160
>                 URL: https://issues.apache.org/jira/browse/MESOS-7160
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>            Reporter: Benjamin Bannier
>
> Parsing the perf version [fails with a segfault in ASF 
> CI|https://builds.apache.org/job/Mesos-Buildbot/BUILDTOOL=autotools,COMPILER=gcc,CONFIGURATION=--verbose%20--enable-libevent%20--enable-ssl,ENVIRONMENT=GLOG_v=1%20MESOS_VERBOSE=1,OS=ubuntu:14.04,label_exp=(docker%7C%7CHadoop)&&(!ubuntu-us1)&&(!ubuntu-eu2)/3294/],
> {noformat}
> E0222 20:54:03.033464   805 perf.cpp:237] Failed to get perf version: Failed 
> to execute perf: terminated with signal Aborted (core dumped)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to