-
-
Save nfitch/cd3e77be6d1851b6780d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nate@ubuntu:~$ node --version | |
v0.10.25 | |
nate@ubuntu:~$ uname -a | |
Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
nate@ubuntu:~$ cat die.js | |
var obj = { | |
myproperty: "Hello World", | |
count: 0, | |
}; | |
function increment() { | |
obj.count++; | |
if (obj.count === 1000) | |
throw new Error("sad trombone"); | |
setImmediate(increment); | |
} | |
setImmediate(increment); | |
nate@ubuntu:~$ ls | |
die.js node-test projects tmp | |
nate@ubuntu:~$ nvm use v0.10.36 | |
nate@ubuntu:~$ node --version | |
v0.10.36 | |
nate@ubuntu:~$ ulimit -c unlimited | |
nate@ubuntu:~$ node --abort-on-uncaught-exception die.js | |
Uncaught Error: sad trombone | |
FROM | |
Object.increment [as _onImmediate] (/home/nate/die.js:10:5) | |
processImmediate [as _immediateCallback] (timers.js:354:15) | |
Trace/breakpoint trap (core dumped) | |
nate@ubuntu:~$ ls | |
core die.js node-test projects tmp | |
nate@ubuntu:~$ md5sum core | |
8422b8181e103e0439fe16645b26e99a core | |
CSEAL-M101196:~ natefitch$ scp ubu:/home/nate/.nvm/v0.10.36/bin/node . | |
node | |
CSEAL-M101196:~ natefitch$ scp ubu:~/core . | |
core 100% 12MB 11.9MB/s 00:00 | |
CSEAL-M101196:~ natefitch$ scp node dev:/zones/3c021e8c-6a38-412c-b48c-d535cc6eaa19/root/root/. | |
Password: | |
node 100% 11MB 10.7MB/s 00:01 | |
CSEAL-M101196:~ natefitch$ scp core dev:/zones/3c021e8c-6a38-412c-b48c-d535cc6eaa19/root/root/. | |
Password: | |
core 100% 12MB 11.9MB/s 00:00 | |
[root@08-00-27-9a-8b-92 ~]# uname -a | |
SunOS 08-00-27-9a-8b-92 5.11 joyent_20150123T200224Z i86pc i386 i86pc | |
[root@08-00-27-9a-8b-92 ~]# imgadm get $(vmadm get 3c021e8c-6a38-412c-b48c-d535cc6eaa19 | json image_uuid) | json manifest.uuid manifest.name manifest.version | |
62f148f8-6e84-11e4-82c5-efca60348b9f | |
base64 | |
14.3.0 | |
[root@08-00-27-9a-8b-92 ~]# zlogin 3c021e8c-6a38-412c-b48c-d535cc6eaa19 | |
[Connected to zone '3c021e8c-6a38-412c-b48c-d535cc6eaa19' pts/8] | |
Last login: Fri Feb 13 19:31:53 on pts/6 | |
__ . . | |
_| |_ | .-. . . .-. :--. |- | |
|_ _| ;| || |(.-' | | | | |
|__| `--' `-' `;-| `-' ' ' `-' | |
/ ; Instance (base64 14.3.0) | |
`-' http://wiki.joyent.com/jpc2/Base+Instance | |
[root@dev-1 ~]# uname -a | |
SunOS dev-1 5.11 joyent_20150123T200224Z i86pc i386 i86pc Solaris | |
[root@dev-1 ~]# md5sum core | |
8422b8181e103e0439fe16645b26e99a core | |
[root@dev-1 ~]# curl http://us-east.manta.joyent.com/NodeCore/public/linux-cores/mdb-linux.sh >mdb-linux.sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 100 100 100 0 0 384 0 --:--:-- --:--:-- --:--:-- 460 | |
[root@dev-1 ~]# curl http://us-east.manta.joyent.com/NodeCore/public/linux-cores/libproc64.so >libproc64.so | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 285k 100 285k 0 0 332k 0 --:--:-- --:--:-- --:--:-- 332k | |
echo "::load v8" > ~/.mdbrc | |
[root@dev-1 ~]# chmod +x mdb-linux.sh | |
[root@dev-1 ~]# /usr/bin/mdb ./node ./core | |
mdb: warning: librtld_db failed to initialize; shared library information will not be available | |
V8 version: 3.14.5.9 | |
Autoconfigured V8 support from target | |
C++ symbol demangling enabled | |
> ::jsstack | |
7fff91619ba0 v8::internal::OS::Abort+0xe | |
7fff91619c50 v8::internal::Isolate::DoThrow+0x3ce | |
7fff91619c60 v8::internal::Isolate::Throw+9 | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment