TritonDataCenter / manta-thoth

Thoth is a Manta-based system for core and crash dump management
16 stars 7 forks source link

thoth always seems to load 32-bit mdb_v8 #128

Closed davepacheco closed 6 years ago

davepacheco commented 9 years ago

On latest bits, I tried to "thoth debug" a 64-bit core dump, but it looks like mdb tried to load the wrong mdb_v8:

$ thoth debug 5595bcb3e12e5a39
thoth: using database at 165.225.169.30:28015 (configured from Manta)
thoth: debugging 5595bcb3e12e5a394ec1c460ec787986
 * created interactive job -- f9ff4021-0097-46e3-f889-8ee321a16480
 * waiting for session... | established
thoth: dump info is in $THOTH_INFO
mdb: failed to initialize //lib/64/libc_db.so.1: libthread_db call failed unexpectedly
mdb: warning: debugger will only be able to examine raw LWPs
mdb: ld.so.1: mdb: fatal: /root/mdb/v8.so: wrong ELF class: ELFCLASS32
mdb: ld.so.1: mdb: fatal: /usr/lib/mdb/proc/libumem.so: wrong ELF class: ELFCLASS32
mdb: ld.so.1: mdb: fatal: /usr/lib/mdb/proc/libc.so: wrong ELF class: ELFCLASS32
mdb: ld.so.1: mdb: fatal: /usr/lib/mdb/proc/ld.so: wrong ELF class: ELFCLASS32
> ::status
debugging core file of node (64-bit) from a6a9121c-5ab3-4a40-92a1-0c231c344694
file: /opt/local/bin/node
initial argv: 
node main.js -f etc/config.json -r /electric-moray/chash/leveldb-2024 -p 2024
threading model: raw lwps
status: process terminated by SIGABRT (Abort), pid=51225 uid=0 code=-1
richardkiene commented 6 years ago

Fixed in https://github.com/joyent/manta-thoth/commit/7e38f387215f5940f10b4e1fbf6a1c6937249d49