[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bignum branch
From: |
Andy Moreton |
Subject: |
Re: bignum branch |
Date: |
Sat, 11 Aug 2018 18:56:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) |
On Sat 11 Aug 2018, Eli Zaretskii wrote:
>> From: Andy Moreton <address@hidden>
>> Date: Sat, 11 Aug 2018 17:54:42 +0100
>>
>> 3346 return make_fixnum (mpz_popcount (XBIGNUM (value)->value));
>> (gdb) s
>> __gmpz_popcount (__gmp_u=0x4c5ec60) at C:/msys64/mingw64/include/gmp.h:1844
>> 1844 if (__GMP_LIKELY (__gmp_usize > 0))
>> (gdb) s
>> 1845 __gmp_result = mpn_popcount (__gmp_u->_mp_d, __gmp_usize);
>> (gdb) stepi
>> 0x000000040016e405 1845 __gmp_result = mpn_popcount
>> (__gmp_u->_mp_d, __gmp_usize);
>> (gdb)
>> 0x000000046ace5dc0 in ?? ()
>> (gdb)
>>
>> Thread 1 received signal SIGSEGV, Segmentation fault.
>> 0x000000046ace5dc0 in ?? ()
>
> What do the following GDB commands show, in the crashing build?
>
> (gdb) disassemble __gmpz_popcount
> (gdb) ptype __gmpz_popcount
> (gdb) ptype __gmpn_popcount
Nothing useful :-(
Thread 1 hit Breakpoint 4, Flogcount (value=XIL(0x4bf8631)) at
C:/emacs/git/emacs/bignum/src/data.c:3340
3340 {
(gdb) disassemble __gmpz_popcount
No symbol "__gmpz_popcount" in current context.
(gdb) ptype __gmpz_popcount
No symbol "__gmpz_popcount" in current context.
(gdb) ptype __gmpn_popcount
type = <unknown return type> ()
(gdb)
Dependency Walker shows __gmpn_popcount at ordinal 306 in the export
table of libgmp-10.dll, and __gmpz_popcount at ordinal 561, so gdb
should be able to find them.
AndyM
- Re: bignum branch, (continued)
- Re: bignum branch, Andy Moreton, 2018/08/10
- Re: bignum branch, Eli Zaretskii, 2018/08/10
- Re: bignum branch, Andy Moreton, 2018/08/10
- Re: bignum branch, Eli Zaretskii, 2018/08/10
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Tom Tromey, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/11
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/11
- Re: bignum branch,
Andy Moreton <=
- Re: bignum branch, Eli Zaretskii, 2018/08/11
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/11
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/12
- Re: bignum branch, Andy Moreton, 2018/08/12
- Re: bignum branch, Eli Zaretskii, 2018/08/13
- Re: bignum branch, Andy Moreton, 2018/08/13
- Re: bignum branch, Eli Zaretskii, 2018/08/14
- Re: bignum branch, Andy Moreton, 2018/08/14