[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-22 Thread Launchpad Bug Tracker
This bug was fixed in the package binutils - 2.21.0.20110327-2ubuntu3 --- binutils (2.21.0.20110327-2ubuntu3) natty-proposed; urgency=medium * Cortex A8 workarounds for PLT tail calls (Richard Sandiford). LP: #774175. -- Matthias Klose d...@ubuntu.com Sun, 08 May 2011 03:00:48

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-19 Thread Dr. David Alan Gilbert
Merged bug 745843 as a dupe of this one; tested that the natty proposed binutils package fixes vtk's FTBFS. Dave -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel

Re: [Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-19 Thread Brian Murray
On Thu, May 19, 2011 at 08:39:13AM -, Dr. David Alan Gilbert wrote: Merged bug 745843 as a dupe of this one; tested that the natty proposed binutils package fixes vtk's FTBFS. Based off your comment it sounds like the verification of the fix in the proposed package has been completed. If

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-19 Thread Dr. David Alan Gilbert
** Tags added: verification-done ** Tags removed: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-09 Thread Martin Pitt
Do we have evidence that this also breaks stuff in natty? Making a change to such a central piece of toolchain in an SRU bears a lot of regression potential, so it should only be considered if it fixes actually known bugs. ** Changed in: binutils (Ubuntu Natty) Status: In Progress =

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-09 Thread Dr. David Alan Gilbert
Well we originally found this in a Natty ftbfs in bug 745843 (vtk), so yes it breaks something - whether it breaks anything important however is a different matter; it's a bit of a timebomb - it's a case of a branch landing on a particular boundary under certain conditions and you never know what

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-09 Thread Martin Pitt
** Changed in: binutils (Ubuntu Natty) Status: Incomplete = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-09 Thread Martin Pitt
Accepted binutils into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Tags added: verification-needed --

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-09 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/natty-proposed/binutils -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-07 Thread Matthias Klose
fixed in 2.21.51.20110421-0ubuntu5 ** Changed in: gcc-4.6 (Ubuntu Oneiric) Status: Confirmed = Invalid ** Changed in: binutils (Ubuntu Oneiric) Status: New = Fix Released ** Also affects: apt (Ubuntu Natty) Importance: Undecided Status: New ** Also affects: binutils

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-07 Thread Matthias Klose
apt rebuilt in oneiric ** Changed in: apt (Ubuntu Oneiric) Status: Confirmed = Fix Released ** Changed in: binutils (Ubuntu Natty) Status: New = In Progress ** Changed in: gcc-4.6 (Ubuntu Natty) Status: New = Invalid -- You received this bug notification because you are a

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-06 Thread Dr. David Alan Gilbert
This should be fixed by Richard's patch here: http://sourceware.org/ml/binutils/2011-04/msg00177.html It's probably worth pulling it in relatively quickly since this bug could trigger on anything else. Dave -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-04 Thread Dr. David Alan Gilbert
OK, I think I've got it - it certainly smells like a linkerism but I didn't want to blame it until I actually found the bad code, but I believe it's another instance of bug 745843 - a problem with the fixup for the cortex-a8 branch erratum: In the bad build we have: 00021fe0

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-04 Thread Michael Hope
Interesting. I just built apt-0.8.14.1ubuntu2 on Maverick using the plain gcc-linaro-4.6-2011.04 compiler and build/bin/apt-cache runs OK. The plain compiler doesn't have the stack protector or fortify turned on by default. -- You received this bug notification because you are a member of

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-04 Thread Jani Monoses
Changing the source slightly to use a constant that fits in 1 byte, leads to correct code. (In the function not in the macro, see below diff, so the code is only different in one place). A movs instruction is generated for 200, whereas for 400 it is a mov.w and then a nop at the end of the

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-04 Thread Dr. David Alan Gilbert
Building with -O1 works -O1 -finline-small-functions -fpeephole2 -freorder-functions -fschedule-insns failsRemoving any of these options and it works. -O2 fails -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-04 Thread Dr. David Alan Gilbert
Compiling with -O1 -finline-small-functions -fpeephole2 -freorder- functions -fschedule-insns fails, but removing the -freorder-functions works. The only difference in the assembler files produces is a set of section directives: diff error.S.noreorder error-bad.S 503a504 .section

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-03 Thread Matthias Klose
The segault doesn't show with a gcc-4.6 build with the Linaro changes disabled, the test build can be found at: deb http://people.canonical.com/~doko/tmp/gcc-4.6-armel/ ./ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-03 Thread Matthias Klose
** Also affects: gcc-4.6 (Ubuntu) Importance: Undecided Status: New ** Changed in: gcc-4.6 (Ubuntu Oneiric) Importance: Undecided = High ** Changed in: gcc-4.6 (Ubuntu Oneiric) Status: New = Confirmed ** Changed in: gcc-4.6 (Ubuntu Oneiric) Milestone: None =

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-03 Thread Jani Monoses
The miscompiled file is apt-pkg/contrib/error.cc which , the one that contains the varargs using functions in the backtrace. Compiling that object with gcc 4.5 -O2, gcc 4.6 at -O0 or -O1 results in good code generated. Using gcc 4.6 at -O2 causes a segfault. I'll provide more info shortly. --

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-03 Thread Dr. David Alan Gilbert
Observation (which may or may not be relevant): It doesn't seem to get anywhere near main or libc startup (gdb break on main or __start or anything like that just doesn't stop). Break'ing on _GLOBAL__sub_I_error.cc does stop and is an initialisation routine from the error.cc which is known to

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-03 Thread Jani Monoses
I put the error.o generated by Linaro Gcc 4.6 and Debian Unstable Gcc 4.6 here , along with a diff of the two objdumps. http://people.ubuntu.com/~jani/ Putting the Debian generated object in the build tree results in a correctly functioning lib in Ubuntu. -- You received this bug notification

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-03 Thread Jani Monoses
Ah my bad, I forgot to add -mthumb to the Debian build. Added now and updated the files (.sid.thumb) Now the diff is better. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Jani Monoses
Upgraded a panda to Oneiric with apt pinned to natty. Rebuilt apt without optimization and the resulting deb works - libapt-pkg-4.10 does not crash anymore (it is this lib that the APT utils depend link against and the one with the origin of the backtrace) Can be reproduced by getting the

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Matthias Klose
the eglibc 2.13-0ubuntu15 build shows some regressions in the testsuite, compared to 2.13-0ubuntu13. Built using g++-4.5 (apt is built using the default g++). Before uploading a apt without optimization, I'd like to investigate these. Help is appreciated. -- You received this bug notification

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Jani Monoses
A rebuild with gcc 4.5.2 with optimization left at -O2 also results in correct binaries. I put the two correctly working debs here, suffixed the file with the gcc version and opt level http://people.ubuntu.com/~jani/ -- You received this bug notification because you are a member of Ubuntu

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Jani Monoses
Building the oneiric apt source package in a debian unstable chroot using these gcc options suggested by doko -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-fp16 also results in a functional package. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Matthias Klose
** Also affects: gcc-linaro Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Matthias Klose
tracking the eglibc testsuite regressions in bug #775849 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-02 Thread Matthias Klose
jani, could you combine the object of the failing and a successful (the debian?) build to find the problematice object files? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Julian Andres Klode
Could yoi maybe run bt full in gdb? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

Re: [Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Scott Kitterman
(gdb) (gdb) bt full #0 0x40239c02 in __vsnprintf_chk () from /lib/arm-linux-gnueabi/libc.so.6 No symbol table info available. #1 0x40042480 in vsnprintf (this=0x400e08f8, type=GlobalError::WARNING, Description=0x40314008 (null) - (0: Success), args=..., msgSize=@0xbef78afc) at

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Matthias Klose
does an apt built using GCC 4.5 show the same behaviour? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Oliver Grawert
** Tags added: armel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Scott Kitterman
I built the oneiric apt on natty (with gcc4.5) and it built and worked fine on natty. Then I upgraded the chroot I used for this to oneiric and got the segmentation fault. I suspect that exonerates gcc4.6. I'm open for suggestions what to try next. -- You received this bug notification

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Michael Hope
(Notes for other oneiric newbies) To reproduce: * Start with a ARM natty system * % apt-get install ubuntu-dev-tools * Change to /usr/share/debootstrap/scripts * % ln -s gutsy oneiric to let debootstrap know how to make oneiric * % cd ~/linaro/roots * % export http_proxy=... * %

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Scott Kitterman
The natty debootstrap already knows about oneiric, so manually adding the symlink should not be needed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-05-01 Thread Michael Hope
I'm a bit confused. After installing libc6-dbg and also the ddebs, apt- get seems to segfault before hitting main: root@ursa1:/# gdb /usr/bin/apt-get GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Scott Kitterman
Excerpt from build log: Processing triggers for libc-bin ... ldconfig deferred processing now taking place RUN: /usr/share/launchpad-buildd/slavebin/sbuild-package ['sbuild-package', '328ae026dfba17aa1f63d6a2ef5dd75df88ced94', 'armel', 'oneiric', '--nolog', '--batch', '--archive=ubuntu',

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Scott Kitterman
ogra's backtrace: root@isis:/root# strace apt-get update execve(/usr/bin/apt-get, [apt-get, update], [/* 24 vars */]) = 0 brk(0) = 0x5e9000 uname({sys=Linux, node=isis, ...}) = 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory)

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Julian Andres Klode
We may need a gdb backtrace with debugging symbols. All I can tell from the strace backend is that we try to allocate 1GB of memory via mmap2() and that fails. I don't know where this is happening though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Scott Kitterman
I was probably doing it wrong, but this all I got: (gdb) run Starting program: /usr/bin/apt-cache Program received signal SIGSEGV, Segmentation fault. 0x40239c02 in __vsnprintf_chk () from /lib/arm-linux-gnueabi/libc.so.6 -- You received this bug notification because you are a member of

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Steve Langasek
Scott, please run the 'bt' command after the segfault to get a backtrace. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs mailing list

[Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Steve Langasek
** Also affects: apt (Ubuntu Oneiric) Importance: Critical Status: Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/774175 Title: apt segfaults on armel in oneiric -- ubuntu-bugs

Re: [Bug 774175] Re: apt segfaults on armel in oneiric

2011-04-30 Thread Scott Kitterman
0x40239c02 in __vsnprintf_chk () from /lib/arm-linux-gnueabi/libc.so.6 (gdb) (gdb) bt #0 0x40239c02 in __vsnprintf_chk () from /lib/arm-linux-gnueabi/libc.so.6 #1 0x40042480 in vsnprintf (this=0x400e08f8, type=GlobalError::WARNING, Description=0x40314008 (null) - (0: Success), args=...,