Hi experts,
I have a rare issue in using sapftp on 4.6D EXT2 release used by a SAP 4.6C system non-unicode.
Database is Oracle 10.2.0.5 and OS is Linux SLES 11 SP1.
The problem with this is that when I am using this sapftp to connect to other servers and transferring files, not all transfers are
successful. I am getting a segfault error or connection error for some of the transfers that are not successful.
The amount of files transferred will not matter whether it may be 10 documents, 100 documents, or 500 documents. The transfer will fail for some but will proceed with the others randomly.
The sapftp version is:
./sapftp -V
SAPFTP Non-Unicode
@(#) $Id: //bas/46D/src/krn/ftp/ftpmain.c#32 $ SAP
@(#) $Id: //bas/46D/src/krn/ftp/ftp.c#26 $ SAP
@(#) $Id: //bas/46D/src/krn/ftp/ftpcmd.c#23 $ SAP
SAP release: 46D SAP release no: 4640
However, when we make use of sapftp of a higher release, in particular 720_EXT.
SAPFTP Non-Unicode
@(#) $Id: //bas/720_REL/src/krn/ftp/ftpmain.c#13 $ SAP
@(#) $Id: //bas/720_REL/src/krn/ftp/ftp.c#2 $ SAP
@(#) $Id: //bas/720_REL/src/krn/ftp/ftpcmd.c#4 $ SAP
SAP release: 720 SAP release no: 7200
The issue no longer exists and that all file transfers becomes successful.
Please note that we have enabled sapftp.ini to enable passive mode by default.
When checking the OS logs as well in /var/logs/messages we can see some
notable memory issues in sapftp when using kernel 46D of sapftp.
Jan 22 18:43:55 panerp02 kernel: [2117422.856997] sapftp[19152]:
segfault at f67a4394 ip 00007f85f64da27e sp 00007fff96de4400 error 4 in
libc-2.11.1.so[7f85f6447000+154000]
Jan 22 18:43:55 panerp02 kernel: [2117422.874678] sapftp[19153]:
segfault at ff0c5394 ip 00007f8afedfb27e sp 00007fff7f0794e0 error 4 in
libc-2.11.1.so[7f8afed68000+154000]
Jan 22 18:43:55 panerp02 kernel: [2117422.892042] sapftp[19154]:
segfault at ab0bc394 ip 00007f66aadf227e sp 00007fff74c1f5b0 error 4 in
libc-2.11.1.so[7f66aad5f000+154000]
Jan 22 18:44:10 panerp02 kernel: [2117438.415828] sapftp[19186]:
segfault at e483394 ip 00007f450e1b927e sp 00007fff5477cef0 error 4 in
libc-2.11.1.so[7f450e126000+154000]
Jan 22 18:44:10 panerp02 kernel: [2117438.431445] sapftp[19187]:
segfault at 4de21394 ip 00007f694db5727e sp 00007fff56d2cae0 error 4 in
libc-2.11.1.so[7f694dac4000+154000]
Jan 22 18:44:10 panerp02 kernel: [2117438.454980] sapftp[19188]:
segfault at d108f394 ip 00007fc8d0dc527e sp 00007fffc251cb10 error 4 in
libc-2.11.1.so[7fc8d0d32000+154000]
Jan 22 18:44:10 panerp02 kernel: [2117438.475516] sapftp[19189]:
segfault at e97f8394 ip 00007fdde952e27e sp 00007fffcae3f710 error 4 in
libc-2.11.1.so[7fdde949b000+154000]
Jan 22 18:50:26 panerp02 kernel: [2117813.602789] sapftp[30993]:
segfault at ab57c0 ip 00000000005330d9 sp 00007fffdad45370 error 4 in
sapftp[400000+155000]
For both sapftp release on 46D_EXT2 and 720_EXT, we tested sample
connections using RSFTP002 and RSFTP003 and both are successfully
tested. Just that when transferring many files, the sapftp of kernel
46D_EXT2 fails at some point and not all files are being transferred as
a result.
I need to know if possible to use sapftp of a higher release on SAP 4.6C system and if any other solution or investigation points to check on this issue?