Project

General

Profile

Actions

Bug #14478

open

no pid provider return probe for ipadm_errno2status()

Added by Joshua M. Clulow 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
DTrace
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It would seem that the pid provider is not correctly detecting the return from ipadm_errno2status():

# dtrace -qln 'pid$target::ipadm_errno2status:'  -c 'ipadm'
   ID   PROVIDER            MODULE                          FUNCTION NAME
69409     pid608     libipadm.so.1                ipadm_errno2status entry

It's possible it's being tripped up by the way the return looks in the program text:

# dis -F ipadm_errno2status /lib/libipadm.so.1
disassembly for /lib/libipadm.so.1

ipadm_errno2status()
    ipadm_errno2status:      55                 pushl  %ebp
    ipadm_errno2status+0x1:  89 e5              movl   %esp,%ebp
    ipadm_errno2status+0x3:  e8 a4 1a 00 00     call   +0x1aa4  <0x7acd>
    ipadm_errno2status+0x8:  05 d7 1f 02 00     addl   $0x21fd7,%eax
    ipadm_errno2status+0xd:  8b 55 08           movl   0x8(%ebp),%edx
    ipadm_errno2status+0x10: 81 fa 84 00 00 00  cmpl   $0x84,%edx
    ipadm_errno2status+0x16: 77 79              ja     +0x79    <ipadm_errno2status+0x91>
    ipadm_errno2status+0x18: 03 84 90 f0 ea fe  addl   0xfffeeaf0(%eax,%edx,4),%eax
                             ff
    ipadm_errno2status+0x1f: ff e0              jmp    *%eax
    ipadm_errno2status+0x21: b8 0d 00 00 00     movl   $0xd,%eax
    ipadm_errno2status+0x26: eb 75              jmp    +0x75    <ipadm_errno2status+0x9d>
    ipadm_errno2status+0x28: b8 05 00 00 00     movl   $0x5,%eax
    ipadm_errno2status+0x2d: eb 6e              jmp    +0x6e    <ipadm_errno2status+0x9d>
    ipadm_errno2status+0x2f: b8 04 00 00 00     movl   $0x4,%eax
... snip ...
    ipadm_errno2status+0x8f: eb 0c              jmp    +0xc     <ipadm_errno2status+0x9d>
    ipadm_errno2status+0x91: b8 01 00 00 00     movl   $0x1,%eax
    ipadm_errno2status+0x96: eb 05              jmp    +0x5     <ipadm_errno2status+0x9d>
    ipadm_errno2status+0x98: b8 00 00 00 00     movl   $0x0,%eax
    ipadm_errno2status+0x9d: 5d                 popl   %ebp
    ipadm_errno2status+0x9e: c3                 ret

Related issues

Related to illumos gate - Bug #14477: ipadm cannot remove an address for a missing interfaceNew

Actions
Actions #1

Updated by Joshua M. Clulow 5 months ago

  • Related to Bug #14477: ipadm cannot remove an address for a missing interface added
Actions

Also available in: Atom PDF