I have a corefile I'm looking at and wanted to do some processing of output and then feed that back into mdb, but I'm getting this odd error:
> ::cat headt | ::eval .-40=K | ::print vmem_seg_t mdb: syntax error on line 2 of (pipeline) near "\n" Now, if I remove one line from the file headt (from 32 to 31 lines) everything works fine. If I don't pipe my output to ::print vmem_seg_t everything works fine as well. So maybe it's really eval that has the problem but still this is limiting my debugging of this corefile. I turned on vmem debugging so that I could track stack backtraces to try and figure out who was consuming all of the memory in the kmem_oversize_arena and thus I'd like to sort all of the allocated vmem_seg's by timestamp as follows: > *kmem_oversize_arena::walk vmem_alloc | ::print -ad vmem_seg_t vs_timestamp ! > sort -tt -k4n,4n | cut -d' ' -f1 > t.sorted > ::cat t.sorted | ::eval .-40=K | ::vmem_seg -v ! cat > vmem_sorted All of the individual steps seem like they should get me what I need, but I'm stumped as to either what I'm doing wrong or what I'm missing. Any help would be appreciated. Thanks, Mike This message posted from opensolaris.org