2367843 - Perl module errors with buffer overflow detected - SAP SDK | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2367843 - Perl module errors with buffer overflow detected - SAP SDK

Symptom

After ASE upgrade from 16.0 SP02 PL03 to 16.0 SP02 PL04 HF1 perl script crashes with stack:

*** buffer overflow detected ***: /usr/bin/perl terminated ======= Backtrace: ========= /lib64/libc.so.6(__fortify_fail+0x37)[0x7fca6fa07317]
/lib64/libc.so.6(+0xf2fb0)[0x7fca6fa04fb0]
/lib64/libc.so.6(+0xf212d)[0x7fca6fa0412d]
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so(+0x2599e)[0x7fca6ee7e99e]
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so(syb_db_login+0x7a3)[0x7fca6ee7f2d3]
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so(XS_DBD__Sybase__db__login+0x27c)[0x7fca6ee6549c]
/usr/bin/perl(Perl_pp_entersub+0x5a5)[0x47e245]
/usr/bin/perl(Perl_runops_debug+0x133)[0x455bd3]
/usr/bin/perl(Perl_call_sv+0x158)[0x479128]
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBI/DBI.so(XS_DBI_dispatch+0x44fa)[0x7fca6f6edbda]
/usr/bin/perl(Perl_pp_entersub+0x5a5)[0x47e245]
/usr/bin/perl(Perl_runops_debug+0x133)[0x455bd3]
/usr/bin/perl(perl_run+0x45f)[0x47a2cf]
/usr/bin/perl(main+0xdc)[0x42172c]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x7fca6f930c36]
/usr/bin/perl[0x421589]
======= Memory map: ========
00400000-0058a000 r-xp 00000000 fd:04 90848 /usr/bin/perl
00789000-0078a000 r--p 00189000 fd:04 90848 /usr/bin/perl
0078a000-0078e000 rw-p 0018a000 fd:04 90848 /usr/bin/perl
0078e000-00bef000 rw-p 00000000 00:00 0 [heap]
7fca6afa9000-7fca6afbf000 r-xp 00000000 fd:00 24669 /lib64/libgcc_s.so.1
7fca6afbf000-7fca6b1be000 ---p 00016000 fd:00 24669 /lib64/libgcc_s.so.1
7fca6b1be000-7fca6b1bf000 r--p 00015000 fd:00 24669 /lib64/libgcc_s.so.1
7fca6b1bf000-7fca6b1c0000 rw-p 00016000 fd:00 24669 /lib64/libgcc_s.so.1
7fca6b1c0000-7fca6b1cb000 r-xp 00000000 fd:00 24721 /lib64/libnss_files-2.11.3.so
7fca6b1cb000-7fca6b3cb000 ---p 0000b000 fd:00 24721 /lib64/libnss_files-2.11.3.so
7fca6b3cb000-7fca6b3cc000 r--p 0000b000 fd:00 24721 /lib64/libnss_files-2.11.3.so
7fca6b3cc000-7fca6b3cd000 rw-p 0000c000 fd:00 24721 /lib64/libnss_files-2.11.3.so
7fca6b3cd000-7fca6b3ce000 ---p 00000000 00:00 0
7fca6b3ce000-7fca6bbce000 rw-p 00000000 00:00 0
7fca6bbce000-7fca6bbcf000 ---p 00000000 00:00 0
7fca6bbcf000-7fca6c3cf000 rw-p 00000000 00:00 0
7fca6c3cf000-7fca6c3d0000 ---p 00000000 00:00 0
7fca6c3d0000-7fca6cbd0000 rw-p 00000000 00:00 0
7fca6cbd0000-7fca6cbd1000 ---p 00000000 00:00 0
7fca6cbd1000-7fca6d3d1000 rw-p 00000000 00:00 0
7fca6d3d1000-7fca6d3d2000 ---p 00000000 00:00 0
7fca6d3d2000-7fca6dbd2000 rw-p 00000000 00:00 0
7fca6dbd2000-7fca6dc2b000 r-xp 00000000 fd:09 606321 /sybase/OCS-16_0/lib/libsybunic64.so
7fca6dc2b000-7fca6de2a000 ---p 00059000 fd:09 606321 /sybase/OCS-16_0/lib/libsybunic64.so
7fca6de2a000-7fca6de7d000 rw-p 00058000 fd:09 606321 /sybase/OCS-16_0/lib/libsybunic64.so
7fca6de7d000-7fca6de92000 r-xp 00000000 fd:00 24715 /lib64/libnsl-2.11.3.so
7fca6de92000-7fca6e091000 ---p 00015000 fd:00 24715 /lib64/libnsl-2.11.3.so
7fca6e091000-7fca6e092000 r--p 00014000 fd:00 24715 /lib64/libnsl-2.11.3.so
7fca6e092000-7fca6e093000 rw-p 00015000 fd:00 24715 /lib64/libnsl-2.11.3.so
7fca6e093000-7fca6e095000 rw-p 00000000 00:00 0
7fca6e095000-7fca6e0b2000 r-xp 00000000 fd:09 115123 $SYBASE/$SYBASE_OCS/lib/libsybblk_r64.so
7fca6e0b2000-7fca6e2b1000 ---p 0001d000 fd:09 115123 $SYBASE/$SYBASE_OCS/lib/libsybblk_r64.so
7fca6e2b1000-7fca6e2b3000 rw-p 0001c000 fd:09 115123 $SYBASE/$SYBASE_OCS/lib/libsybblk_r64.so
7fca6e2b3000-7fca6e2bb000 r-xp 00000000 fd:09 115189 $SYBASE/$SYBASE_OCS/lib/libsybintl_r64.so
7fca6e2bb000-7fca6e4bb000 ---p 00008000 fd:09 115189 $SYBASE/$SYBASE_OCS/lib/libsybintl_r64.so
7fca6e4bb000-7fca6e4bc000 rw-p 00008000 fd:09 115189 $SYBASE/$SYBASE_OCS/lib/libsybintl_r64.so
7fca6e4bc000-7fca6e56a000 r-xp 00000000 fd:09 115129 $SYBASE/$SYBASE_OCS/lib/libsybcomn_r64.so
7fca6e56a000-7fca6e76a000 ---p 000ae000 fd:09 115129 $SYBASE/$SYBASE_OCS/lib/libsybcomn_r64.so
7fca6e76a000-7fca6e777000 rw-p 000ae000 fd:09 115129 $SYBASE/$SYBASE_OCS/lib/libsybcomn_r64.so
7fca6e777000-7fca6e77b000 rw-p 00000000 00:00 0
7fca6e77b000-7fca6e7a2000 r-xp 00000000 fd:09 115225 $SYBASE/$SYBASE_OCS/lib/libsybtcl_r64.so
7fca6e7a2000-7fca6e9a1000 ---p 00027000 fd:09 115225 $SYBASE/$SYBASE_OCS/lib/libsybtcl_r64.so
7fca6e9a1000-7fca6e9a2000 rw-p 00026000 fd:09 115225 $SYBASE/$SYBASE_OCS/lib/libsybtcl_r64.so
7fca6e9a2000-7fca6e9a4000 rw-p 00000000 00:00 0
7fca6e9a4000-7fca6e9b7000 r-xp 00000000 fd:09 115135 $SYBASE/$SYBASE_OCS/lib/libsybcs_r64.so
7fca6e9b7000-7fca6ebb7000 ---p 00013000 fd:09 115135 $SYBASE/$SYBASE_OCS/lib/libsybcs_r64.so
7fca6ebb7000-7fca6ebb8000 rw-p 00013000 fd:09 115135 $SYBASE/$SYBASE_OCS/lib/libsybcs_r64.so
7fca6ebb8000-7fca6ec48000 r-xp 00000000 fd:09 115141 $SYBASE/$SYBASE_OCS/lib/libsybct_r64.so
7fca6ec48000-7fca6ee47000 ---p 00090000 fd:09 115141 $SYBASE/$SYBASE_OCS/lib/libsybct_r64.so
7fca6ee47000-7fca6ee59000 rw-p 0008f000 fd:09 115141 $SYBASE/$SYBASE_OCS/lib/libsybct_r64.so
7fca6ee59000-7fca6eea9000 r-xp 00000000 fd:04 492284 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so
7fca6eea9000-7fca6f0a8000 ---p 00050000 fd:04 492284 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so
7fca6f0a8000-7fca6f0a9000 r--p 0004f000 fd:04 492284 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so
7fca6f0a9000-7fca6f0aa000 rw-p 00050000 fd:04 492284 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so
7fca6f0aa000-7fca6f0ac000 r-xp 00000000 fd:04 485045 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/Sys/Hostname/Hostname.so
7fca6f0ac000-7fca6f2ab000 ---p 00002000 fd:04 485045 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/Sys/Hostname/Hostname.so
7fca6f2ab000-7fca6f2ac000 r--p 00001000 fd:04 485045 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/Sys/Hostname/Hostname.so
7fca6f2ac000-7fca6f2ad000 rw-p 00002000 fd:04 485045 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/Sys/Hostname/Hostname.so
7fca6f2ad000-7fca6f2b2000 r-xp 00000000 fd:04 484765 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/File/Glob/Glob.so
7fca6f2b2000-7fca6f4b1000 ---p 00005000 fd:04 484765 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/File/Glob/Glob.so
7fca6f4b1000-7fca6f4b2000 r--p 00004000 fd:04 484765 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/File/Glob/Glob.so
7fca6f4b2000-7fca6f4b3000 rw-p 00005000 fd:04 484765 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/File/Glob/Glob.so
7fca6f4b3000-7fca6f4be000 r-xp 00000000 fd:04 484802 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/List/Util/Util.so
7fca6f4be000-7fca6f6bd000 ---p 0000b000 fd:04 484802 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/List/Util/Util.so
7fca6f6bd000-7fca6f6be000 r--p 0000a000 fd:04 484802 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/List/Util/Util.so
7fca6f6be000-7fca6f6bf000 rw-p 0000b000 fd:04 484802 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/List/Util/Util.so
7fca6f6bf000-7fca6f711000 r-xp 00000000 fd:04 492288 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBI/DBI.so
7fca6f711000-7fca6f910000 ---p 00052000 fd:04 492288 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBI/DBI.so
7fca6f910000-7fca6f911000 r--p 00051000 fd:04 492288 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBI/DBI.so
7fca6f911000-7fca6f912000 rw-p 00052000 fd:04 492288 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/auto/DBI/DBI.so
7fca6f912000-7fca6fa84000 r-xp 00000000 fd:00 24619 /lib64/libc-2.11.3.so
7fca6fa84000-7fca6fc84000 ---p 00172000 fd:00 24619 /lib64/libc-2.11.3.so
7fca6fc84000-7fca6fc88000 r--p 00172000 fd:00 24619 /lib64/libc-2.11.3.so
7fca6fc88000-7fca6fc89000 rw-p 00176000 fd:00 24619 /lib64/libc-2.11.3.so
7fca6fc89000-7fca6fc8e000 rw-p 00000000 00:00 0
7fca6fc8e000-7fca6fca5000 r-xp 00000000 fd:00 24742 /lib64/libpthread-2.11.3.so
7fca6fca5000-7fca6fea5000 ---p 00017000 fd:00 24742 /lib64/libpthread-2.11.3.so
7fca6fea5000-7fca6fea6000 r--p 00017000 fd:00 24742 /lib64/libpthread-2.11.3.so
7fca6fea6000-7fca6fea7000 rw-p 00018000 fd:00 24742 /lib64/libpthread-2.11.3.so
7fca6fea7000-7fca6feab000 rw-p 00000000 00:00 0
7fca6feab000-7fca6feb7000 r-xp 00000000 fd:00 24628 /lib64/libcrypt-2.11.3.so
7fca6feb7000-7fca700b6000 ---p 0000c000 fd:00 24628 /lib64/libcrypt-2.11.3.so
7fca700b6000-7fca700b7000 r--p 0000b000 fd:00 24628 /lib64/libcrypt-2.11.3.so
7fca700b7000-7fca700b8000 rw-p 0000c000 fd:00 24628 /lib64/libcrypt-2.11.3.so
7fca700b8000-7fca700e6000 rw-p 00000000 00:00 0
7fca700e6000-7fca700e8000 r-xp 00000000 fd:00 24653 /lib64/libdl-2.11.3.so
7fca700e8000-7fca702e8000 ---p 00002000 fd:00 24653 /lib64/libdl-2.11.3.so
7fca702e8000-7fca702e9000 r--p 00002000 fd:00 24653 /lib64/libdl-2.11.3.so
7fca702e9000-7fca702ea000 rw-p 00003000 fd:00 24653 /lib64/libdl-2.11.3.so
7fca702ea000-7fca70345000 r-xp 00000000 fd:00 24693 /lib64/libm-2.11.3.so
7fca70345000-7fca70544000 ---p 0005b000 fd:00 24693 /lib64/libm-2.11.3.so
7fca70544000-7fca70545000 r--p 0005a000 fd:00 24693 /lib64/libm-2.11.3.so
7fca70545000-7fca70563000 rw-p 0005b000 fd:00 24693 /lib64/libm-2.11.3.so
7fca70563000-7fca70582000 r-xp 00000000 fd:00 24583 /lib64/ld-2.11.3.so
7fca7076a000-7fca7076e000 rw-p 00000000 00:00 0
7fca70781000-7fca70782000 rw-p 00000000 00:00 0
7fca70782000-7fca70783000 r--p 0001f000 fd:00 24583 /lib64/ld-2.11.3.so
7fca70783000-7fca70785000 rw-p 00020000 fd:00 24583 /lib64/ld-2.11.3.so
7ffed9a83000-7ffed9aa4000 rw-p 00000000 00:00 0 [stack]
7ffed9bf6000-7ffed9bf7000 r-xp 00000000 00:00 0 [vdso]
fffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

=====================================================================
===== Preceding output is <stdout> and <stderr> of the program. ===== =====================================================================


Read more...

Environment

  • SAP Software Developers Kit (SDK) for Adaptive Server Enterprise (ASE) 16.0 SP02 PL04
  • SAP Adaptive Server Enterprise (ASE) 16.0 SP02 PL04 HF1
  • Open Client Client-Library
  • Adaptive Server Enterprise database driver for Perl
  • Perl

Product

SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0

Keywords

ctlib, client libraries, ct-lib, ct-library, sybase, sap, dump, stack, trace, DBI->connect("dbi:Sybase:$server", $uid, $pwd); , KBA , BC-SYB-SDK , SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.