From owner-freebsd-arm@freebsd.org Sun Mar 5 11:17:05 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B682CCF9124 for ; Sun, 5 Mar 2017 11:17:05 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com [IPv6:2607:f8b0:400d:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 708D018FA for ; Sun, 5 Mar 2017 11:17:05 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qk0-x235.google.com with SMTP id g129so51939181qkd.1 for ; Sun, 05 Mar 2017 03:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=1wxXWnPDfih8Yr9Tn6TNsaw5365viR0w1DPPk5LfvE4=; b=NNSduW4WEyXxVKbr4iUubN+8/7LkqgK3Gje4ioWoda/Np5NVJo9OxyUREnkNNnZkt/ zmSBxsUnMVs6sNAPiNvKg+UYv8/KuQkvOQZblTvFNm2OurInKSgT5WV3O/VwvZr3z8cV y+4s8cNxyjNTJrG3IIFvmAT6lhhJCIVBplb4k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=1wxXWnPDfih8Yr9Tn6TNsaw5365viR0w1DPPk5LfvE4=; b=Ga2FQjW2L0QGeSpTQ04n6c42GZeK3dCIfYtMk0R/MIiITWwkXAAIPOsqictb+hl2iX TSFlWEYQSSEUNcKo3qlfffeloQkDg8T+g3aAYJkSy98J8ylM8JLHExolWNu1kGuC/+fv NixdwRE9O9CxEMWEThEwqu5GRrsgF5t9GHs009/uvmtHqUxKi6zN6q3P476fKMV36Eey kLW0Yx6DSsmhqjezi7JNbO5K3MKJXkNKM0cYfeMGz8wukij1SCpzGKLZHpNBYF/VEV0z LEYvLgvM026bDzXl3YDW/lUcmoocEJPG4MMDNqcFPFAVdKV4k1ptKAkBBYhrttnIHHQI +c8w== X-Gm-Message-State: AMke39ksibmwMouG06DTZYIfWTDV6+YGuLb+Q8eXbW8VYCJqRJZ0VQjh+oG43AuwxMR8gA== X-Received: by 10.55.6.7 with SMTP id 7mr11898958qkg.200.1488712624323; Sun, 05 Mar 2017 03:17:04 -0800 (PST) Received: from [192.168.0.11] ([186.236.217.98]) by smtp.googlemail.com with ESMTPSA id 23sm11329268qtu.47.2017.03.05.03.17.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2017 03:17:03 -0800 (PST) Subject: Re: Simple program immediately killed when running on a NFS To: Daniel Braniss References: Cc: "freebsd-arm@freebsd.org" From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: Date: Sun, 5 Mar 2017 08:16:35 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2017 11:17:05 -0000 Em 05/03/2017 06:58, Daniel Braniss escreveu: >> On 5 Mar 2017, at 05:18, Otacílio wrote: >> >> Dears >> >> I'm trying to compile a simple hello world program on my RPI3. The >> program is on a directory mounted using NFS and stored in the amd64 >> machine. When I compile and try to run the program in the NFS mounted >> path it does not work, when I copy the same program to a local dir it >> works, and then when I copy the program from the local dir to the NFS dir >> it works !?!?!?! Someone can, please, explain it? Look at the historic >> program. On this same scenario, my beagleboneblack behaves without mistakes. >> >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # cc -o >> conftest conftest.c >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # ./conftest >> Killed >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # cp conftest >> /usr/home/ota/conftest >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # >> /usr/home/ota/conftest >> Hello world! >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # cp >> /usr/home/ota/conftest ./conftest >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # ./conftest >> Hello world! >> root@rpi3:/usr/ports/benchmarks/netperf/work/netperf-2.7.0 # mount >> /dev/mmcsd0s2a on / (ufs, local, noatime, journaled soft-updates, nfsv4acls) >> devfs on /dev (devfs, local, multilabel) >> /dev/mmcsd0s1 on /boot/efi (msdosfs, local, noatime) >> /dev/md0 on /tmp (ufs, local, noatime, soft-updates) >> /dev/md1 on /var/log (ufs, local, noatime, soft-updates) >> /dev/md2 on /var/tmp (ufs, local, noatime, soft-updates) >> squitch:/usr/ports on /usr/ports (nfs) >> >> >> Thanks a lot! >> >> []'s >> >> -Otacílio > > take a look at /var/log/messages, there might be some more info as to why the process was killed. > > danny > I tried three times, the two firsts building benchmarks/netperf and the last one compiling a simple hello world. I got this messages on /var/log/messages Mar 5 08:11:48 rpi3 kernel: pid 1589 (sh), uid 0, was killed: text file modification Mar 5 08:13:19 rpi3 kernel: pid 2114 (sh), uid 0, was killed: text file modification Mar 5 08:13:55 rpi3 kernel: pid 2134 (csh), uid 0, was killed: text file modification