Project

General

Profile

Actions

Bug #5978

closed

5816 causes mdb's ::status message to be further truncated

Added by Robert Mustacchi over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
mdb - modular debugger
Start date:
2015-06-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

5816 introduced a regression where the status is always truncated. Consider the following core:

{code}

::status

debugging core file of varpd (32-bit) from 00-0c-29-ca-c7-23
file: /usr/lib/varpd/varpd
initial argv: /usr/lib/varpd/varpd
threading model: native threads
status: process terminated by SIGABRT (Abort), pid=102079 uid=0 code=-1
panic message: ***

panicstr/K

libc.so.1`panicstr:
libc.so.1`panicstr: fdf19db0

fdf19db0/s

0xfdf19db0: *** libc mutex system failure: mutex_enter: bad mutex type {code}

Notice that we only see the first three characters of the panic string. This is because when 5816 changed panicbuf to be a dynamic allocation it did not update the call to Pread_string() which uses sizeof (panicbuf). Of course, that's now just 4, becuase panicbuf is no longer an array, but a pointer.

Actions

Also available in: Atom PDF