Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8B4E8200D39 for ; Sat, 28 Oct 2017 02:51:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 89E6B160BF4; Sat, 28 Oct 2017 00:51:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CEC12160BF2 for ; Sat, 28 Oct 2017 02:51:12 +0200 (CEST) Received: (qmail 61213 invoked by uid 500); 28 Oct 2017 00:51:12 -0000 Mailing-List: contact notifications-help@mynewt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mynewt.apache.org Delivered-To: mailing list notifications@mynewt.apache.org Received: (qmail 61204 invoked by uid 99); 28 Oct 2017 00:51:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2017 00:51:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 358FBC40E8 for ; Sat, 28 Oct 2017 00:51:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KcJeUdhwxFwe for ; Sat, 28 Oct 2017 00:51:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 896D05FB52 for ; Sat, 28 Oct 2017 00:51:09 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CBFBDE0DFC for ; Sat, 28 Oct 2017 00:51:07 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 09189212FA for ; Sat, 28 Oct 2017 00:51:05 +0000 (UTC) Date: Sat, 28 Oct 2017 00:51:05 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@mynewt.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MYNEWT-860) Newt - Empty `pkg.yml` file causes target to be built as split image MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 28 Oct 2017 00:51:13 -0000 [ https://issues.apache.org/jira/browse/MYNEWT-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16223099#comment-16223099 ] ASF subversion and git services commented on MYNEWT-860: -------------------------------------------------------- Commit b9701509ecc7113bfc050e30651e09791041018d in mynewt-newt's branch refs/heads/master from [~ccollins476] [ https://gitbox.apache.org/repos/asf?p=mynewt-newt.git;h=b970150 ] MYNEWT-860 Newt - Empty `pkg.yml` issues. Bug described in https://issues.apache.org/jira/browse/MYNEWT-860. The fix is to ignore packages that don't have a "pkg.name" field. > Newt - Empty `pkg.yml` file causes target to be built as split image > -------------------------------------------------------------------- > > Key: MYNEWT-860 > URL: https://issues.apache.org/jira/browse/MYNEWT-860 > Project: Mynewt > Issue Type: Bug > Security Level: Public(Viewable by anyone) > Components: Newt > Reporter: Christopher Collins > Assignee: Christopher Collins > > (Pull request: https://github.com/apache/mynewt-newt/pull/105) > 1. Create a directory in your project: > {noformat} > mkdir blah > {noformat} > 2. Create an empty {{pkg.yml}} file in the directory: > {noformat} > touch blah/pkg.yml > {noformat} > 3. Build a non-split-image target. > Newt will compile everything twice, as if it were building a split image. Then it will fail in an unpredictable way, e.g.: > {noformat} > Error: In file included from apps/krang/src/main.c:23:0: > repos/apache-mynewt-core/sys/sysinit/include/sysinit/sysinit.h:28:25: fatal error: split/split.h: No such file or directory > #include "split/split.h" > {noformat} > {noformat} > panic: runtime error: invalid memory address or nil pointer dereference > [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x12a71d4] > goroutine 1 [running]: > mynewt.apache.org/newt/newt/pkg.(*LocalPackage).Name(...) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/builder/paths.go:179 > mynewt.apache.org/newt/newt/builder.(*Builder).TestExePath(0xc4205307e0, 0x0, 0x0) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/builder/paths.go:179 +0x34 > mynewt.apache.org/newt/newt/builder.(*Builder).CompileCmdsPath(0xc4205307e0, 0xc420308920, 0x0) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/builder/paths.go:198 +0xad > mynewt.apache.org/newt/newt/builder.(*Builder).Build(0xc4205307e0, 0x0, 0x0) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/builder/build.go:601 +0xa20 > mynewt.apache.org/newt/newt/builder.(*TargetBuilder).buildLoader(0xc420518120, 0x0, 0x0) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/builder/targetbuild.go:319 +0xc6 > mynewt.apache.org/newt/newt/builder.(*TargetBuilder).Build(0xc420518120, 0xc420518120, 0x0) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/builder/targetbuild.go:372 +0x16d > mynewt.apache.org/newt/newt/cli.buildRunCmd(0xc420090b40, 0xc420048d50, 0x1, 0x1, 0x0) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:160 +0x2c9 > mynewt.apache.org/newt/newt/cli.AddBuildCommands.func1(0xc420090b40, 0xc420048d50, 0x1, 0x1) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:404 +0x5f > mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc420090b40, 0xc420048d10, 0x1, 0x1, 0xc420090b40, 0xc420048d10) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:636 +0x234 > mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc4200906c0, 0x5, 0x25, 0x1399e93) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:722 +0x2fe > mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).Execute(0xc4200906c0, 0x1399e93, 0x5) > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:681 +0x2b > main.main() > /Users/ccollins/go/src/mynewt.apache.org/newt/newt/newt.go:170 +0x1ac > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)