Bug#335578: ocamlopt.opt segfaults on Alpha
On Tue, Nov 08, 2005 at 12:11:06AM +0100, Julien Cristau wrote: > On Mon, Nov 7, 2005 at 18:34:54 +, Sven Luther wrote: > > > binutils is the likely culprit, i would say, especially given the way > > ocamlopt > > fails, and the fact that it was a cvs snapshot only augments that fear. > > > > Julien, could you maybe try downgrading to the older binutils version, and > > seeing what went wrong ? > > > Indeed, rebuilding with binutils 2.16.1-2, gcc-4.0 4.0.1-6 and > libc6.1-dev 2.3.5-7, the build succeeded, and I got a working > ocamlopt.opt. > The problem seems to be between binutils 2.16.1-2 and > 2.16.1cvs20050902-1. Dropping debian-glibc and debian-gcc from the > Mail-Followup-To. I suppose this means you should clone the bugs and reassign a copy to binutils, maybe merge in first the previous bugs or something. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Mon, Nov 7, 2005 at 18:34:54 +, Sven Luther wrote: > binutils is the likely culprit, i would say, especially given the way ocamlopt > fails, and the fact that it was a cvs snapshot only augments that fear. > > Julien, could you maybe try downgrading to the older binutils version, and > seeing what went wrong ? > Indeed, rebuilding with binutils 2.16.1-2, gcc-4.0 4.0.1-6 and libc6.1-dev 2.3.5-7, the build succeeded, and I got a working ocamlopt.opt. The problem seems to be between binutils 2.16.1-2 and 2.16.1cvs20050902-1. Dropping debian-glibc and debian-gcc from the Mail-Followup-To. Cheers, Julien Cristau -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Mon, Nov 07, 2005 at 05:16:53PM +0100, Julien Cristau wrote: > Hi, > > Starting from ocaml version 3.08.3-8, ocamlopt.opt doesn't work at all > on alpha. Since 3.08.3-7 built fine, I think this is a toolchain issue. > > 3.08.3-7 was built with gcc-4.0 4.0.1-4, binutils 2.16.1-2 and > libc6.1-dev 2.3.5-3, while 3.08.3-8 was built with gcc-4.0 4.0.1-6, > binutils 2.16.1cvs20050902-1 and libc6.1-dev 2.3.5-5. binutils is the likely culprit, i would say, especially given the way ocamlopt fails, and the fact that it was a cvs snapshot only augments that fear. Julien, could you maybe try downgrading to the older binutils version, and seeing what went wrong ? As said on irc, the likely solution here would be to disable the alpha native compilers until the solution is found. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
Hi, Starting from ocaml version 3.08.3-8, ocamlopt.opt doesn't work at all on alpha. Since 3.08.3-7 built fine, I think this is a toolchain issue. 3.08.3-7 was built with gcc-4.0 4.0.1-4, binutils 2.16.1-2 and libc6.1-dev 2.3.5-3, while 3.08.3-8 was built with gcc-4.0 4.0.1-6, binutils 2.16.1cvs20050902-1 and libc6.1-dev 2.3.5-5. Does anyone know of an alpha-related change in the toolchain between these versions, which could have caused this? Unfortunately, I wasn't able to get a meaningful backtrace with gdb (I only know that the segfault occurs at program startup). Thanks, Julien Cristau -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Tue, Oct 25, 2005 at 14:27:32 +0200, Julien Cristau wrote: > Hi, > > I can reproduce this bug with ocaml_3.08.3-8. > The toolchain package versions for this build on alpha were: > libc6.1-dev_2.3.5-5 > linux-kernel-headers_2.6.13+0rc3-1.1 > gcc-4.0_4.0.1-6 > binutils_2.16.1cvs20050902-1 > With a locally built ocamlopt.opt, I get this output from gdb: Starting program: /tmp/ocaml-3.08.3/debian/ocaml-native-compilers/usr/bin/ocamlopt.opt test.ml Program received signal SIGSEGV, Segmentation fault. 0x0001200028dc in caml_startup__code_begin () (gdb) where #0 0x0001200028dc in caml_startup__code_begin () #1 0x000120171f54 in caml_start_program () Cannot access memory at address 0x0 Cheers, Julien Cristau -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Mon, Oct 24, 2005 at 21:05:44 +0200, Falk Hueffner wrote: > Package: ocaml-native-compilers > Version: 3.08.3-8 > Severity: important > File: /usr/bin/ocamlopt.opt > > ocamlopt.opt segfaults on any input: > > [EMAIL PROTECTED]:/tmp% ocamlopt.opt test.ml > zsh: segmentation fault (core dumped) ocamlopt.opt test.ml > [EMAIL PROTECTED]:/tmp% ocamlopt.opt > zsh: segmentation fault (core dumped) ocamlopt.opt > > This breaks building geneweb and probably a whole bunch of other > programs. ocamlopt, ocamlc, and ocamlc.opt seem to work. > Hi, I can reproduce this bug with ocaml_3.08.3-8. The toolchain package versions for this build on alpha were: libc6.1-dev_2.3.5-5 linux-kernel-headers_2.6.13+0rc3-1.1 gcc-4.0_4.0.1-6 binutils_2.16.1cvs20050902-1 The bug does not seem to be reproducible with version 3.08.3-3 of the ocaml-native-compilers package, which was built with: libc6.1-dev_2.3.2.ds1-20 linux-kernel-headers_2.5.999-test7-bk-17 gcc-3.3_1:3.3.5-12 binutils_2.15-5 Cheers, Julien Cristau -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
> > > Christian, can you rebuild geneweb using bytecode on alpha, and downgrade > > > this > > > bug to important ? > > > > > > The bug actually *is* important and I do not really intent to make it > > "serious". > > Ah, ok. Still, you need to be able to build on alpha :) Done. I uploaded a new version which should build using bytecode on alpha if my debian/rules changes aren't wrong. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Tue, Oct 25, 2005 at 10:03:17AM +0200, Falk Hueffner wrote: > Christian Perrier <[EMAIL PROTECTED]> writes: > > > I'm not sure about the right way to recompile geneweb with bytecode > > on alpha. > > You can use native code, just not ocamlopt.opt. Just build with > ocamlopt. You might even do this everywhere, it's just a bit slower. Since ocamlopt.opt is itself built as nativecode with ocamlopt, it the former is broken it doesn't bode well for the fiability of the later. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
Christian Perrier <[EMAIL PROTECTED]> writes: > I'm not sure about the right way to recompile geneweb with bytecode > on alpha. You can use native code, just not ocamlopt.opt. Just build with ocamlopt. You might even do this everywhere, it's just a bit slower. -- Falk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Tue, Oct 25, 2005 at 09:14:57AM +0200, Christian Perrier wrote: > (Falk, please tell us if you don't want to be CC'ed to further answers) > > Quoting Sven Luther ([EMAIL PROTECTED]): > > On Tue, Oct 25, 2005 at 08:39:26AM +0200, Christian Perrier wrote: > > > Quoting Falk Hueffner ([EMAIL PROTECTED]): > > > > > > > This breaks building geneweb and probably a whole bunch of other > > > > > > Which could be ween as "breaks unrelated software" by the way. > > > > > > I'm not fond of overflated severities but, well, my pet package > > > (geneweb) is actually blocked by thisso I really hope that someone > > > will be able to take care of this. > > > > Christian, can you rebuild geneweb using bytecode on alpha, and downgrade > > this > > bug to important ? > > > The bug actually *is* important and I do not really intent to make it > "serious". Ah, ok. Still, you need to be able to build on alpha :) > I'm not sure about the right way to recompile geneweb with bytecode on > alpha. > > Actually, this is done in debian/rules with: > > PACKAGE=geneweb > WAY=$(shell if [ -f "/usr/bin/ocamlc.opt" ]; then echo "opt"; \ > else echo "out";\ > fi) > > > Then $WAY is used to compile one way or another. Just add a dpkg --arch == alpha or similar check, maybe using the cross compiler thingies. > I guess that adding a specific test for Alpha architecture here would > be the Right Hack. > > Something like: > > DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) > > ifeq ($(DEB_HOST_ARCH_OS),alpha) > WAY=out > else > WAY=$(shell if [ -f "/usr/bin/ocamlc.opt" ]; then echo "opt"; > \ > else echo "out";\ > fi) > endif Indeed. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
(Falk, please tell us if you don't want to be CC'ed to further answers) Quoting Sven Luther ([EMAIL PROTECTED]): > On Tue, Oct 25, 2005 at 08:39:26AM +0200, Christian Perrier wrote: > > Quoting Falk Hueffner ([EMAIL PROTECTED]): > > > > > This breaks building geneweb and probably a whole bunch of other > > > > Which could be ween as "breaks unrelated software" by the way. > > > > I'm not fond of overflated severities but, well, my pet package > > (geneweb) is actually blocked by thisso I really hope that someone > > will be able to take care of this. > > Christian, can you rebuild geneweb using bytecode on alpha, and downgrade this > bug to important ? The bug actually *is* important and I do not really intent to make it "serious". I'm not sure about the right way to recompile geneweb with bytecode on alpha. Actually, this is done in debian/rules with: PACKAGE=geneweb WAY=$(shell if [ -f "/usr/bin/ocamlc.opt" ]; then echo "opt"; \ else echo "out";\ fi) Then $WAY is used to compile one way or another. I guess that adding a specific test for Alpha architecture here would be the Right Hack. Something like: DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) ifeq ($(DEB_HOST_ARCH_OS),alpha) WAY=out else WAY=$(shell if [ -f "/usr/bin/ocamlc.opt" ]; then echo "opt"; \ else echo "out";\ fi) endif -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Tue, Oct 25, 2005 at 08:39:26AM +0200, Christian Perrier wrote: > Quoting Falk Hueffner ([EMAIL PROTECTED]): > > > This breaks building geneweb and probably a whole bunch of other > > Which could be ween as "breaks unrelated software" by the way. > > I'm not fond of overflated severities but, well, my pet package > (geneweb) is actually blocked by thisso I really hope that someone > will be able to take care of this. Christian, can you rebuild geneweb using bytecode on alpha, and downgrade this bug to important ? Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
On Tue, Oct 25, 2005 at 08:39:26AM +0200, Christian Perrier wrote: > Quoting Falk Hueffner ([EMAIL PROTECTED]): > > > This breaks building geneweb and probably a whole bunch of other > > Which could be ween as "breaks unrelated software" by the way. > > I'm not fond of overflated severities but, well, my pet package > (geneweb) is actually blocked by thisso I really hope that someone > will be able to take care of this. This used to work, since we didn't update ocaml since sarge was out, so i guess it is probably a breakage introduced by a binutils upgrade or new gcc or something. Someone from the alpha porting team needs to have a look, but since they don't even find time to work on the upcoming kernel packages, ... Anyway, ocaml 3.09 should be out RSN, and we will be upgrading all our packages to it, so i wouldn't lose time for etch/sid 3.08.3 builds. Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
Quoting Falk Hueffner ([EMAIL PROTECTED]): > This breaks building geneweb and probably a whole bunch of other Which could be ween as "breaks unrelated software" by the way. I'm not fond of overflated severities but, well, my pet package (geneweb) is actually blocked by thisso I really hope that someone will be able to take care of this. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#335578: ocamlopt.opt segfaults on Alpha
Package: ocaml-native-compilers Version: 3.08.3-8 Severity: important File: /usr/bin/ocamlopt.opt ocamlopt.opt segfaults on any input: [EMAIL PROTECTED]:/tmp% ocamlopt.opt test.ml zsh: segmentation fault (core dumped) ocamlopt.opt test.ml [EMAIL PROTECTED]:/tmp% ocamlopt.opt zsh: segmentation fault (core dumped) ocamlopt.opt This breaks building geneweb and probably a whole bunch of other programs. ocamlopt, ocamlc, and ocamlc.opt seem to work. Falk -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: alpha Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.13.2 Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages ocaml-native-compilers depends on: ii binutils 2.16.1cvs20050902-1 The GNU assembler, linker and bina ii gcc 4:4.0.2-1 The GNU C compiler ii libc6.1 2.3.5-7 GNU C Library: Shared libraries an ii libncurses5 5.5-1 Shared libraries for terminal hand ii ocaml-nox [ocaml-nox 3.08.3-8ML language implementation with a ocaml-native-compilers recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]