[OmniOS-discuss] LX: real ksh93 broken

Dan McDonald danmcd at omniti.com
Tue May 9 15:15:25 UTC 2017


> On May 9, 2017, at 11:05 AM, Dan McDonald <danmcd at omniti.com> wrote:
> 
> And I've no good way to know what it's doing, as the illumos-native tools aren't giving me enough data.

ksh93 appears to be looping in something:

mdb: target stopped at:
0x42adf0:       movq   +0x350129(%rip),%rax     <0x77af20>
> ::step
mdb: target stopped at:
0x42adf7:       testq  %rax,%rax
> ::step
mdb: target stopped at:
0x42adfa:       jne    +0xc     <0x42ae08>
> ::step
mdb: target stopped at:
0x42adfc:       jmp    +0x28    <0x42ae26>
> ::step
mdb: target stopped at:
0x42ae26:       addl   $0x1,%r14d
> ::step
mdb: target stopped at:
0x42ae2a:       cmpl   0x10(%rsi),%r14d
> ::step
mdb: target stopped at:
0x42ae2e:       jl     -0x40    <0x42adf0>
> ::step
mdb: target stopped at:
0x42adf0:       movq   +0x350129(%rip),%rax     <0x77af20>
> <rsi+0x10
Usage: step [ over | out ] [SIG]
> <rsi+0x10=P
                0x7fffff0470f0  
> 0x7fffff0470f0/D
0x7fffff0470f0: 2147483647      
> 0x7fffff0470f0/X
0x7fffff0470f0: 7fffffff        
> <r14d/P
mdb: failed to read data from target: no mapping for address
0x761133e5:     
> <r14d=P
                0x761133e5      
> 

Something that never seems to exit.  Hmmm... I'm guessing r14d will never be less than 0x7ffffff with a signed compare (cmpl is signed,right?).

NO idea how this happened.  :-/

Dan



More information about the OmniOS-discuss mailing list