[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile 2.2.3 crashing on osx 10.11?
From: |
Dan Kegel |
Subject: |
Re: guile 2.2.3 crashing on osx 10.11? |
Date: |
Sun, 31 Dec 2017 17:53:59 -0800 |
On Sat, Dec 30, 2017 at 3:31 PM, Matt Wette <address@hidden> wrote:
>> On Dec 30, 2017, at 2:32 PM, Dan Kegel <address@hidden> wrote:
>> osx 10.11, though, crashes when I just evaluate (display (version)),
>> or sometimes while building.
>
> I have not seen that on macOS before, but previously ran into other issues.
> This may help to chase it down:
>
> build with use
> CFLAGS=-g LDFLAGS=-g ./configure --disable-shared --prefix=/opt/local
>
> in meta/gdb-uninstalled-guile, change:
> gdb --args ${top_builddir}/libguile/guile "$@"
> to
> lldb -- ${top_builddir}/libguile/guile "$@"
>
> and, IIRC, run meta/gdb-installed-guile
Thanks. Also had to do
sudo /usr/sbin/DevToolsSecurity --enable
Here's a backtrace:
* thread #1: tid = 0x1628f8, 0x00000001003e95be
libgmp.10.dylib`__gmpn_mul_1 + 94, queue = 'com.apple.main-thread',
stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
frame #0: 0x00000001003e95be libgmp.10.dylib`__gmpn_mul_1 + 94
libgmp.10.dylib`__gmpn_mul_1:
-> 0x1003e95be <+94>: mulxq (%rsi), %rbx, %rax
Guess what? This machine is a i7-3720QM (in a Macbook Pro 9,1), which
doesn't support MULX. (It's 2012 Ivy Bridge, which is just
pre-Haswell.)
$ gobjdump -d libgmp.dylib | grep mulx
confirms the presence of the mulx instruction.
So my gmp was built wrong for this machine. (There was a related
bugfix for low-end cpus in gmp 6.1.1, but I've got 6.1.2, and no
low-end cpus.)
Bit of a mystery, then, but nothing to do with guile.
- Dan