Closed obra closed 5 years ago
Thanks for the detailed bug report! I will give a look tomorrow and report back here.
@obra may you test the build here https://github.com/arduino/arduino-builder/pull/342#issuecomment-535051887 ?
@cmaglie thanks for the super-quick turnaround. That does indeed seem to solve the problem :)
Fixed by #342
[tl;dr: In 1.8.10, something changed in arduino-builder such that -dump-prefs no longer works without a sketch and -build-path specified. On top of that, there's a segfault when trying to abspath....something if a -build-path is provided, but no sketch is provided.]
Hi folks,
We've been seeing some weird behavior with 1.8.10. It manifested at first as
As I dug in, I discovered that the deeper issue was that arduino-builder was segfaulting when I ran
arduino-builder -dump-prefs
with a -build-path without a sketch:Everything's great with 1.8.9, even run against 1.8.10's libraries and config:
1.8.10 complains that there's no sketch, even if one is defined:
Nightly does the same:
337 PARTIALLY fixes things, but only if given a sketch as an argument:
With arduino/arduino-builder#337 and no sketch as an argument, I'm getting segfaults as the builder tries to abspath an empty string