Nick Craig-Wood
Nick Craig-Wood
@zugzwang not currently!
Can you post a short example of the problem please? Some thing I can run preferably. Thanks
I couldn't make go-dappley compile :-( The problem with gmp must be here https://github.com/ncw/gmp/blob/22a058044a92d3096aec89da13b381dbb7606e42/int.go#L684-L699 `z.BitLen()` must be returning a negative number for the `make([]byte...)` to panic Which means `C.mpz_sizeinbase` must...
> @ncw > If `z` is a null pointer, will it happen? I tried with `z` null and calling `C.mpz_sizeinbase(nil, 2)` and they both give SEGV rather than anything else....
> > What version of libgmp do you have? > > v1.0.4 That seems very old, I'm using 6.1.2 from `dpkg -l | grep libgmp` > > Is there concurrency...
@mvrhov by default the go toolchain will link dynamically so the LGPL terms should apply. My reading about LGPL leads me to think that @cznic is correct - using a...
Here is the test binary on my machine showing the dynamic linking ``` $ ldd gmp.test linux-vdso.so.1 => (0x00007ffe8d5ab000) libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f8f0fc50000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8f0fa31000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6...
@mvrhov that sounds like a good plan. Fancy sending a pull request?
Can you write a testcase which shows this effect and attach to this issue or on play.golang.org? Or alternatively can I try the code you are using?
@vcabbage thanks for working out this issue. > I'd add a note to your docs that it's not safe to copy your Int and Rat types. That breaks the compatibility...