| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
#include "src/base/logging.h" works too, at least locally for me. Any particular reason for including the source file itself?
Sorry, something went wrong.
There was a problem hiding this comment.
And CI is failing on smartos with ld: fatal: symbol 'v8::base::DumpBacktrace()' is multiply-defined: https://ci.nodejs.org/job/node-test-commit-smartos/2478/nodes=smartos14-32/console
Sorry, something went wrong.
There was a problem hiding this comment.
I included the .cc so it works with shared V8 builds (think Fedora, Debian, Ubuntu, etc.,or linking against a .so.)
I'll ifdef out smartos. That user base is a rounding error compared to the aforementioned distros.
Sorry, something went wrong.
Sorry, something went wrong.
|
LGTM if CI is green |
Sorry, something went wrong.
|
Oh my gosh, +1000 |
Sorry, something went wrong.
|
Looks like plinux doesn't like it. In file included from ../deps/v8/src/base/logging.h:12:0,
from ../deps/v8/src/base/logging.cc:5,
from ../src/backtrace.cc:7:
../deps/v8/src/base/build_config.h:102:2: error: #error Target architecture was not detected as supported by v8
#error Target architecture was not detected as supported by v8
^
../deps/v8/src/base/build_config.h:140:2: error: #error Unknown target architecture pointer size
#error Unknown target architecture pointer size
^
../deps/v8/src/base/build_config.h:202:2: error: #error Unknown target architecture endianness
#error Unknown target architecture endianness
^
make[2]: *** [/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/obj.target/node/src/backtrace.o] Error 1
|
Sorry, something went wrong.
|
LGTM, but yea, was just about to say what @Fishrock123 did. |
Sorry, something went wrong.
|
Different approach that should work on all platforms: https://ci.nodejs.org/job/node-test-pull-request/2637/ |
Sorry, something went wrong.
|
@bnoordhuis Looks like that failed on smartos: ../src/backtrace_posix.cc
../src/backtrace_posix.cc: In function 'void node::DumpBacktrace(std::FILE*)':
../src/backtrace_posix.cc:20:47: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
const bool have_info = dladdr(frame, &info);
^
In file included from ../src/backtrace_posix.cc:4:0:
/usr/include/dlfcn.h:115:12: error: initializing argument 1 of 'int dladdr(void*, Dl_info*)' [-fpermissive]
extern int dladdr(void *, Dl_info *);
^
node.target.mk:186: recipe for target '/home/iojs/build/workspace/node-test-commit-smartos/nodes/smartos14-32/out/Release/obj.target/node/src/backtrace_posix.o' failed
|
Sorry, something went wrong.
|
God, smartos is like a time machine back to the '90s. Okay, loosened the const-ness. CI: https://ci.nodejs.org/job/node-test-pull-request/2638/ |
Sorry, something went wrong.
|
Looks like something went wrong. Again: https://ci.nodejs.org/job/node-test-pull-request/2639/ |
Sorry, something went wrong.
|
Finally, green except for flaky parallel/test-debug-port-cluster on freebsd. |
Sorry, something went wrong.
|
Works on my machine. This might be a silly question, but does the CI actually exercise this at all? |
Sorry, something went wrong.
|
Not intentionally, I don't think. I thought about adding a test but it would be rather anti-social when core dumps are enabled. |
Sorry, something went wrong.
|
@bnoordhuis I added a minimal test in cjihrig@3ce55fa. The abort tests aren't run anywhere (that I know of, but it would be nice to have at least something that can test it. Thoughts? |
Sorry, something went wrong.
|
@cjihrig Thanks, added to the PR. Anyone wants to take one more quick look? |
Sorry, something went wrong.
|
I guess the test should be skipped on Windows? Other than that still LGTM. |
Sorry, something went wrong.
There was a problem hiding this comment.
Eh, the RE should probably start with ^\s* and end with $, otherwise the optional parts here are pointless
Sorry, something went wrong.
|
Updated the test, PTAL. CI: https://ci.nodejs.org/job/node-test-pull-request/2741/ |
Sorry, something went wrong.
|
LGTM if CI is green |
Sorry, something went wrong.
|
LGTM. Seems to be an issue with the CI though. |
Sorry, something went wrong.
Sorry, something went wrong.
`python tools/test.py abort` won't work without one. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
The --abort-on-uncaught-exception can terminate the process with either a SIGABRT or a SIGILL signal but the test only expected SIGABRT. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
There is no real need and it causes endless grief on Windows with some of the upcoming changes. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Print a C backtrace on fatal errors to make it easier to debug issues. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit adds a test that validates backtraces which are printed on fatal errors. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Don't inline calls to node::DumpBacktrace() and fflush(), it makes the generated code bigger. A secondary benefit of moving it to a function is that it gives you something to put a breakpoint on. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Print a C backtrace on fatal errors to make it easier to debug issues. PR-URL: #6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
|
@bnoordhuis should this be backported? |
Sorry, something went wrong.
|
Ideally, yes. |
Sorry, something went wrong.
|
due to the AIX + compiler failures I'm going to hold off on this change for the v4.5.0 release @bnoordhuis would you be willing to backport this PR along with #7508, #7544, and any other potential commits that need to land with this? |
Sorry, something went wrong.
|
ping @bnoordhuis sorry about the other message. Would you be willing to backport a working version of this as mentioned above |
Sorry, something went wrong.
There is no real need and it causes endless grief on Windows with some of the upcoming changes. PR-URL: nodejs#6734 Backport-PR-URL: nodejs#16550 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
| Back | FazBrowse Home | New Git URL |
Print a C backtrace on fatal errors to make it easier to debug issues
like #6727.
CI: https://ci.nodejs.org/job/node-test-pull-request/2629/