segfault in objcopy building sbsigntool

Bug #1586147 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

objcopy segfaults on i386, with the latest libc6 revisions (see below).

Works with 2.15-0ubuntu10 in a schroot (new precise chroot without updates)
Works with 2.15-0ubuntu10.4 (last sbsigntool backport used that)
Fails with 2.15-0ubuntu10.13 (in precise schroot)
Fails with 2.15-0ubuntu10.14 (in precise schroot).
Fails with 2.15-0ubuntu10.15 (in precise schroot).

Excerpt from the logs on my PPA [1][2]:

make test-x86_64.pecoff test-i386.pecoff test-wrapper.sh \
   private-key.rsa public-cert.pem
make[3]: Entering directory `/«PKGBUILDDIR»/tests'
gcc -m64 -D_FORTIFY_SOURCE=2 -c -o test-x86_64.o test.S
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -nostdlib -T ./test-x86_64.lds -o test-x86_64.elf test-x86_64.o
objcopy -j .text -j .sdata -j .data \
  -j .dynamic -j .dynsym -j .rel \
  -j .rela -j .reloc \
  --target=efi-app-x86-64 test-x86_64.elf test-x86_64.pecoff
make[3]: *** [test-x86_64.pecoff] Segmentation fault (core dumped)
make[3]: *** Deleting file `test-x86_64.pecoff'
rm test-x86_64.elf test-x86_64.o
make[3]: Leaving directory `/«PKGBUILDDIR»/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/«PKGBUILDDIR»/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
dh_auto_test: make -j1 check returned exit code 2
make: *** [build] Error 29
dpkg-buildpackage: error: debian/rules build gave error exit status 2

[1] https://launchpad.net/~cyphermox/+archive/ubuntu/efi/+build/9800712
[2] https://launchpadlibrarian.net/261818326/buildlog_ubuntu-precise-i386.sbsigntool_0.6-0ubuntu4~12.04.2_BUILDING.txt.gz

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This is blocking a backport of sbsigntool, which is required by shim-signed; since we're working on backporting all the latest shim/grub Secure Boot magic all the way to precise.

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.