Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-07-20 Thread Ximin Luo
Edmund Grimley Evans: >> http://xcas.e.ujf-grenoble.fr/XCAS/viewtopic.php?p=8963#p8963 >> >> Do you have any suggestions on how to move forward? The easiest option is >> just to give the test two possible things to diff against, but this buries >> the issue and does not really solve it. > > That

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-07-20 Thread Ximin Luo
On Thu, 29 Jun 2017 20:40:26 +0100 Edmund Grimley Evans wrote: > This robopatch seems to fix the problem on arm64 with 48-bit addresses: > > perl -i -pe 's/longlong/ulonglong/g if /\(\s*longlong.*(<<|>>)/ && > !/gen\(longlong/;' src/*.cc > > The idea is to change the type whenever there seems t

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-06-29 Thread Edmund Grimley Evans
This robopatch seems to fix the problem on arm64 with 48-bit addresses: perl -i -pe 's/longlong/ulonglong/g if /\(\s*longlong.*(<<|>>)/ && !/gen\(longlong/;' src/*.cc The idea is to change the type whenever there seems to be a cast followed by a shift. The last condition is to avoid a couple of h

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-06-29 Thread Edmund Grimley Evans
So giac was supposed to be working now on arm64, but it failed on the buildd: https://buildd.debian.org/status/package.php?p=giac&suite=sid Having recently seen something similar I think I can guess what's happening. User virtual addresses on Linux arm64 may have 39, 42 or 48 bits, depending on

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-05-17 Thread Edmund Grimley Evans
I was able to build giac 1.2.3.25+dfsg1-3 on arm64 with this "patch": perl -i -pe 's/^#ifdef __x86_64__$/#if 1/;' src/gen.h perl -i -pe 's/^#ifndef __x86_64__$/#if 0/;' src/first.h Obviously that change would break it on 32-bit architectures. A proper fix might be to use something like ~(uintptr_

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-05-12 Thread Edmund Grimley Evans
On arm64, if you run under GDB and look at the address that faulted it's clear that the address has been truncated to 32 bits. And there's some obvious code in src/gen.h that looks as if it's truncating addresses to 32 bits on any architecture that isn't x86_64. However, I don't think gen.h is the

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-02-15 Thread Ximin Luo
On Mon, 13 Feb 2017 16:12:14 -0500 "Aaron M. Ucko" wrote: > [..] > > xvfb-run ../../src/icas "algo.tex" > ./algo.tex:4: Warning: Command not found: \textheight > /usr/share/hevea/hyperref.hva:65: Warning: Ignoring option: 'pdftex' > /usr/share/hevea/hyperref.hva:65: Warning: Ignoring opti

Bug#855078: giac: FTBFS: [algo.pdf] Error 139 (Segmentation fault)

2017-02-13 Thread Aaron M. Ucko
Source: giac Version: 1.2.3.25+dfsg1-1 Severity: important Justification: fails to build from source On several architectures, icas failed with a segmentation fault while attempting to produce doc/fr/algo.pdf -- e.g., on arm64, xvfb-run ../../src/icas "algo.tex" ./algo.tex:4: Warning: Command