SAP Knowledge Base Article - Preview

2426946 - BCP in crashes - SDK for SAP ASE

Symptom

When ASE's charset is iso_1 BCP in will crash trying to insert multiple rows with ascii character NUL as the first character:
bcp pubs2..test in bcp.txt -S ASE -U sa -P password -X -c -t '((%%&&@@))' -r '((##~~^^))' -Jutf8 -Y -b100000

Starting copy...
*** glibc detected *** bcp: double free or corruption (!prev): 0x087629d8 ***
======= Backtrace: =========
/lib/libc.so.6[0x435b91]
/lib/libc.so.6[0x4382fe]
/lib/libc.so.6(realloc+0x1a0)[0x43b150]
bcp(comn_realloc+0x24)[0x8193e04]
bcp[0x809994e]
bcp(blk__rowxfer_in+0x11f)[0x809ce4f]
bcp(blk__async_continue+0x53)[0x809e713]
bcp(blk_rowxfer_mult+0xa3)[0x8096423]
bcp(executeBulkCopy+0x4f7)[0x807ce57]
bcp(runThread+0x1f4)[0x8077614]
bcp(runSessions+0x29)[0x8077789]
bcp(ctbcp_main+0x70c)[0x806db0c]
bcp(main+0xbc)[0x806dffc]
/lib/libc.so.6(__libc_start_main+0xe6)[0x3dbd36]
bcp[0x806d301]
======= Memory map: ========
00144000-00150000 r-xp 00000000 08:15 12701 /lib/libnss_files-2.12.so
00150000-00151000 r--p 0000b000 08:15 12701 /lib/libnss_files-2.12.so
00151000-00152000 rw-p 0000c000 08:15 12701 /lib/libnss_files-2.12.so
00152000-0018b000 r-xp 00000000 00:19 22506475 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_core29.so
0018b000-001a0000 rw-p 00038000 00:19 22506475 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_core29.so
001a0000-001bd000 r-xp 00000000 08:15 454 /lib/libgcc_s-4.4.7-20120601.so.1
001bd000-001be000 rw-p 0001d000 08:15 454 /lib/libgcc_s-4.4.7-20120601.so.1
00218000-0021b000 r-xp 00000000 08:15 4831 /lib/libdl-2.12.so
0021b000-0021c000 r--p 00002000 08:15 4831 /lib/libdl-2.12.so
0021c000-0021d000 rw-p 00003000 08:15 4831 /lib/libdl-2.12.so
003a3000-003c1000 r-xp 00000000 08:15 2430 /lib/ld-2.12.so
003c1000-003c2000 r--p 0001d000 08:15 2430 /lib/ld-2.12.so
003c2000-003c3000 rw-p 0001e000 08:15 2430 /lib/ld-2.12.so
003c5000-00556000 r-xp 00000000 08:15 6160 /lib/libc-2.12.so
00556000-00558000 r--p 00190000 08:15 6160 /lib/libc-2.12.so
00558000-00559000 rw-p 00192000 08:15 6160 /lib/libc-2.12.so
00559000-0055c000 rw-p 00000000 00:00 0
006d7000-006ff000 r-xp 00000000 08:15 4832 /lib/libm-2.12.so
006ff000-00700000 r--p 00027000 08:15 4832 /lib/libm-2.12.so
00700000-00701000 rw-p 00028000 08:15 4832 /lib/libm-2.12.so
008d1000-008d2000 r-xp 00000000 00:00 0 [vdso]
00a2c000-00a30000 r-xp 00000000 00:19 1379550 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_propertiesconfig29.so
00a30000-00a31000 rw-p 00003000 00:19 1379550 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_propertiesconfig29.so
00a31000-00c0d000 r-xp 00000000 00:19 1379542 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_openssl29.so
00c0d000-00c28000 rw-p 001db000 00:19 1379542 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_openssl29.so
00c28000-00c2c000 rw-p 00000000 00:00 0
00d8e000-00da5000 r-xp 00000000 08:15 12692 /lib/libnsl-2.12.so
00da5000-00da6000 r--p 00016000 08:15 12692 /lib/libnsl-2.12.so
00da6000-00da7000 rw-p 00017000 08:15 12692 /lib/libnsl-2.12.so
00da7000-00da9000 rw-p 00000000 00:00 0
00e01000-00e04000 r-xp 00000000 00:19 1379546 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_profiler29.so
00e04000-00e05000 rw-p 00003000 00:19 1379546 $SYBASE/$SYBASE_OCS/lib3p/libsybcsi_profiler29.so
08048000-081ab000 r-xp 00000000 00:19 19853176 $SYBASE/$SYBASE_OCS/bin/bcp
081ab000-081d3000 rw-p 00163000 00:19 19853176 $SYBASE/$SYBASE_OCS/bin/bcp
081d3000-081d8000 rw-p 00000000 00:00 0
08718000-0878f000 rw-p 00000000 00:00 0 [heap]
f7706000-f7729000 rw-p 00000000 00:00 0
f773c000-f773f000 rw-p 00000000 00:00 0
ff7ec000-ff802000 rw-p 00000000 00:00 0 [stack]
Abort (core dumped)


Read more...

Environment

  • Sybase Software Developer Kit (SDK)
  • SAP Sybase Software Developer Kit (SDK)
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK)
  • ctlibrary

Product

SAP Adaptive Server Enterprise 12.5 ; SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase Adaptive Server Enterprise 12.5 ; Sybase Adaptive Server Enterprise 15.0 ; Sybase Adaptive Server Enterprise 15.5 ; Sybase SDK 12.5 ; Sybase SDK 15.0 ; Sybase SDK 15.5 ; Sybase SDK 15.7 ; Sybase Software Developer Kit 15.7

Keywords

CR805505, CR#805505, 805505, client, ocs , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

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

Search for additional results

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