Pro*C 를 이용하여 프로그램을 만들었는데 컴파일 할 때에는 아무런 문제가 없습니다.
하지만 프로그램을 실행할 때
======= Backtrace: =========
/lib64/libc.so.6(+0x77e15)[0x7fefd7fcbe15]
/lib64/libc.so.6(+0x82ea2)[0x7fefd7fd6ea2]
/lib64/libc.so.6(realloc+0x184)[0x7fefd7fd7ed4]
/home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1(sqlrlc+0x77)[0x7fefd98a0df7]
/home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1(sqlbrl+0xeb)[0x7fefdc1fc1fb]
/home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1(sqlexp+0x425)[0x7fefdc1fc755]
/home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1(sqlcxt+0x241)[0x7fefdc1fb471]
a.out[0x4211fc]
a.out[0x404b81]
a.out[0x40c92a]
a.out[0x40d28b]
a.out[0x40f293]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7fefd7f74580]
a.out[0x402749]
======= Memory map: ========
00400000-0045b000 r-xp 00000000 fd:00 466964 /home/test/bin/a.out
0065a000-0065b000 r--p 0005a000 fd:00 466964 /home/test/bin/a.out
0065b000-00661000 rw-p 0005b000 fd:00 466964 /home/test/bin/a.out
00661000-006b5000 rw-p 00000000 00:00 0
00e58000-00f94000 rw-p 00000000 00:00 0 [heap]
7fefd0000000-7fefd0021000 rw-p 00000000 00:00 0
7fefd0021000-7fefd4000000 ---p 00000000 00:00 0
7fefd6391000-7fefd639d000 r-xp 00000000 fd:00 1893742 /home/oracle/app/product/12.2.0/dbhome_1/lib/libnque12.so
7fefd639d000-7fefd659d000 ---p 0000c000 fd:00 1893742 /home/oracle/app/product/12.2.0/dbhome_1/lib/libnque12.so
7fefd659d000-7fefd659e000 rw-p 0000c000 fd:00 1893742 /home/oracle/app/product/12.2.0/dbhome_1/lib/libnque12.so
7fefd659e000-7fefd65a8000 r-xp 00000000 fd:00 873532 /usr/lib64/libnuma.so.1.0.0
7fefd65a8000-7fefd67a7000 ---p 0000a000 fd:00 873532 /usr/lib64/libnuma.so.1.0.0
7fefd67a7000-7fefd67a8000 r--p 00009000 fd:00 873532 /usr/lib64/libnuma.so.1.0.0
7fefd67a8000-7fefd67a9000 rw-p 0000a000 fd:00 873532 /usr/lib64/libnuma.so.1.0.0
7fefd67a9000-7fefd67b4000 r-xp 00000000 fd:00 873512 /usr/lib64/libnss_files-2.22.so
7fefd67b4000-7fefd69b3000 ---p 0000b000 fd:00 873512 /usr/lib64/libnss_files-2.22.so
7fefd69b3000-7fefd69b4000 r--p 0000a000 fd:00 873512 /usr/lib64/libnss_files-2.22.so
7fefd69b4000-7fefd69b5000 rw-p 0000b000 fd:00 873512 /usr/lib64/libnss_files-2.22.so
7fefd69b5000-7fefd69bb000 rw-p 00000000 00:00 0
7fefd69bb000-7fefd69d1000 r-xp 00000000 fd:00 874757 /usr/lib64/libgcc_s-5.3.1-20160406.so.1
7fefd69d1000-7fefd6bd0000 ---p 00016000 fd:00 874757 /usr/lib64/libgcc_s-5.3.1-20160406.so.1
7fefd6bd0000-7fefd6bd1000 r--p 00015000 fd:00 874757 /usr/lib64/libgcc_s-5.3.1-20160406.so.1
7fefd6bd1000-7fefd6bd2000 rw-p 00016000 fd:00 874757 /usr/lib64/libgcc_s-5.3.1-20160406.so.1
7fefd6bd2000-7fefd6f7b000 r-xp 00000000 fd:00 1893788 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntshcore.so.12.1
7fefd6f7b000-7fefd717b000 ---p 003a9000 fd:00 1893788 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntshcore.so.12.1
7fefd717b000-7fefd718c000 r--p 003a9000 fd:00 1893788 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntshcore.so.12.1
7fefd718c000-7fefd7191000 rw-p 003ba000 fd:00 1893788 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntshcore.so.12.1
7fefd7191000-7fefd71a0000 rw-p 00000000 00:00 0
7fefd71a0000-7fefd71b7000 r-xp 00000000 fd:00 873642 /usr/lib64/libresolv-2.22.so
7fefd71b7000-7fefd73b7000 ---p 00017000 fd:00 873642 /usr/lib64/libresolv-2.22.so
7fefd73b7000-7fefd73b8000 r--p 00017000 fd:00 873642 /usr/lib64/libresolv-2.22.so
7fefd73b8000-7fefd73b9000 rw-p 00018000 fd:00 873642 /usr/lib64/libresolv-2.22.so
7fefd73b9000-7fefd73bb000 rw-p 00000000 00:00 0
7fefd73bb000-7fefd73bc000 r-xp 00000000 fd:00 872963 /usr/lib64/libaio.so.1.0.1
7fefd73bc000-7fefd75bb000 ---p 00001000 fd:00 872963 /usr/lib64/libaio.so.1.0.1
7fefd75bb000-7fefd75bc000 r--p 00000000 fd:00 872963 /usr/lib64/libaio.so.1.0.1
7fefd75bc000-7fefd75bd000 rw-p 00001000 fd:00 872963 /usr/lib64/libaio.so.1.0.1
7fefd75bd000-7fefd7609000 r-xp 00000000 fd:00 1896661 /home/oracle/app/product/12.2.0/dbhome_1/lib/libons.so
7fefd7609000-7fefd7809000 ---p 0004c000 fd:00 1896661 /home/oracle/app/product/12.2.0/dbhome_1/lib/libons.so
7fefd7809000-7fefd780b000 rw-p 0004c000 fd:00 1896661 /home/oracle/app/product/12.2.0/dbhome_1/lib/libons.so
7fefd780b000-7fefd7ce4000 r-xp 00000000 fd:00 1897127 /home/oracle/app/product/12.2.0/dbhome_1/lib/libnnz12.so
7fefd7ce4000-7fefd7ee3000 ---p 004d9000 fd:00 1897127 /home/oracle/app/product/12.2.0/dbhome_1/lib/libnnz12.so
7fefd7ee3000-7fefd7f52000 rw-p 004d8000 fd:00 1897127 /home/oracle/app/product/12.2.0/dbhome_1/lib/libnnz12.so
7fefd7f52000-7fefd7f54000 rw-p 00000000 00:00 0
7fefd7f54000-7fefd810b000 r-xp 00000000 fd:00 873031 /usr/lib64/libc-2.22.so
7fefd810b000-7fefd830b000 ---p 001b7000 fd:00 873031 /usr/lib64/libc-2.22.so
7fefd830b000-7fefd830f000 r--p 001b7000 fd:00 873031 /usr/lib64/libc-2.22.so
7fefd830f000-7fefd8311000 rw-p 001bb000 fd:00 873031 /usr/lib64/libc-2.22.so
7fefd8311000-7fefd8315000 rw-p 00000000 00:00 0
7fefd8315000-7fefd831c000 r-xp 00000000 fd:00 873656 /usr/lib64/librt-2.22.so
7fefd831c000-7fefd851b000 ---p 00007000 fd:00 873656 /usr/lib64/librt-2.22.so
7fefd851b000-7fefd851c000 r--p 00006000 fd:00 873656 /usr/lib64/librt-2.22.so
7fefd851c000-7fefd851d000 rw-p 00007000 fd:00 873656 /usr/lib64/librt-2.22.so
7fefd851d000-7fefd8533000 r-xp 00000000 fd:00 873506 /usr/lib64/libnsl-2.22.so
7fefd8533000-7fefd8732000 ---p 00016000 fd:00 873506 /usr/lib64/libnsl-2.22.so
7fefd8732000-7fefd8733000 r--p 00015000 fd:00 873506 /usr/lib64/libnsl-2.22.so
7fefd8733000-7fefd8734000 rw-p 00016000 fd:00 873506 /usr/lib64/libnsl-2.22.so
7fefd8734000-7fefd8736000 rw-p 00000000 00:00 0
7fefd8736000-7fefd874e000 r-xp 00000000 fd:00 873607 /usr/lib64/libpthread-2.22.so
7fefd874e000-7fefd894d000 ---p 00018000 fd:00 873607 /usr/lib64/libpthread-2.22.so
7fefd894d000-7fefd894e000 r--p 00017000 fd:00 873607 /usr/lib64/libpthread-2.22.so
7fefd894e000-7fefd894f000 rw-p 00018000 fd:00 873607 /usr/lib64/libpthread-2.22.so
7fefd894f000-7fefd8953000 rw-p 00000000 00:00 0
7fefd8953000-7fefd8a54000 r-xp 00000000 fd:00 873435 /usr/lib64/libm-2.22.so
7fefd8a54000-7fefd8c53000 ---p 00101000 fd:00 873435 /usr/lib64/libm-2.22.so
7fefd8c53000-7fefd8c54000 r--p 00100000 fd:00 873435 /usr/lib64/libm-2.22.so
7fefd8c54000-7fefd8c55000 rw-p 00101000 fd:00 873435 /usr/lib64/libm-2.22.so
7fefd8c55000-7fefd8c58000 r-xp 00000000 fd:00 873119 /usr/lib64/libdl-2.22.so
7fefd8c58000-7fefd8e57000 ---p 00003000 fd:00 873119 /usr/lib64/libdl-2.22.so
7fefd8e57000-7fefd8e58000 r--p 00002000 fd:00 873119 /usr/lib64/libdl-2.22.so
7fefd8e58000-7fefd8e59000 rw-p 00003000 fd:00 873119 /usr/lib64/libdl-2.22.so
7fefd8e59000-7fefd9085000 r-xp 00000000 fd:00 1893392 /home/oracle/app/product/12.2.0/dbhome_1/lib/libipc1.so
7fefd9085000-7fefd9284000 ---p 0022c000 fd:00 1893392 /home/oracle/app/product/12.2.0/dbhome_1/lib/libipc1.so
7fefd9284000-7fefd9288000 rw-p 0022b000 fd:00 1893392 /home/oracle/app/product/12.2.0/dbhome_1/lib/libipc1.so
7fefd9288000-7fefd928c000 rw-p 00000000 00:00 0
7fefd928c000-7fefd92fe000 r-xp 00000000 fd:00 1893390 /home/oracle/app/product/12.2.0/dbhome_1/lib/libmql1.so
7fefd92fe000-7fefd94fe000 ---p 00072000 fd:00 1893390 /home/oracle/app/product/12.2.0/dbhome_1/lib/libmql1.so
7fefd94fe000-7fefd9501000 rw-p 00072000 fd:00 1893390 /home/oracle/app/product/12.2.0/dbhome_1/lib/libmql1.so
7fefd9501000-7fefd9503000 rw-p 00000000 00:00 0
7fefd9503000-7fefdcb56000 r-xp 00000000 fd:00 1893774 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1
7fefdcb56000-7fefdcd55000 ---p 03653000 fd:00 1893774 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1
7fefdcd55000-7fefdcf62000 r--p 03652000 fd:00 1893774 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1
7fefdcf62000-7fefdcf8a000 rw-p 0385f000 fd:00 1893774 /home/oracle/app/product/12.2.0/dbhome_1/lib/libclntsh.so.12.1
7fefdcf8a000-7fefdcfab000 rw-p 00000000 00:00 0
7fefdcfab000-7fefdcfcc000 r-xp 00000000 fd:00 872864 /usr/lib64/ld-2.22.so
7fefdcfd7000-7fefdd094000 rw-p 00000000 00:00 0
7fefdd0bf000-7fefdd17f000 r--p 00000000 fd:00 1896504 /home/oracle/app/product/12.2.0/dbhome_1/oracore/zoneinfo/timezlrg_26.dat
7fefdd17f000-7fefdd1b4000 rw-p 00000000 00:00 0
7fefdd1c2000-7fefdd1cb000 rw-p 00000000 00:00 0
7fefdd1cb000-7fefdd1cc000 r--p 00020000 fd:00 872864 /usr/lib64/ld-2.22.so
7fefdd1cc000-7fefdd1cd000 rw-p 00021000 fd:00 872864 /usr/lib64/ld-2.22.so
7fefdd1cd000-7fefdd1ce000 rw-p 00000000 00:00 0
7ffc3be49000-7ffc3bea9000 rw-p 00000000 00:00 0 [stack]
7ffc3bf74000-7ffc3bf76000 r--p 00000000 00:00 0 [vvar]
7ffc3bf76000-7ffc3bf78000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
다음과 같은 에러가 발생하네요.
12.1.0 클라이언트를 사용할때는 아무런 문제 없이 작동하나 12.2.0 클라이언트 사용 시 해당 문제가 발생하는데 무엇을 확인해야될까요? |