Re: bus error in ps2pdf
On 17/02/11 18:20, Julien Cristau wrote: > On Thu, Feb 17, 2011 at 18:12:25 +, c...@spamcop.net wrote: > >> >> I now have access to a Debian Sparc box, and I can reproduce the >> problem. The crash happens in the pthreads library, and I find it >> confusing that this should happen on Linux/Sparc, but no other >> platforms (that I'm aware of). Looking at the code, there's nothing >> immediately obvious, unless there is a bug packing unions into >> structs, causing a pointer alignment problem. Actually, that does >> seem to be the problem: the second union does not sit on a 64 bit >> aligned boundary. >> > Yes, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613642#17 Ah, cool. Very strange: that stuff doesn't seem to have changed since 8.71. Anyway, if you want to raise a bug over at bugs.ghostscript.com with the results of your investigation and assign it to me (chris.liddell (at) artifex.com), I'll make sure it gets addressed in our repos. As I said, in the immediate term, disabling the threading is a low risk, (currently) low impact workaround for this. Cheers, Chris -- To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d5d6ffa.2090...@spamcop.net
Re: bus error in ps2pdf
On Thu, Feb 17, 2011 at 18:12:25 +, c...@spamcop.net wrote: > > I now have access to a Debian Sparc box, and I can reproduce the > problem. The crash happens in the pthreads library, and I find it > confusing that this should happen on Linux/Sparc, but no other > platforms (that I'm aware of). Looking at the code, there's nothing > immediately obvious, unless there is a bug packing unions into > structs, causing a pointer alignment problem. Actually, that does > seem to be the problem: the second union does not sit on a 64 bit > aligned boundary. > Yes, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613642#17 Cheers, Julien -- To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110217182028.gz12...@radis.liafa.jussieu.fr
Re: bus error in ps2pdf
I now have access to a Debian Sparc box, and I can reproduce the problem. The crash happens in the pthreads library, and I find it confusing that this should happen on Linux/Sparc, but no other platforms (that I'm aware of). Looking at the code, there's nothing immediately obvious, unless there is a bug packing unions into structs, causing a pointer alignment problem. Actually, that does seem to be the problem: the second union does not sit on a 64 bit aligned boundary. Anyway, in the short term, the solution is to disable threading in Ghostscript (it's rarely used, and only if the caller actually asks for it). To do so, change the definition in the Makefile after configure (or in Makefile.in) of the SYNC setting. By default it is: SYNC=posync and changing it to: SYNC=nosync will disable threading. And Ghostscript should run as expected. I intend to add a "nosync" option to configure for the next release, and I will obviously investigate solving the alignment problem. HTH, Chris Quoting Jonathan Nieder : Hi, Stéphane Glondu wrote: ocaml-melt currently FTBFS on sparc [1] because of a bus error provoked by ps2pdf. The bus error is easily reproduced by running ps2pdf on the file available at [2]. This bug is not present with the previous version, 8.71~dfsg2-10. Thanks for reporting it. If anyone has time on a sparc, what might be useful is apt-get build-dep ghostscript git clone git://git.ghostscript.com/ghostscript.git cd ghostscript/gs # configure to minimize features (hopefully speeding up build) ./autogen.sh -C \ --disable-fontconfig \ --disable-freetype --disable-cups --disable-gtk \ --enable-dynamic --with-system-libtiff \ --without-ijs --without-jbig2dec --without-jasper make # [2] lib/ps2pdfwr /path/to/doc.ps git show -s HEAD If that reproduces the error, it could be reported at http://bugs.ghostscript.com and I'd be glad to hear about it. git bisect start git bisect bad HEAD git bisect good ghostscript-8.71 can guide through the bisection process afterwards to find the bad patch (which is hopefully an underalignment problem or similar). Any takers? Jonathan [1] https://buildd.debian.org/fetch.cgi?pkg=ocaml-melt&arch=sparc&ver=1.3.0-2&stamp=129769&file=log&as=raw [2] http://glondu.net/tmp/doc.ps -- To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110216115527.GA5516@elie -- To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110217181225.s58djobxck444wk0-...@webmail.spamcop.net
Re: bus error in ps2pdf
Quoting Jonathan Nieder : Hi, Stéphane Glondu wrote: ocaml-melt currently FTBFS on sparc [1] because of a bus error provoked by ps2pdf. The bus error is easily reproduced by running ps2pdf on the file available at [2]. This bug is not present with the previous version, 8.71~dfsg2-10. Thanks for reporting it. If anyone has time on a sparc, what might be useful is apt-get build-dep ghostscript git clone git://git.ghostscript.com/ghostscript.git cd ghostscript/gs # configure to minimize features (hopefully speeding up build) ./autogen.sh -C \ --disable-fontconfig \ --disable-freetype --disable-cups --disable-gtk \ --enable-dynamic --with-system-libtiff \ --without-ijs --without-jbig2dec --without-jasper As of Ghostscript 9.00 --disable-freetype is essentially an unsupported configuration. We've switched to freetype as the default font scaler/renderer and whilst I doubt it will make a difference in this case, we're unlikely to investigate any bugs that show without freetype, but not with freetype. I'd be happy to look into this, but I don't have access to a Debian/Sparc system (my Sparc box has some hardware in it that doesn't play nice with Linux). Also, I'm not entirely sure what the status of the Ghostscript git mirror is currently - we currently use Subversion as the "canonical" source repository (not to be confused with the company behind Ubuntu!), and the person who used to look after the git mirror is no longer involved in GS development. Chris P.S. Oh yes, I'm a Ghostscript developer, by the way. -- To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110216131255.6vl40165ck4kk4k0-...@webmail.spamcop.net
Re: bus error in ps2pdf
Hi, Stéphane Glondu wrote: > ocaml-melt currently FTBFS on sparc [1] because of a bus error > provoked by ps2pdf. The bus error is easily reproduced by running > ps2pdf on the file available at [2]. This bug is not present with the > previous version, 8.71~dfsg2-10. Thanks for reporting it. If anyone has time on a sparc, what might be useful is apt-get build-dep ghostscript git clone git://git.ghostscript.com/ghostscript.git cd ghostscript/gs # configure to minimize features (hopefully speeding up build) ./autogen.sh -C \ --disable-fontconfig \ --disable-freetype --disable-cups --disable-gtk \ --enable-dynamic --with-system-libtiff \ --without-ijs --without-jbig2dec --without-jasper make # [2] lib/ps2pdfwr /path/to/doc.ps git show -s HEAD If that reproduces the error, it could be reported at http://bugs.ghostscript.com and I'd be glad to hear about it. git bisect start git bisect bad HEAD git bisect good ghostscript-8.71 can guide through the bisection process afterwards to find the bad patch (which is hopefully an underalignment problem or similar). Any takers? Jonathan > [1] > https://buildd.debian.org/fetch.cgi?pkg=ocaml-melt&arch=sparc&ver=1.3.0-2&stamp=129769&file=log&as=raw > [2] http://glondu.net/tmp/doc.ps -- To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110216115527.GA5516@elie