[Bug 1586147] Re: segfault in objcopy building sbsigntool

Mathieu Trudel-Lapierre mathieu.tl at gmail.com
Thu May 26 19:20:53 UTC 2016


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 changed:

- 
  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
+    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
+   -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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1586147

Title:
  segfault in objcopy building sbsigntool

Status in eglibc package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1586147/+subscriptions



More information about the foundations-bugs mailing list