From 255ca53cb863784f137aca02aa15c67d8dce73de Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Sat, 16 May 2015 11:52:32 -0700 Subject: [PATCH] 5816 mdb '::status' truncates assertion messages Reviewed by: Sebastien Roy Reviewed by: Matthew Ahrens Reviewed by: Gordon Ross Reviewed by: Rich Lowe Approved by: Dan McDonald --- usr/src/cmd/mdb/common/mdb/mdb_proc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.11.4.GIT