v8 source list - segmentation fault regression - lldb 4.0 on FreeBSD-11.0
Hi - Just taking this for a drive on FreeBSD 11.0-RELEASE Build went smoothly following a tweaked set of the linux instructions
* Clone this repo
# git clone https://github.com/nodejs/llnode.git && cd llnode
* Install llvm with lldb pieces
# pkg install llvm40
# rm -fr /usr/bin/lldb
# ln -s /usr/local/bin/lldb40 /usr/bin/lldb
* Initialize GYP
# git clone https://chromium.googlesource.com/external/gyp.git tools/gyp
* Configure
# ./gyp_llnode -Dlldb_dir=/usr/local/llvm40/
* Build
# gmake -C out/ -j9
Anyway when I follow this tutorial https://developer.ibm.com/node/2016/08/15/exploring-node-js-core-dumps-using-the-llnode-plugin-for-lldb/ (thanks @hhellyer) I get a segmentation fault (core dump) when I try the v8 source list command after selecting the frame.
Interestingly I down graded my llvm to 3.9 and everything worked as expected so the issue does seem to be introduced with 4.0.
# uname -a
FreeBSD 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017
[email protected]:/usr/obj/usr/src/sys/GENERIC amd64
# lldb -v
lldb version 4.0.0
The one that works is
# uname -a
FreeBSD 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017
[email protected]:/usr/obj/usr/src/sys/GENERIC amd64
# lldb -v
lldb version 3.9.1 ( revision )
I tried loading the core dump lldb lldb -c lldb-4.0.0.core but I got error: '/usr/bin/lldb' doesn't contain any 'host' platform architectures: x86_64, i386 and don't know how to get any further with diagnosing this but as it's a regression I thought I had better log something.