IBM Support

PM54068: WHEN PIPING ?CLEARTOOL LS -RECURSE -VIEW_ONLY? TO ?XARGS RM -RF?, THE CLEARTOOL COMMAND WILL SEGFAULT WITHIN FILEUTL_MAKE_ABS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When piping ?cleartool ls -recurse -view_only? to ?xargs rm
    -rf?, the cleartool command will segfault within
    fileutl_make_abs_pn
    
    
    ClearCase 7.0.1.8
    
    
    HP-UX 11.31 / IA64
    
    
    Problem Description:
    
    The following command does not produce a corefile:
       ?cleartool ls -recurse -view_only | wc?
    
    However, when changing to the following below, the ?cleartool ls
    -recurse -view_only?  command will segfault:
       ?cleartool ls -recurse -view_only | xargs rm -rf?
    
    
    ***   ***   ***
    Core was generated by `cleartool'.
    Program terminated with signal 11, Segmentation fault.
    SEGV_UNKNOWN - Unknown Error
    
    #0  0xd58c4a24 in fileutl_make_abs_pn+0xc8 () from libatriaks.sl
    
     (gdb) where
    #0  0xd58c4a24 in fileutl_make_abs_pn+0xc8 () from libatriaks.sl
    #1  0xdd23bb74 in ws_get_abs_pname+0x8c () from libatriaview.sl
    #2  0xdd23797c in ws_get_view_ext+0x4c () from libatriaview.sl
    #3  0xdd237d28 in ws_get_view+0x64 () from libatriaview.sl
    #4  0xdd2317cc in view_get_view_info_ws+0xa8 ()
       from libatriaview.sl
    #5  0xdd23169c in view_get_view_info+0x4c () from
    libatriaview.sl
    #6  0xde96b9e0 in cmd_ls_r+0x2e4 () from libatriacmd.sl
    #7  0xde96bf7c in cmd_ls_r+0x880 () from libatriacmd.sl
    #8  0xde96bf7c in cmd_ls_r+0x880 () from libatriacmd.sl
    #9  0xde96c5d0 in cmd_ls_subr+0x4a8 () from libatriacmd.sl
    #10 0xde96c084 in cmd_ls+0x88 () from libatriacmd.sl
    #11 0xdea16840 in cmdsyn_ls+0x2d4 () from libatriacmdsyn.sl
    #12 0xde9ff9d8 in cmdsyn_do_command+0xf8 () from
    libatriacmdsyn.sl
    #13 0xde9ffe64 in cmdsyn_execv_dispatch+0x78 ()
       from libatriacmdsyn.sl
    #14 0xc1c86ebc in tool_main+0x1e0 () from libatriatool.sl
    #15 0x4328 in main+0x3e0 ()
    ***   ***   ***
    
    
    Workaround:  None
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Resolves a situation when piping ?cleartool ls -recurse
    -view_only?  to 'xargs rm-rf'  leads to core dump
    

Problem conclusion

  • A fix is available in ClearCase versions 7.1.2.7 and 8.0.0.3
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM54068

  • Reported component name

    CLEARCASE WIN

  • Reported component ID

    5724G2900

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-12-11

  • Closed date

    2012-06-25

  • Last modified date

    2012-06-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    CLEARCASE WIN

  • Fixed component ID

    5724G2900

Applicable component levels

  • R710 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
25 June 2012