*Synopsis*: ksh93+libumem+time/ptime is broken in non-C locales

This CR has had a change of priority to or from a high value.

CR 6805584 changed on Sep 21 2009 by <User 1-5Q-4162>

=== Field ============ === New Value ============= === Old Value =============

Priority               2-High                      3-Medium                   
====================== =========================== ===========================

     
*Change Request ID*: 6805584

*Synopsis*: ksh93+libumem+time/ptime is broken in non-C locales

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 3-Accepted
  Substatus: 
  Priority: 2-High
  Introduced In Release: 
  Introduced In Build: 
  Responsible Engineer: 
  Keywords: 

=== *Description* ============================================================
sigh.  i've discovered more ksh93 brokeness.
---8<---
<email address omitted>$ uname -a
SunOS jurassic-x4600 5.11 snv_108 i86pc i386 i86pc
<email address omitted>$ LC_ALL=C /bin/time /bin/sleep 1

real        1.0
user        0.0
sys         0.0
<email address omitted>$ LC_ALL=en_US.ISO8859-1 /bin/time /bin/sleep 1 
time: command terminated abnormally.

real        1.7
user        0.0
sys         0.0
<email address omitted>$ pstack core
core 'core' of 265938:  /usr/bin/ksh93 /bin/sleep 1
 fffffd7fff3e45aa _lwp_kill () + a
 fffffd7fff3c4d18 scribble () + c8
 fffffd7fff3c5115 free () + 2d
 fffffd7fff3c461d get_lcinterface () + 265
 fffffd7fff3ce5f2 _ld_libc () + 2a
 fffffd7fff2d8c6a informrtld () + 4a
 fffffd7fff2d8283 setlocale () + 8eb
 fffffd7ffef4f501 single () + e1
 fffffd7ffef503b8 _ast_setlocale () + 590
 fffffd7ffef85553 init () + 93
 fffffd7ffef85714 match () + b4
 fffffd7ffef858a7 _ast_translate () + 12f
 fffffd7ffef5c9f0 errorx () + 88
 fffffd7fff13648b _sh_translate () + 43
 fffffd7fff0ddcc3 b_common () + 293
 fffffd7fff0dcf55 b_alias () + 1dd
 fffffd7fff13ea23 sh_exec () + 2deb
 fffffd7fff13ca85 sh_exec () + e4d
 fffffd7fff13d82e sh_exec () + 1bf6
 fffffd7fff13cc70 sh_exec () + 1038
 fffffd7fff116e86 exfile () + 786
 fffffd7fff116676 sh_main () + 7fe
 0000000000400e72 main () + 52
 0000000000400ccc ???????? ()
---8<---

*** (#1 of 3): 2009-02-13 21:09:19 GMT+00:00 <User 1-5Q-4162>

reproducing this problem requires running with libumem.
you can do this by setting the following environment variables:
---8<---
LD_PRELOAD=libumem.so
UMEM_DEBUG='audit=50,guards'
UMEM_LOGGING=transaction,fail
---8<---

*** (#2 of 3): 2009-02-13 23:18:14 GMT+00:00 <User 1-5Q-4162>

this problem also affects other commands which are ksh93 scripts.
---8<---
<email address omitted>$ LC_ALL=C /usr/bin/type type
type is an alias for 'whence -v'
assertion failed: *membgn != patterns[pattern], file: ../common/malloc.c, line: 
93
zsh: IOT instruction (core dumped)  LC_ALL=en_US.ISO8859-1 /usr/bin/type type
----8<---

*** (#3 of 3): 2009-02-18 20:03:07 GMT+00:00 <User 1-5Q-4162>


=== *Public Comments* ========================================================

=== *Workaround* =============================================================

=== *Additional Details* =====================================================
        Targeted Release: 
        Commit To Fix In Build: 
        Fixed In Build: 
        Integrated In Build: 
        Verified In Build: 
  See Also: 
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: 
        Hook4: 
        Hook5: 
        Hook6: 
  Program Management: 
  Root Cause: 
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2009-02-13 21:09:18 GMT+00:00
        Submitted By: <User 1-5Q-4162>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2009-08-31 09:32:29 GMT+00:00 <User 1-1SURPB>


=== *Service Request* ========================================================
        Impact: Significant
        Functionality: Secondary
        Severity: 3
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: 
        Operating System: snv_108
        Hardware: generic
        Submitted Date: 2009-02-13 21:09:19 GMT+00:00


=== *Multiple Release (MR) Cluster* - 0 ======================================

Reply via email to