IBM Support

IT28360: SEGV IN IFX_TH_MUTEX_LOCK WHEN COMPILING WITH "-THREAD"

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • sing "-thread" in a simple ESQL/C code fails with a segv in:
    
    
                    $ esql t.ec -thread
                    $ gdb ./a.out
                    GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
                    ...
                    Program received signal SIGSEGV, Segmentation
    fault.
                    __GI___pthread_mutex_lock (mutex=0x0) at
    ../nptl/pthread_mutex_lock.c:67
                    67      ../nptl/pthread_mutex_lock.c: No such
    file or directory.
                    (gdb) where
                    #0  __GI___pthread_mutex_lock (mutex=0x0) at
    ../nptl/pthread_mutex_lock.c:67
                    #1  0x00007ffff74c38c8 in ifx_th_mutex_lock ()
    from /data/informix/IBM/12.10/lib/esql/libthos.so
                    #2  0x00007ffff74c336c in ifxOS_th_mutex_lock ()
    from /data/informix/IBM/12.10/lib/esql/libthos.so
                    #3  0x00007ffff74c3464 in ifxOS_thread_mutexLock
    () from /data/informix/IBM/12.10/lib/esql/libthos.so
                    #4  0x00007ffff7b9209b in asf_init () from
    /data/informix/IBM/12.10/lib/esql/libthsql.so
                    #5  0x00007ffff7b950ea in sqli_connect_open_tcb
    () from /data/informix/IBM/12.10/lib/esql/libthsql.so
                    #6  0x00007ffff7b9596e in sqli_connect_open ()
    from /data/informix/IBM/12.10/lib/esql/libthsql.so
                    #7  0x0000000000400940 in db_init ()
                    #8  0x00000000004009c4 in main ()
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of CSDK prior to 4.10.xC13.                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Segmentation Violation in ifx_th_mutext_lock when compiling  *
    * with "-thread" option.                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in CSDK 4.10.xC13.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT28360

  • Reported component name

    IBM CSDK

  • Reported component ID

    5724C2381

  • Reported release

    410

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-03-07

  • Closed date

    2019-09-24

  • Last modified date

    2019-09-24

  • 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

    IBM CSDK

  • Fixed component ID

    5724C2381

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVRDE","label":"Informix Client Software Development Kit"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
24 September 2019