diff options
author | Prakash Surya <prakash.surya@delphix.com> | 2015-05-16 11:52:32 -0700 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2015-05-16 11:53:22 -0700 |
commit | 255ca53cb863784f137aca02aa15c67d8dce73de (patch) | |
tree | b1e25f91a6396c75a271e21ff96c23345dfe6285 /usr/src | |
parent | 589efa9501f3347f21e60905a96ca39427169e10 (diff) | |
download | illumos-joyent-255ca53cb863784f137aca02aa15c67d8dce73de.tar.gz |
5816 mdb '::status' truncates assertion messages
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/mdb/common/mdb/mdb_proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/mdb/common/mdb/mdb_proc.c b/usr/src/cmd/mdb/common/mdb/mdb_proc.c index 2a3e491313..50f0a7bd53 100644 --- a/usr/src/cmd/mdb/common/mdb/mdb_proc.c +++ b/usr/src/cmd/mdb/common/mdb/mdb_proc.c @@ -25,6 +25,7 @@ */ /* * Copyright 2015 Joyent, Inc. + * Copyright (c) 2014 by Delphix. All rights reserved. */ /* @@ -1566,7 +1567,7 @@ pt_status_dcmd(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) int state; GElf_Sym sym; uintptr_t panicstr; - char panicbuf[128]; + char *panicbuf = mdb_alloc(1024, UM_SLEEP); const siginfo_t *sip = &(psp->pr_lwp.pr_info); char execname[MAXPATHLEN], buf[BUFSIZ]; @@ -1738,6 +1739,7 @@ pt_status_dcmd(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) default: mdb_printf("unknown libproc Pstate: %d\n", Pstate(P)); } + mdb_free(panicbuf, 1024); } else if (pt->p_file != NULL) { const GElf_Ehdr *ehp = &pt->p_file->gf_ehdr; |