The mdb ::setenv dcmd cores if no target object file is specified on the command line:
# mdb
> ::setenv foo=bar
Segmentation Fault - core dumped
# pstack /var/core/core.mdb.11943.1120816044
core '/var/core/core.mdb.11943.1120816044' of 11943: mdb
fffffd7fff2d0090 Pstate ()
00000000004267c2 dcmd_invoke () + 5c
0000000000426977 mdb_call_idcmd () + 109
000000000042633d mdb_call () + 340
0000000000458265 yyparse () + 48e
0000000000425dba mdb_run () + 264
000000000043dd96 main () + 12a2
000000000041f3dc _start () + 6c
xxxxx@xxxxx.com 2005-07-08 09:58:40 GMT
|