Actions
Bug #4750
closedmdb ::list command parses arguments incorrectly
Start date:
2014-04-12
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
# mdb -k Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc apix scsi_vhci zfs sata sd ip hook neti sockfs arp usba stmf stmf_sbd fctl lofs random idm sppp nfs ipc ptm cpc fcip ufs logindmux ] > cm_hd::list struct cm_xprt Segmentation Fault (core dumped) # mdb core mdb: debugger failed with error: fatal signal received Loading modules: [ libumem.so.1 libc.so.1 libproc.so.1 ld.so.1 ] > ::status debugging core file of mdb (64-bit) from telcontar file: /usr/bin/amd64/mdb initial argv: mdb -k threading model: native threads status: process terminated by SIGSEGV (Segmentation Fault), addr=fffffd7fff206d9a > ::stack libc.so.1`strcmp+0x1a() member_iter_cb+0x54(11f2957, 80be, 0, fffffd7fffdfe5d0) libctf.so.1`ctf_member_iter+0x103(11d4290, 80d4, 434f50, fffffd7fffdfe5d0) mdb_ctf_member_iter+0x6a(11d4290, 80d4, 4351e0) mdb_ctf_member_info+0x3e(11d4290, 80d4, 16ba6fd000000030, fffffd7fffdfe6f8) mdb_ctf_offsetof+0x28(11d4290, 80d4, 16ba6fd000000030) mdb_ctf_offsetof_by_name+0x47(fffffd7fffdfe750, 16ba6fd000000030) cmd_list+0xc2(fffffffffc0887c0, 1, 2, c0e790) dcmd_invoke+0x7c(4dae40, fffffffffc0887c0, 1, 2, c0e790, 0) mdb_call_idcmd+0x112(4dae40, fffffffffc0887c0, 1, 1, 51fe98, 51feb0) mdb_call+0x449(fffffffffc0887c0, 1, 1) yyparse+0xd7c() mdb_run+0x2cd() main+0xc9d(2, fffffd7fffdffda8, fffffd7fffdffdc0) _start+0x6c() >
Updated by Cody Mello almost 7 years ago
For anyone else affected by this, I've fixed this here.
Updated by Robert Mustacchi almost 7 years ago
- Assignee set to Cody Mello
- % Done changed from 0 to 100
- Tags deleted (
needs-triage)
Updated by Robert Mustacchi almost 7 years ago
- Subject changed from mdb: Segfault in ::list dcmd to mdb ::list command parses arguments incorrectly
Updated by Electric Monk almost 7 years ago
- Status changed from New to Closed
git commit b3eeeb30c3479f68ec3696b60e4bd4e4f6059bd5
commit b3eeeb30c3479f68ec3696b60e4bd4e4f6059bd5 Author: Cody Peter Mello <cody.mello@joyent.com> Date: 2015-08-31T18:04:53.000Z 4750 mdb ::list command parses arguments incorrectly Reviewed by: Alex Wilson <alex.wilson@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Approved by: Dan McDonald <danmcd@omniti.com>
Actions