Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 612232

Summary: Net Installer Crashed After Retrieving install.img
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: dwalsh, ebenes
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 599457 Environment:
Last Closed: 2010-07-14 15:53:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 609517    

Description Alexander Todorov 2010-07-07 15:58:46 UTC
+++ This bug was initially created as a clone of Bug #599457 +++

Description of problem:


Version-Release number of selected component (if applicable): 13.42


How reproducible:


Steps to Reproduce:
1. create a new grub entry with vmlinuz and initrd.img from an install disk
2. reboot and select above entry as boot option
3. select "url" among install-source options
4. configure ethernet interface
5. specify url for obtaining install.img

installer crashes after retrieving install.img  


Additional info:
Seen at prompt on crash:

Loader exited unexpectedly! Backtrace:
/sbin/loader[0x804f19e]
/sbin/loader[0x804f254]
/lib/libc.so.6(exit+0xdf)[0xccc48f]
/sbin/loader[0x8058114]
/sbin/loader[0x80527d9]
/lib/libc.so.6(__libc_start_main+0xe6)[0xcb4c6]
/sbin/loader[0x804cee1]
Running anaconda 13.42, the Fedora system installer - please wait.
exec of anaconda failed: Exec format error
install exited abnormally [1/1]
The system will be rebooted when you press Ctrl-C or Ctrl-Alt-Delete.

--- Additional comment from clumens on 2010-06-03 16:23:59 EEST ---

The important frames...

0x8058114 - /usr/src/debug/anaconda-13.42/loader/selinux.c:47
0x80527d9 - /usr/src/debug/anaconda-13.42/loader/loader.c:2142

--- Additional comment from clumens on 2010-06-03 16:53:05 EEST ---

42     if (!(pid = fork())) {
43         setenv("LD_LIBRARY_PATH", LIBPATH, 1);
44         execl("/sbin/load_policy",
45               "/sbin/load_policy", "-q", NULL);
46         logMessage(ERROR, "exec of load_policy failed: %m");
47         exit(1);
48     }

This is a pretty strange place to get a crash, but it seems obvious what the problem is - load_policy failed.  When you get this crash, can you jump over to tty3 and tty4, take a picture, and attach them to this bug report?

--- Additional comment from roshnic on 2010-06-04 07:57:50 EEST ---

Created an attachment (id=421115)
screenshot of tty3

--- Additional comment from roshnic on 2010-06-04 07:58:27 EEST ---

Created an attachment (id=421116)
screenshot of tty4

Comment 1 Alexander Todorov 2010-07-07 16:02:44 UTC
I've hit this with snapshot #7 on a ASUS eeePC (i386) laptop. Tre backtrace happend right after install.img was downloaded. Looks like:

Loader exited unexpectedly! Backtrace:
/sbin/loader[0x804f9ae]
/sbin/loader[0x804fa64]
/lib/libc.so.6(exit+0xdf)[0x73546f]
/sbin/loader[0x8058c04]
/sbin/loader[0x8052735]
/lib/libc.so.6(__libc_start_main+0xe6)[0x71dcc6]
/sbin/loader[0x804d1d1]
Running anaconda 13.21.56, the Red Hat Enterprise Linux system installer - please wait.
exec of anaconda failed: Exec format error
install exited abnormally [1/1]
The system will be rebooted when you press Ctrl-C or Ctrl-Alt-Delete.


I will try to attach screenshots of tty3 and 4 later. Right now I don't have a camera available.

Comment 2 Dave Cantrell 2010-07-07 16:24:39 UTC
dcantrel@mitre loader$ eu-addr2line -e loader.debug 
0x804f9ae
/usr/src/debug/anaconda-13.21.56/loader/loader.c:1736
0x804fa64
/usr/src/debug/anaconda-13.21.56/loader/loader.c:1746
0x8058c04
/usr/src/debug/anaconda-13.21.56/loader/selinux.c:47
0x8052735
/usr/src/debug/anaconda-13.21.56/loader/loader.c:2176
0x804d1d1
??:0

And from loader/selinux.c:

 37 int loadpolicy() {
 38     int pid, status;
 39 
 40     logMessage(INFO, "Loading SELinux policy");
 41 
 42     if (!(pid = fork())) {
 43         setenv("LD_LIBRARY_PATH", LIBPATH, 1);
 44         execl("/sbin/load_policy",
 45               "/sbin/load_policy", "-q", NULL);
 46         logMessage(ERROR, "exec of load_policy failed: %m");
 47         exit(1);
 48     }
 49 
 50     waitpid(pid, &status, 0);
 51     if (WIFEXITED(status) && (WEXITSTATUS(status) != 0))
 52         return 1;
 53 
 54     return 0;
 55 }

Reassigning to policycoreutils.

Comment 3 Daniel Walsh 2010-07-12 20:14:53 UTC
David, do you have any idea what is going on?

Comment 4 Dave Cantrell 2010-07-14 15:53:32 UTC
(In reply to comment #1)
> I've hit this with snapshot #7 on a ASUS eeePC (i386) laptop. Tre backtrace
> happend right after install.img was downloaded. Looks like:
> 
> Loader exited unexpectedly! Backtrace:
> /sbin/loader[0x804f9ae]
> /sbin/loader[0x804fa64]
> /lib/libc.so.6(exit+0xdf)[0x73546f]
> /sbin/loader[0x8058c04]
> /sbin/loader[0x8052735]
> /lib/libc.so.6(__libc_start_main+0xe6)[0x71dcc6]
> /sbin/loader[0x804d1d1]
> Running anaconda 13.21.56, the Red Hat Enterprise Linux system installer -
> please wait.
> exec of anaconda failed: Exec format error

Scratch original analysis.  This is not a load_policy problem.  Looks like you're using the wrong install.img.  'Exec format error' means you likely pointed the install media to an x86_64 tree.