From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bignum branch Date: Sat, 11 Aug 2018 20:34:44 +0300 Message-ID: <83k1owlscr.fsf@gnu.org> References: <87o9fbbw1t.fsf@tromey.com> <86in4rgt1m.fsf@gmail.com> <83pnyyu0k1.fsf@gnu.org> <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> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1534008803 15701 195.159.176.226 (11 Aug 2018 17:33:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2018 17:33:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 11 19:33:19 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 1foXlO-0003zE-I6 for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2018 19:33:18 +0200 Original-Received: from localhost ([::1]:60951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foXnV-00014O-5q for ged-emacs-devel@m.gmane.org; Sat, 11 Aug 2018 13:35:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foXmp-0000yt-4T for emacs-devel@gnu.org; Sat, 11 Aug 2018 13:34:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foXmk-0000bM-7m for emacs-devel@gnu.org; Sat, 11 Aug 2018 13:34:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foXmk-0000bG-4Y; Sat, 11 Aug 2018 13:34:42 -0400 Original-Received: from [176.228.60.248] (port=3016 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1foXmj-0003JB-Dq; Sat, 11 Aug 2018 13:34:41 -0400 In-reply-to: <86va8gj12l.fsf@gmail.com> (message from Andy Moreton on Sat, 11 Aug 2018 17:54:42 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:228417 Archived-At: > 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