yum gives illegal instruction error

Latest response

Approximately a week ago two of our servers started giving the error illegal instruction when we run yum update. Even after a yum clean all the error still persists. Has anyone seen this error or have a fix for it?

Responses

William,

Can you post the command you are running and the exact error you are receiving? Which version of RHEL is this occuring on? Are you using Satellite/internal repositories or connecting to public yum repositories?

Here is the output of the yum command:

[root@acadtest ~]# yum update Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-manager This system is receiving updates from RHN Classic or RHN Satellite. Setting up Update Process Illegal instruction

We are not using satellite but registered the system as we have to date using the rhn_register command from the command line. This is on rhel 6 as are the other two servers that are seeing the same issue. We have other servers that we will start patching once an internal change freeze is over in two days and hope that we do not see the same issues. This problem was or is linked to another issue we are having with the classic subscription management portal where errata and patches would not show up in the portal but would using yum. This other case is CASE 01591205.

This is the output for the final part of a very long report from yum... Commands issued:

]# sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/product-id.conf; sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/subscription-manager.conf; sed -i 's/enabled = 0/enabled = 1/g' /etc/yum/pluginconf.d/rhnplugin.conf

]# export URLGRABBER_DEBUG=1

]# yum clean all

]# yum repolist -v

Output from right before and including the error:

DEBUG:urlgrabber:combined options: { 'checkfunc' : , 'copy_local' : 1, 'http_headers' : (('X-RHN-Server-Id', 1040649673), ('X-RHN-Auth-Server-Time', '1464042330.31'), ('X-RHN-Auth', 'cAweroq3CjTjNzeuOCkYkQ=='), ('X-RHN-Transport-Capability', 'follow-redirects=3'), ('X-RHN-Auth-User-Id', '\nX-libcurl-Empty-Header-Workaround: *'), ('X-RHN-Auth-Expire-Offset', '3600.0'), ('Pragma', 'no-cache')), 'range' : None, 'reget' : None, 'size' : None, 'ssl_ca_cert' : '/usr/share/rhn/RHNS-CA-CERT', 'text' : 'rhel-x86_64-server-6/primary', 'timeout' : 60.0, 'delegate' : { 'bandwidth' : 0, 'cache_openers': True, 'checkfunc' : None, 'close_connection': 0, 'copy_local' : 0, 'data' : None, 'delegate' : None, 'failure_callback': None, 'ftp_disable_epsv': False, 'ftp_headers' : None, 'http_headers' : (('X-RHN-Server-Id', 1040649673), ('X-RHN-Auth-Server-Time', '1464042330.31'), ('X-RHN-Auth', 'cAweroq3CjTjNzeuOCkYkQ=='), ('X-RHN-Transport-Capability', 'follow-redirects=3'), ('X-RHN-Auth-User-Id', '\nX-libcurl-Empty-Header-Workaround: *'), ('X-RHN-Auth-Expire-Offset', '3600.0')), 'interrupt_callback': >, 'keepalive' : 0, 'max_header_size': 2097152, 'opener' : None, 'prefix' : None, 'progress_obj' : <output.YumTextMeter instance at 0x298b440>, 'proxies' : {'ftp': '', 'http': '', 'https': ''}, 'quote' : None, 'range' : None, 'reget' : 'simple', 'retry' : 1, 'retrycodes' : [-1, 2, 4, 5, 6, 7], 'size' : None, 'ssl_ca_cert' : None, 'ssl_cert' : None, 'ssl_cert_type': 'PEM', 'ssl_context' : None, 'ssl_key' : None, 'ssl_key_pass' : None, 'ssl_key_type' : 'PEM', 'ssl_verify_host': True, 'ssl_verify_peer': True, 'text' : None, 'throttle' : 0, 'timeout' : 60.0, 'urlparser' : <urlgrabber.grabber.URLParser instance at 0x2cbb830>, 'user_agent' : 'rhn.rpclib.py/$Revision$', } } 2016-05-23 15:25:49,114 attempt 1/1: https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6/repodata/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz INFO:urlgrabber:attempt 1/1: https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6/repodata/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz 2016-05-23 15:25:49,115 opening local file "/var/cache/yum/x86_64/6Server/rhel-x86_64-server-6/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz" with mode wb INFO:urlgrabber:opening local file "/var/cache/yum/x86_64/6Server/rhel-x86_64-server-6/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz" with mode wb * About to connect() to xmlrpc.rhn.redhat.com port 443 (#0) * Trying 209.132.183.192... * connected * Connected to xmlrpc.rhn.redhat.com (209.132.183.192) port 443 (#0) * warning: CURLOPT_CAPATH not a directory (/usr/share/rhn/RHNS-CA-CERT) * CAfile: /usr/share/rhn/RHNS-CA-CERT CApath: /usr/share/rhn/RHNS-CA-CERT * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA * Server certificate: * subject: E=rhn-noc@redhat.com,CN=xmlrpc.rhn.redhat.com,OU=Red Hat Network,O="Red Hat, Inc.",L=Raleigh,ST=North Carolina,C=US * start date: Mar 11 13:37:37 2016 GMT * expire date: Mar 11 13:37:37 2019 GMT * common name: xmlrpc.rhn.redhat.com * issuer: E=rhn-noc@redhat.com,CN=RHN Certificate Authority,OU=Red Hat Network,O="Red Hat, Inc.",L=Raleigh,ST=North Carolina,C=US

GET /XMLRPC/GET-REQ/rhel-x86_64-server-6/repodata/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz HTTP/1.1 User-Agent: rhn.rpclib.py/$Revision$ Host: xmlrpc.rhn.redhat.com Accept: / X-RHN-Server-Id:1040649673 X-RHN-Auth-Server-Time:1464042330.31 X-RHN-Auth:cAweroq3CjTjNzeuOCkYkQ== X-RHN-Transport-Capability:follow-redirects=3 X-RHN-Auth-User-Id: X-libcurl-Empty-Header-Workaround: * X-RHN-Auth-Expire-Offset:3600.0 Pragma:no-cache

< HTTP/1.1 302 Found < Date: Mon, 23 May 2016 22:25:49 GMT < Server: Apache < Location: https://content-xmlrpc.rhn.redhat.com/rhn/repodata/rhel-x86_64-server-6/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz?gda=1464042949_dd6577f14ec0515cb56f5e7c96975630 < Content-Length: 475 < Content-Type: text/html; charset=iso-8859-1 < Connection: close < Content-Encoding: x-gzip 2016-05-23 15:25:49,287 header ended: INFO:urlgrabber:header ended: < * Closing connection #0 * Issue another request to this URL: 'https://content-xmlrpc.rhn.redhat.com/rhn/repodata/rhel-x86_64-server-6/a4a73c32c8072f073bb2674f922db37bb3714b79450aed72b7369d7287d87af8-primary.xml.gz?gda=1464042949_dd6577f14ec0515cb56f5e7c96975630' * About to connect() to content-xmlrpc.rhn.redhat.com port 443 (#0) * Trying 184.29.185.205... * connected * Connected to content-xmlrpc.rhn.redhat.com (184.29.185.205) port 443 (#0) * warning: CURLOPT_CAPATH not a directory (/usr/share/rhn/RHNS-CA-CERT) * CAfile: /usr/share/rhn/RHNS-CA-CERT CApath: /usr/share/rhn/RHNS-CA-CERT Illegal instruction

Hey guys having the same problem here. Was there any resolution here? Select RHEL 6.x client registered to local RHN satellite server get "Illegal instruction" error and no yum updates take place. Re-registering and clearing /var/cache/yum does not help.

Ok so here is the solution: I noticed in /var/log/messages:

kernel: yum[3574] trap invalid opcode ip:7f29dd2ead60 sp:7fff439fe238 error:0 in libfreeblpriv3.so[7f29dd298000+72000]

I checked to see what RPM that library (libfreeblpriv3.so) belongs to, which is nss-softokn-freebl. I manually downloaded the latest RPM from RHN, did an manual update (rpm -Uvh nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64.rpm) and now I can run yum updates again.

William,

Could you try Jose De la Rosa's solution? So first check for the error message, and if you find the messages install the latest nss-softokn-freebl rpm.

Success,

Jan Gerrit Kootstra

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.