IBM Support

IZ73507: DEADLOCK BETWEEN DUP2 AND POLLSET_CTL THREAD. APPLIES TO AIX 5300-11

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Two threads of a multi threaded application my deadlock
    with one thread in dup2() and the other in pollset_ctl().
    The stack traces of the two threads will be
    [002F7408]slock+0006A4 (0000000000009034,
      80000000000090B2 [??])
    [00009558].simple_lock+000058 ()
    [0046EE58]pcache_list_lock+000028 ()
    [0046FAB0]pollcache_close+00003C (??)
    [003CD144]closefd+000144 (??, ??)
    [003CD40C]closex+000288 (??, ??)
    [004F7868]kfcntl+000C20 (??, ??, ??)
    [00003810].svc_instr+000110 ()
    and
    [00054140]e_block_thread+0004E0 ()
    [00054830]e_sleep_thread+00005C (??, ??, ??)
    [00413478]_getf_threaded+000108 (??, ??, ??)
    [0046F634]pcache_poll_pccb+000058 (??, ??, ??)
    [0046F4B4]pcache_activate_pccb+000044 (??, ??, ??)
    [0046FE48]pollcache_add+000104 (??, ??, ??)
    [00471624]pollset_ctl+0001F4 (??, ??, ??)
    [00003810].svc_instr+000110 ()
    

Local fix

Problem summary

  • Applicaiton or system hang with folowing stack trace
    00054140 e_block_thread+0004E0 ()
    e_sleep_thread+00005C (??, ??, ??)
    _getf_threaded+000108 (??, ??, ??)
    pcache_poll_pccb+000058 (??, ??, ??)
    pcache_activate_pccb+000044 (??, ??, ??)
    pollcache_add+000104 (??, ??, ??)
    pollset_ctl+0001F4 (??, ??, ??)
    .svc_instr+000110 ()
    And other thread possibly doing closefd()
    

Problem conclusion

  • Make pollset_ctl threads to check on fd status before doing
    any pollset_ctl operations
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ73507

  • Reported component name

    AIX 5.3

  • Reported component ID

    5765G0300

  • Reported release

    530

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2010-03-26

  • Closed date

    2010-04-28

  • Last modified date

    2013-03-27

Fix information

  • Fixed component name

    AIX 5.3

  • Fixed component ID

    5765G0300

Applicable component levels

  • R530 PSY U839407

       UP10/09/20 I 1000

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11P","label":"APARs - AIX 5.3 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"530","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
27 March 2013