From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: bignum branch Date: Sat, 11 Aug 2018 18:56:15 +0100 Message-ID: <86mutsiy80.fsf@gmail.com> References: <87o9fbbw1t.fsf@tromey.com> <86k1p59haq.fsf@gmail.com> <83va8osuz2.fsf@gnu.org> <87ftzrknyg.fsf@tromey.com> <87zhxwig5k.fsf@tromey.com> <86lg9gl7vy.fsf@gmail.com> <87tvo4i9em.fsf@tromey.com> <86k1ozl0yd.fsf@gmail.com> <83in4iojva.fsf@gnu.org> <86bmaasm39.fsf@gmail.com> <83a7puo8oq.fsf@gnu.org> <83zhxummef.fsf@gnu.org> <83lg9em1v6.fsf@gnu.org> <86r2j5q67t.fsf@gmail.com> <83r2j4lvyo.fsf@gnu.org> <86va8gj12l.fsf@gmail.com> <83k1owlscr.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534010106 3016 195.159.176.226 (11 Aug 2018 17:55:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2018 17:55:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 11 19:55:02 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foY6O-0000fG-Ol for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2018 19:55:00 +0200 Original-Received: from localhost ([::1]:32776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foY8V-0000Sp-9f for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2018 13:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foY7q-0000SY-NM for emacs-devel@gnu.org; Sat, 11 Aug 2018 13:56:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foY7m-0005X6-SF for emacs-devel@gnu.org; Sat, 11 Aug 2018 13:56:30 -0400 Original-Received: from [195.159.176.226] (port=55617 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foY7l-0005W0-J5 for emacs-devel@gnu.org; Sat, 11 Aug 2018 13:56:26 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1foY5b-0008KP-UG for emacs-devel@gnu.org; Sat, 11 Aug 2018 19:54:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:XZ2z5+BnTE5hzILowR81LYsuUeA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228418 Archived-At: On Sat 11 Aug 2018, Eli Zaretskii wrote: >> From: Andy Moreton >> 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 = () (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