Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
5 replies Latest Post - ‏2013-09-10T02:54:03Z by Vincent Jiang
carlosaa
carlosaa
2 Posts
ACCEPTED ANSWER

Pinned topic Why my app crashed at libclntsh.so which instrumented by quantity on Linux

‏2011-11-24T13:02:07Z |
1: Crash Info:
<112 ocs2 tscbp :/home/tscbp/ml/ddd>a.out
  • Quantify instrumented a.out (pid 1270 at Thu Nov 24 19:55:20 2011)
Quantify 7.0.0.0-010.C 080226 Linux (64-bit) (C) Copyright IBM Corporation. 1992, 2008 All Rights Reserved.
* For contact information type: "quantify -help"
now is Thu Nov 24 19:55:20 2011

Quantify 7.0.0.0-010.C 080226 Linux (64-bit) (C) Copyright IBM Corporation. 1992, 2008 All Rights Reserved.
Instrumenting: libclntsh.so.11.1
Quantify engine: While processing file /opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1:
Error: CreateNewInfo: Apparent overlapping of instructions detected at 0x6ac43c (section 10), next offset by 3
Please visit ibm.com/software/awdtools/purifyplus/support/ and search
the support database using keywords from the error message.
If you are unable to resolve this issue, please submit
a problem report through Electronic Service Request at
www.ibm.com/software/esr using your IBM Customer Number.
If you are evaluating this software,
please contact IBM Rational Support in your region.
You can find the contact information at
ibm.com/software/rational/support/contact.html
Please include the product name and version
(Quantify 7.0.0.0-010.C 080226 Linux (64-bit)),
plus your compiler name and version, operating system version,
this and any preceding error messages and
a copy of any object or data files involved.
Thank you.

Quantify engine: Error: CreateNewInfo: Apparent overlapping of instructions detected at 0x6b96e9 (section 10), next offset by 3

Quantify engine: Error: CreateNewInfo: Apparent overlapping of instructions detected at 0x6b96ab (section 10), next offset by 5

Quantify engine: Error: CreateNewInfo: Apparent overlapping of instructions detected at 0x6aa788 (section 10), next offset by 3

Quantify engine: Warning: Live code found before 0x6b97ef not marked for counting (0x6b97ea).
libnnz11.so Done.

  • Quantify instrumented a.out (pid 1270) ****
Quantify (par): Bad parameters : dlopen("/opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libociei.so", 1) file (arg #1) not found.
  • Quantify instrumented a.out (pid 1270) ****
Quantify (par): Bad parameters : dlopen("/opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libociicus.so", 1) file (arg #1) not found.

Quantify 7.0.0.0-010.C 080226 Linux (64-bit) (C) Copyright IBM Corporation. 1992, 2008 All Rights Reserved.
Instrumenting: libnque11.so Done.
Quantify: User program a.out (pid 1270)
received signal 6, (SIGABRT) at address 0x42d4f9,
and had no user signal handler
for it.

Quantify: Sending data for 2153 of 45701 functions
from a.out (pid 1270)..........done.

Quantify: Resource Statistics for a.out (pid 1270)
* cycles secs
* Total counted time: 51615543 0.024 (100.0%)
* Time in your code: 7421239 0.003 ( 14.4%)
* Dynamic library loading: 44194304 0.021 ( 85.6%)
* Note: No system call times were recorded during this period.
*
* Time Quantify excluded from the dataset:
* Time in system calls: 63682528 0.030
*
* Note: Data collected assuming a machine type of Dual-Core-Xeon with clock rate of 2.128 GHz.
* Note: These times exclude Quantify overhead and possible memory effects.
*
* Elapsed data collection time: 68.768 secs
*
* Note: This measurement includes Quantify overhead.
*
To view your saved Quantify data, type:
quantify -view /opt/tscbp/ml/ddd/a.out.1270.0.qv
Abort
<109 ocs2 tscbp :/home/tscbp/ml/ddd>gdb a.out

(gdb) r
Starting program: /opt/tscbp/ml/ddd/a.out
Thread debugging using libthread_db enabled
New Thread 47736079827664 (LWP 1022)
  • Quantify instrumented /opt/tscbp/ml/ddd/a.out (pid 1022 at Thu Nov 24 19:52:28 2011)
Quantify 7.0.0.0-010.C 080226 Linux (64-bit) (C) Copyright IBM Corporation. 1992, 2008 All Rights Reserved.
* For contact information type: "quantify -help"
now is Thu Nov 24 19:52:28 2011
  • Quantify instrumented /opt/tscbp/ml/ddd/a.out (pid 1022) ****
Quantify (par): Bad parameters : dlopen("/opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libociei.so", 1) file (arg #1) not found.
  • Quantify instrumented /opt/tscbp/ml/ddd/a.out (pid 1022) ****
Quantify (par): Bad parameters : dlopen("/opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libociicus.so", 1) file (arg #1) not found.
Program received signal SIGSEGV, Segmentation fault.
Switching to Thread 47736079827664 (LWP 1022)
0x00002b6a6ca3f95b in naequad ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
(gdb) where
#0 0x00002b6a6ca3f95b in naequad ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#1 0x00002b6a6ca4b6ee in naeeinit ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#2 0x00002b6a6ca578f4 in nainit ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#3 0x00002b6a6c9b9aa8 in nsnainit ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#4 0x00002b6a6c953bbe in nsopen ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#5 0x00002b6a6c8d866e in nscall1 ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#6 0x00002b6a6c8d3235 in nscall ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#7 0x00002b6a6ca17de6 in niotns ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#8 0x00002b6a6cb622f0 in nigcall ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#9 0x00002b6a6ca2fdb2 in osncon ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#10 0x00002b6a6c75beea in kpuadef ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#11 0x00002b6a6c723c23 in upiini ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#12 0x00002b6a6c70ebb7 in upiah0 ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#13 0x00002b6a6c75a231 in kpuatch ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#14 0x00002b6a6c72aa1e in OCIServerAttach ()
from /opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib/libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
#15 0x00002b6a6b5c21bf in IoraConnection::Connect (this=Could not find the frame base for "IoraConnection::Connect(SAString const&, SAString const&, SAString const&)".
) at oraClient.cpp:761
#16 0x00002b6a6b550d88 in SAConnection::Connect (this=Could not find the frame base for "SAConnection::Connect(SAString const&, SAString const&, SAString const&, SAClient_t)".
) at SQLAPI.cpp:4187
#17 0x00000000004314c1 in connectDB ()
#18 0x0000000000431ba0 in main ()
Informations:

1: Machine and OS
System name: Linux
Release: 2.6.16.60-0.21-smp
Version: #1 SMP Tue May 6 12:41:02 UTC 2008
Machine: x86_64

2: Purifyplus info
> purify --version
Version 7.0.0.0-010.C 080226 Linux

3: Oracle info
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
ORACLE_HOME = /opt/oracle/app/product/11g/db

4: env info
QUANTIFYOPTIONS=-record-child-process-data=yes -windows=no -api-handler-signals=SIGCONT,SIGSTOP -record-system-calls=no -exclude-libs=libclntsh.so.11.1
(-exclude-libs might not make effort)

5:cache dir info
/opt/purify/Rational/releases/quantify.i386_linux2.7.0.0.0-010.C/cache/opt/oracle/app/product/11g/db/lib

drwxrwxrwx 2 tscbp enip 368 2011-11-24 19:56 .
drwxrwxrwx 3 tscbp enip 72 2011-11-24 19:55 ..
-rw-rw-rw- 1 tscbp enip 85933840 2011-04-22 19:49 libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64
-rw-rw-rw- 1 tscbp enip 0 2011-11-24 19:56 libclntsh.so.11.1_pure_q62_102262146_261660-021-smp_64.warnings
-rw-rw-rw- 1 tscbp enip 11926984 2008-08-27 03:53 libnnz11.so_pure_q62_102262146_261660-021-smp_64
-rw-rw-rw- 1 tscbp enip 1075680 2008-08-27 10:48 libnque11.so_pure_q62_102262146_261660-021-smp_64
-rw-r--r-- 1 tscbp enip 0 2011-11-24 19:55 .pure.1024

6: additional info

the quantify shows that the "-selective", "-purify-exclude-must" was the Unrecognized options.
Updated on 2011-11-26T02:08:44Z at 2011-11-26T02:08:44Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2948 Posts
    ACCEPTED ANSWER

    Re: Why my app crashed at libclntsh.so which instrumented by quantity on Linux

    ‏2011-11-24T17:47:34Z  in response to carlosaa
    Hi Carlosaa,

    You are using a Limited Availability iFix (a patch release) that dates back to
    about 2008. Since 2008, we've uncovered and fixed numerous problems related to
    the Oracle libraries. Your best bet would be to upgrade to the latest version
    of PurifyPlus for Linux and UNIX. The newest version is 7.0.1.0 iFix 002:

    https://www-304.ibm.com/support/entdocview.wss?uid=swg24028089

    NOTE: You need to have a current support contract in order to download this iFix.

    Regards,
    Don
    • carlosaa
      carlosaa
      2 Posts
      ACCEPTED ANSWER

      Re: Why my app crashed at libclntsh.so which instrumented by quantity on Linux

      ‏2011-11-25T02:16:08Z  in response to SystemAdmin
      Hi Don,

      Thanks for your apply! I'm not sure the patch would be found in my company. Could you tell me how to EXCLUDE the oracle libs through configrating QUANTIFYOPTIONS environment or any other method when using PurifyPlus.7.0.0.0-010.C.Linux.tar.gz ? I have try to use "-exclude-libs" but not works.

      Carlosaa
      • SystemAdmin
        SystemAdmin
        2948 Posts
        ACCEPTED ANSWER

        Re: Why my app crashed at libclntsh.so which instrumented by quantity on Linux

        ‏2011-11-26T02:08:44Z  in response to carlosaa
        Hi Carlosaa,

        >
        > Could you tell me how to EXCLUDE the oracle libs through configrating QUANTIFYOPTIONS
        > environment or any other method when using PurifyPlus.7.0.0.0-010.C.Linux.tar.gz ? I
        > have try to use "-exclude-libs" but not works.
        >

        Based on my understanding of how the -exclude-libs option works on Linux, I don't think
        that will help at all in this case. I believe the libraries will still get instrumented,
        and the Purify engine will again fail to instrument the Oracle libraries. So really,
        your best option is to try out the "limited functionality" trial copy of PurifyPlus to see
        if it successfully instruments the Oracle libs:

        http://www.ibm.com/developerworks/downloads/r/rpp/

        It that works successfully, then you'll need to upgrade to the newest release.
        Don
        • ldyavi8r
          ldyavi8r
          1 Post
          ACCEPTED ANSWER

          Re: Why my app crashed at libclntsh.so which instrumented by quantity on Linux

          ‏2013-09-09T17:47:38Z  in response to SystemAdmin

          I am running linux version 7.0.1.0-004 and I'm seeing a crash in this oracle library too.  

          Claire

          • Vincent Jiang
            Vincent Jiang
            9 Posts
            ACCEPTED ANSWER

            Re: Why my app crashed at libclntsh.so which instrumented by quantity on Linux

            ‏2013-09-10T02:54:03Z  in response to ldyavi8r

            Hi Claire,

            There are some compatibility issues with Oracle caused by libclntsh.so

            For PurifyPlus 7.0.1.0-004, it's known that :

            Fails:
            Oracle 11.2.0.2 US 32-bit

            Works :
            Oracle 11.2.0.3 BR 64-bit
            Oracle 11.2.0.3 US 32-bit

            So, if possible, try the "works" configuration.  You can also open a PMR with support to discuss further.