mynewt-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Collins (JIRA)" <>
Subject [jira] [Created] (MYNEWT-860) Newt - Empty `pkg.yml` file causes target to be built as split image
Date Thu, 26 Oct 2017 23:01:00 GMT
Christopher Collins created MYNEWT-860:

             Summary: Newt - Empty `pkg.yml` file causes target to be built as split image
                 Key: MYNEWT-860
             Project: Mynewt
          Issue Type: Bug
      Security Level: Public (Viewable by anyone)
          Components: Newt
            Reporter: Christopher Collins
            Assignee: Christopher Collins

1. Create a directory in your project:
mkdir blah

2. Create an empty {pkg.yml} file in the directory:
touch blah/pkg.yml

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.:

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"

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x12a71d4]

goroutine 1 [running]:*LocalPackage).Name(...)
        /Users/ccollins/go/src/*Builder).TestExePath(0xc4205307e0, 0x0, 0x0)
        /Users/ccollins/go/src/ +0x34*Builder).CompileCmdsPath(0xc4205307e0, 0xc420308920,
        /Users/ccollins/go/src/ +0xad*Builder).Build(0xc4205307e0, 0x0, 0x0)
        /Users/ccollins/go/src/ +0xa20*TargetBuilder).buildLoader(0xc420518120, 0x0, 0x0)
        /Users/ccollins/go/src/ +0xc6*TargetBuilder).Build(0xc420518120, 0xc420518120, 0x0)
        /Users/ccollins/go/src/ +0x16d, 0xc420048d50, 0x1, 0x1, 0x0)
        /Users/ccollins/go/src/ +0x2c9, 0xc420048d50, 0x1, 0x1)
        /Users/ccollins/go/src/ +0x5f*Command).execute(0xc420090b40,
0xc420048d10, 0x1, 0x1, 0xc420090b40, 0xc420048d10)
0x5, 0x25, 0x1399e93)
0x1399e93, 0x5)
        /Users/ccollins/go/src/ +0x1ac

This message was sent by Atlassian JIRA

View raw message