Hi,
I am getting the following errors in message log while mirroring the red-hat 7 latest packages using the mrepo and lftp 4.0.9. They are
lftp[26710]: segfault at 0 ip (null) sp 00007fffcd10e5e8 error 14 in lftp[400000+b000]
lftp[26769]: segfault at 18 ip 00007fdb03ff4808 sp 00007fff2270cda0 error 4 in liblftp-network.so[7fdb03fe2000+20000]
Bug in lftp 4.0.9 package.
To resolve the segmentation fault error, you need to install the latest lftp packages from the yum repo or download the source code to build and install lftp in the local system as follows:
Updating the lftp from repo
yum update lftp
I am getting the following errors in message log while mirroring the red-hat 7 latest packages using the mrepo and lftp 4.0.9. They are
Error:
lftp[26710]: segfault at 0 ip (null) sp 00007fffcd10e5e8 error 14 in lftp[400000+b000]
lftp[26769]: segfault at 18 ip 00007fdb03ff4808 sp 00007fff2270cda0 error 4 in liblftp-network.so[7fdb03fe2000+20000]
Cause:
Bug in lftp 4.0.9 package.
Solution:
To resolve the segmentation fault error, you need to install the latest lftp packages from the yum repo or download the source code to build and install lftp in the local system as follows:
Updating the lftp from repo
yum update lftp
Download the lftp
Download the lftp source code following url:
http://lftp.yar.ru/ftp/lftp-4.6.3a.tar.gz
Build the lftp:
Install the lftp from the source code as follows:
1. Pre-Requisite
Install the following packages to install the lftp package:
yum install readline-devel gnutils-devel
2. Build Source Code
After installing the pre-requisite packages, please follow the procedure to build the lftp packages from the source code as follows:
./configure --prefix=/apps/lftp/ --with-gnutls=yes --with-openssl=yes
make
make install
It will install the lftp package in /apps/lftp directory.
Configuring lftp command
1. Edit the /etc/mrepo.conf and add replace the lftpcmd value with /apps/lftp/bin/lftp
2. Edit the /apps/lftp/etc/lftp.conf and add the following lines to download the redhat 7 packages from the cdn.redhat.com
set ssl:ca-file "/root/certs/redhat-uep.pem"
set ssl:key-file "/root/certs/cert-key.pem"
set ssl:cert-file "/root/certs/cert.pem"
set net:timeout 86400
3. Execute the following command to mirroring the redhat 7 packages:
mrepo -guvvv redhat-7Server
It will mirror the red-hat packages from the cdn.redhat.com
Please refer my existing blog how to setup mrepo redhat 7
After installing the lftp latest 4.6.3a version, the segmentation issues are resolved.
Please refer my existing blog how to setup mrepo redhat 7
After installing the lftp latest 4.6.3a version, the segmentation issues are resolved.
Hi, you helped me out a bit when getting MREPO ready and I ran into this same problem above. I was wondering how to go about installing this? it seems I need GLIBC2.17 and RHEL 6.x is only on 2.12. Will compiling it instead of installing it via RPM get me away from this requirement? if not what would be your suggestion? Thanks! you blog is awesome! everytime I have an issue you pop up!
ReplyDeletedisregard, looks like the compile worked out. I'll test shortly.
ReplyDeleteThis article provides valuable insights into diagnosing and resolving the segmentation fault error 4 in liblftp-network.so. It's a must-read for anyone dealing with FTP issues in their applications! For gamers, managing your game library with Skynode can help you stay organized while you troubleshoot these technical problems.
ReplyDelete