From unknown Fri Aug 15 02:05:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75481 <75481@debbugs.gnu.org> To: bug#75481 <75481@debbugs.gnu.org> Subject: Status: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer Reply-To: bug#75481 <75481@debbugs.gnu.org> Date: Fri, 15 Aug 2025 09:05:01 +0000 retitle 75481 31.0.50; Segfault on Windows 11 when using Easy Customization= buffer reassign 75481 emacs submitter 75481 Amir Rajan severity 75481 normal tag 75481 unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 10 16:08:58 2025 Received: (at submit) by debbugs.gnu.org; 10 Jan 2025 21:08:58 +0000 Received: from localhost ([127.0.0.1]:59003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWMFV-0000hv-CS for submit@debbugs.gnu.org; Fri, 10 Jan 2025 16:08:58 -0500 Received: from lists.gnu.org ([2001:470:142::17]:59418) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWKrM-0004KU-HT for submit@debbugs.gnu.org; Fri, 10 Jan 2025 14:39:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWKrF-00082z-PV for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 14:39:49 -0500 Received: from mail-yb1-xb35.google.com ([2607:f8b0:4864:20::b35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWKrD-0007gs-7X for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2025 14:39:49 -0500 Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-e3a1cfeb711so3589709276.0 for ; Fri, 10 Jan 2025 11:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amirrajan-net.20230601.gappssmtp.com; s=20230601; t=1736537985; x=1737142785; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=9IjwLP0ApDYldXhqIBq2O8WCZvVS5eslpUJM5j36yps=; b=T69Ls2kURDC+plFy4OFY2nWUQQmDHhlhjFUeZjEi4O+NbwhqF0p/TWX3KzFQElD6dF kSFgpaT4CGxslHEEoc0akkXGdOzKTNYS8xwMJyd8S5mQKWeuYUf1WWR5/EBR3IEPqEQj aqUGzNE2YBy5UpAoFVK9hN6mWf+hCCw9kxPib18dIRJLL4O+7LDyG6gShezsiNYIe8qk xNN3YIXsWLCDtq1IjJzmcJNbofX8VLvPgmQD/8cclJE0utlD0Bz+aQ8ji2UC8WrF3BV2 fB5ORsXs0iTlqnQs311ENe1Bbj1GZLDj3p8gFlQy9S75SSrMWBgzXhdt486fLc5oCZb0 Xq4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736537985; x=1737142785; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9IjwLP0ApDYldXhqIBq2O8WCZvVS5eslpUJM5j36yps=; b=k40g/HjX13RgCHRMPYSOXIiwO9d6ipoBE5mfdsPIxKcgHTr8+P1fApNc81LADhTKzu PqH7O+0zGVj1jwSVE21S05WPGqu/bfi21BtvGrNWI8eROWCOog8qRLDwikozthdTK9hf 2eLoLu+xOqSwv92KnVYlgP9UVhTBNNjIBwTpqZgjV91IvlqJ5/xQXK9KiaX7ZIwgiPSF S8V3uhdfuDDI2BFeKJCkFKiDrm4P7T6OHwLfoxnJ1jIsF04LeoH+S4P8pDXqJCJD1jE8 cGGS9oBdDSMBSZAJkQ1lOEZFtsOYeRNLNDQ9PVa0+2lZVxni9rO+PvROX+5gFV1FyIXt OdfA== X-Gm-Message-State: AOJu0YyKOEH3PnB3qy0/bzmG6Gbtkh/37VLxIWFReDlwa6vdXb+Vyf9y W/CDH0ZQ4dJBZqfohRki+slxkSwWfSxY6ZhaNMSc8HZ1MtaxsOOOS9UGocYSv1ehCBFP0Vz/mIi 0H3tDGMEsMYHIjBjgP1hNgr+j3hRWJbbO/MbuUc2RryU2f5m1VTIUcA== X-Gm-Gg: ASbGncuNcDlITffyuFAl6NoGqpm1vCEG1UBQCLfP0TEJlU31PCpMMo4TqQppufiZygS gy8Q+6aEfq0tNC3Kl72qfRsSbmJOKMOLQQvI= X-Google-Smtp-Source: AGHT+IGVmlYFfaoWA8z6suF2mtAgfhOu1zNHcOQuCMvVdX4YgalVImnl3fgAJjm6Qozr+IKXh6eSMB+EH8ZPwSh5l0A= X-Received: by 2002:a05:690c:74c3:b0:6f5:241f:2725 with SMTP id 00721157ae682-6f53121d675mr103769947b3.18.1736537985275; Fri, 10 Jan 2025 11:39:45 -0800 (PST) MIME-Version: 1.0 From: Amir Rajan Date: Fri, 10 Jan 2025 13:39:34 -0600 X-Gm-Features: AbW1kvYaorcErv6zm7n9QtLiheXop1CEc4cQ4-spTnWQY29Yw0d3OFCyxN6DJH8 Message-ID: Subject: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000c07842062b5f417c" Received-SPF: pass client-ip=2607:f8b0:4864:20::b35; envelope-from=ar@amirrajan.net; helo=mail-yb1-xb35.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 10 Jan 2025 16:08:52 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000c07842062b5f417c Content-Type: text/plain; charset="UTF-8" In GNU Emacs 31.0.50 (build 1, x86_64-w64-mingw32) of 2025-01-10 built on AMIRALIRAJA2ACF Repository revision: 42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4 Repository branch: master System Description: M1 Mac Book Pro running Windows 11 VM using Parallels Configured using: 'configure --enable-checking --prefix=/c/emacs --without-dbus 'CFLAGS=-ggdb3 -O0' LDFLAGS=-ggdb3' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: ENU locale-coding-system: cp1252 Minimum repro: emacs -Q M-x customize-mode Type anything into search box Press Enter Backtrace: addr2line -C -f -i -p -e ./src/emacs.exe < ./emacs_backtrace.txt ?? ??:0 ?? ??:0 ?? ??:0 w32_backtrace at C:/other-projects/emacs/src/w32fns.c:11571 emacs_abort at C:/other-projects/emacs/src/w32fns.c:11610 terminate_due_to_signal at C:/other-projects/emacs/src/emacs.c:464 handle_fatal_signal at C:/other-projects/emacs/src/sysdep.c:1799 deliver_thread_signal at C:/other-projects/emacs/src/sysdep.c:1791 deliver_fatal_thread_signal at C:/other-projects/emacs/src/sysdep.c:1811 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 rescale_for_division at C:/other-projects/emacs/src/floatfns.c:387 rounding_driver at C:/other-projects/emacs/src/floatfns.c:442 Ffloor at C:/other-projects/emacs/src/floatfns.c:536 funcall_subr at C:/other-projects/emacs/src/eval.c:3152 exec_byte_code at C:/other-projects/emacs/src/bytecode.c:813 funcall_lambda at C:/other-projects/emacs/src/eval.c:3241 funcall_general at C:/other-projects/emacs/src/eval.c:3033 Ffuncall at C:/other-projects/emacs/src/eval.c:3082 Fapply at C:/other-projects/emacs/src/eval.c:2754 funcall_subr at C:/other-projects/emacs/src/eval.c:3173 funcall_general at C:/other-projects/emacs/src/eval.c:3029 Ffuncall at C:/other-projects/emacs/src/eval.c:3082 ?? ??:0 funcall_subr at C:/other-projects/emacs/src/eval.c:3150 funcall_general at C:/other-projects/emacs/src/eval.c:3029 Ffuncall at C:/other-projects/emacs/src/eval.c:3082 timer_check_2 at C:/other-projects/emacs/src/keyboard.c:4804 timer_check at C:/other-projects/emacs/src/keyboard.c:4869 readable_events at C:/other-projects/emacs/src/keyboard.c:3601 get_input_pending at C:/other-projects/emacs/src/keyboard.c:7872 detect_input_pending_run_timers at C:/other-projects/emacs/src/keyboard.c:11576 wait_reading_process_output at C:/other-projects/emacs/src/process.c:5856 sit_for at C:/other-projects/emacs/src/dispnew.c:6889 read_char at C:/other-projects/emacs/src/keyboard.c:2925 read_key_sequence at C:/other-projects/emacs/src/keyboard.c:10746 command_loop_1 at C:/other-projects/emacs/src/keyboard.c:1424 internal_condition_case at C:/other-projects/emacs/src/eval.c:1603 command_loop_2 at C:/other-projects/emacs/src/keyboard.c:1163 internal_catch at C:/other-projects/emacs/src/eval.c:1286 command_loop at C:/other-projects/emacs/src/keyboard.c:1141 recursive_edit_1 at C:/other-projects/emacs/src/keyboard.c:747 Frecursive_edit at C:/other-projects/emacs/src/keyboard.c:830 main at C:/other-projects/emacs/src/emacs.c:2635 __tmainCRTStartup at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:266 mainCRTStartup at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:185 __start at C:/other-projects/emacs/src/w32proc.c:158 ?? ??:0 ?? ??:0 ?? ??:0 Notes: Updating the rounding_driver function in ./src/floatfns.c from Emacs 26 resolved the issue. diff --git a/src/floatfns.c b/src/floatfns.c index 4492815c765..26c2e15da05 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -400,48 +400,79 @@ rescale_for_division (Lisp_Object n, mpz_t *t, int nscale, int dscale) /* the rounding functions */ +static bool +integer_value (Lisp_Object a) +{ + if (FLOATP (a)) + { + double d = XFLOAT_DATA (a); + return d == floor (d) && isfinite (d); + } + return true; +} + static Lisp_Object -rounding_driver (Lisp_Object n, Lisp_Object d, +rounding_driver (Lisp_Object arg, Lisp_Object divisor, double (*double_round) (double), void (*int_divide) (mpz_t, mpz_t const, mpz_t const), EMACS_INT (*fixnum_divide) (EMACS_INT, EMACS_INT)) { - CHECK_NUMBER (n); + CHECK_NUMBER (arg); - if (NILP (d)) - return FLOATP (n) ? double_to_integer (double_round (XFLOAT_DATA (n))) : n; - - CHECK_NUMBER (d); - - int dscale = 0; - if (FIXNUMP (d)) + double d; + if (NILP (divisor)) { - if (XFIXNUM (d) == 0) - xsignal0 (Qarith_error); - - /* Divide fixnum by fixnum specially, for speed. */ - if (FIXNUMP (n)) - return make_int (fixnum_divide (XFIXNUM (n), XFIXNUM (d))); + if (! FLOATP (arg)) + return arg; + d = XFLOAT_DATA (arg); } - else if (FLOATP (d)) + else { - if (XFLOAT_DATA (d) == 0) - xsignal0 (Qarith_error); - dscale = double_integer_scale (XFLOAT_DATA (d)); - } + CHECK_NUMBER (divisor); + if (integer_value (arg) && integer_value (divisor)) + { + /* Divide as integers. Converting to double might lose + info, even for fixnums; also see the FIXME below. */ - int nscale = FLOATP (n) ? double_integer_scale (XFLOAT_DATA (n)) : 0; + if (FLOATP (arg)) + arg = double_to_integer (XFLOAT_DATA (arg)); + if (FLOATP (divisor)) + divisor = double_to_integer (XFLOAT_DATA (divisor)); - /* If the numerator is finite and the denominator infinite, the - quotient is zero and there is no need to try the impossible task - of rescaling the denominator. */ - if (dscale == DBL_MANT_DIG - DBL_MIN_EXP + 1 && nscale < dscale) - return make_fixnum (0); + if (FIXNUMP (divisor)) + { + if (XFIXNUM (divisor) == 0) + xsignal0 (Qarith_error); + if (FIXNUMP (arg)) + return make_int (fixnum_divide (XFIXNUM (arg), + XFIXNUM (divisor))); + } + int_divide (mpz[0], + ,*bignum_integer (&mpz[0], arg), + ,*bignum_integer (&mpz[1], divisor)); + return make_integer_mpz (); + } - int_divide (mpz[0], - *rescale_for_division (n, &mpz[0], nscale, dscale), - *rescale_for_division (d, &mpz[1], dscale, nscale)); - return make_integer_mpz (); + double f1 = XFLOATINT (arg); + double f2 = XFLOATINT (divisor); + if (! IEEE_FLOATING_POINT && f2 == 0) + xsignal0 (Qarith_error); + /* FIXME: This division rounds, so the result is double-rounded. */ + d = f1 / f2; + } + + /* Round, coarsely test for fixnum overflow before converting to + EMACS_INT (to avoid undefined C behavior), and then exactly test + for overflow after converting (as FIXNUM_OVERFLOW_P is inaccurate + on floats). */ + double dr = double_round (d); + if (fabs (dr) < 2 * (MOST_POSITIVE_FIXNUM + 1)) + { + EMACS_INT ir = dr; + if (! FIXNUM_OVERFLOW_P (ir)) + return make_fixnum (ir); + } + return double_to_integer (dr); } static EMACS_INT --000000000000c07842062b5f417c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In GNU Emacs 31.0.50 (build = 1, x86_64-w64-mingw32) of 2025-01-10 built on AMIRALIRAJA2ACF
Repository= revision: 42a5ac3b513ff03c64c9609fc7e79c2b7932b2a4
Repository branch: m= aster
System Description: M1 Mac Book Pro running Windows 11 VM using Pa= rallels

Configured using:
=C2=A0'configure --enable-checking = --prefix=3D/c/emacs --without-dbus
=C2=A0'CFLAGS=3D-ggdb3 -O0' L= DFLAGS=3D-ggdb3'

Configured features:
ACL GIF GMP GNUTLS HARF= BUZZ JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG= RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XP= M ZLIB

Important settings:
=C2=A0 value of $LC_CTYPE: en_US.UTF-8=
=C2=A0 value of $LANG: ENU
=C2=A0 locale-coding-system: cp1252
Minimum repro:
=C2=A0 emacs -Q
=C2=A0 M-x customize-mode
=C2=A0 = Type anything into search box
=C2=A0 Press Enter

Backtrace:
= =C2=A0 addr2line -C -f -i -p -e ./src/emacs.exe < ./emacs_backtrace.txt<= br>=C2=A0 ?? ??:0
=C2=A0 ?? ??:0
=C2=A0 ?? ??:0
=C2=A0 w32_backtra= ce at C:/other-projects/emacs/src/w32fns.c:11571
=C2=A0 emacs_abort at C= :/other-projects/emacs/src/w32fns.c:11610
=C2=A0 terminate_due_to_signal= at C:/other-projects/emacs/src/emacs.c:464
=C2=A0 handle_fatal_signal a= t C:/other-projects/emacs/src/sysdep.c:1799
=C2=A0 deliver_thread_signal= at C:/other-projects/emacs/src/sysdep.c:1791
=C2=A0 deliver_fatal_threa= d_signal at C:/other-projects/emacs/src/sysdep.c:1811
=C2=A0 ?? ??:0
= =C2=A0 ?? ??:0
=C2=A0 ?? ??:0
=C2=A0 ?? ??:0
=C2=A0 ?? ??:0
=C2= =A0 rescale_for_division at C:/other-projects/emacs/src/floatfns.c:387
= =C2=A0 rounding_driver at C:/other-projects/emacs/src/floatfns.c:442
=C2= =A0 Ffloor at C:/other-projects/emacs/src/floatfns.c:536
=C2=A0 funcall_= subr at C:/other-projects/emacs/src/eval.c:3152
=C2=A0 exec_byte_code at= C:/other-projects/emacs/src/bytecode.c:813
=C2=A0 funcall_lambda at C:/= other-projects/emacs/src/eval.c:3241
=C2=A0 funcall_general at C:/other-= projects/emacs/src/eval.c:3033
=C2=A0 Ffuncall at C:/other-projects/emac= s/src/eval.c:3082
=C2=A0 Fapply at C:/other-projects/emacs/src/eval.c:27= 54
=C2=A0 funcall_subr at C:/other-projects/emacs/src/eval.c:3173
=C2= =A0 funcall_general at C:/other-projects/emacs/src/eval.c:3029
=C2=A0 Ff= uncall at C:/other-projects/emacs/src/eval.c:3082
=C2=A0 ?? ??:0
=C2= =A0 funcall_subr at C:/other-projects/emacs/src/eval.c:3150
=C2=A0 funca= ll_general at C:/other-projects/emacs/src/eval.c:3029
=C2=A0 Ffuncall at= C:/other-projects/emacs/src/eval.c:3082
=C2=A0 timer_check_2 at C:/othe= r-projects/emacs/src/keyboard.c:4804
=C2=A0 timer_check at C:/other-proj= ects/emacs/src/keyboard.c:4869
=C2=A0 readable_events at C:/other-projec= ts/emacs/src/keyboard.c:3601
=C2=A0 get_input_pending at C:/other-projec= ts/emacs/src/keyboard.c:7872
=C2=A0 detect_input_pending_run_timers at C= :/other-projects/emacs/src/keyboard.c:11576
=C2=A0 wait_reading_process_= output at C:/other-projects/emacs/src/process.c:5856
=C2=A0 sit_for at C= :/other-projects/emacs/src/dispnew.c:6889
=C2=A0 read_char at C:/other-p= rojects/emacs/src/keyboard.c:2925
=C2=A0 read_key_sequence at C:/other-p= rojects/emacs/src/keyboard.c:10746
=C2=A0 command_loop_1 at C:/other-pro= jects/emacs/src/keyboard.c:1424
=C2=A0 internal_condition_case at C:/oth= er-projects/emacs/src/eval.c:1603
=C2=A0 command_loop_2 at C:/other-proj= ects/emacs/src/keyboard.c:1163
=C2=A0 internal_catch at C:/other-project= s/emacs/src/eval.c:1286
=C2=A0 command_loop at C:/other-projects/emacs/s= rc/keyboard.c:1141
=C2=A0 recursive_edit_1 at C:/other-projects/emacs/sr= c/keyboard.c:747
=C2=A0 Frecursive_edit at C:/other-projects/emacs/src/k= eyboard.c:830
=C2=A0 main at C:/other-projects/emacs/src/emacs.c:2635=C2=A0 __tmainCRTStartup at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.= c:266
=C2=A0 mainCRTStartup at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/cr= texe.c:185
=C2=A0 __start at C:/other-projects/emacs/src/w32proc.c:158=C2=A0 ?? ??:0
=C2=A0 ?? ??:0
=C2=A0 ?? ??:0

Notes:
Updat= ing the rounding_driver function in ./src/floatfns.c from Emacs 26 resolved= the issue.

diff --git a/src/floatfns.c b/src/floatfns.c
index 4= 492815c765..26c2e15da05 100644
--- a/src/floatfns.c
+++ b/src/floatfn= s.c
@@ -400,48 +400,79 @@ rescale_for_division (Lisp_Object n, mpz_t *t,= int nscale, int dscale)

=C2=A0/* the rounding functions =C2=A0*/
+static bool
+integer_value (Lisp_Object a)
+{
+ =C2=A0if (FL= OATP (a))
+ =C2=A0 =C2=A0{
+ =C2=A0 =C2=A0 =C2=A0double d =3D XFLOAT_= DATA (a);
+ =C2=A0 =C2=A0 =C2=A0return d =3D=3D floor (d) && isf= inite (d);
+ =C2=A0 =C2=A0}
+ =C2=A0return true;
+}
+
=C2=A0= static Lisp_Object
-rounding_driver (Lisp_Object n, Lisp_Object d,
+r= ounding_driver (Lisp_Object arg, Lisp_Object divisor,
=C2=A0 double (*= double_round) (double),
=C2=A0 void (*int_divide) (mpz_t, mpz_t const,= mpz_t const),
=C2=A0 EMACS_INT (*fixnum_divide) (EMACS_INT, EMACS_INT= ))
=C2=A0{
- =C2=A0CHECK_NUMBER (n);
+ =C2=A0CHECK_NUMBER (arg);
- =C2=A0if (NILP (d))
- =C2=A0 =C2=A0return FLOATP (n) ? double_to= _integer (double_round (XFLOAT_DATA (n))) : n;
-
- =C2=A0CHECK_NUMBER= (d);
-
- =C2=A0int dscale =3D 0;
- =C2=A0if (FIXNUMP (d))
+ = =C2=A0double d;
+ =C2=A0if (NILP (divisor))
=C2=A0 =C2=A0 =C2=A0{
= - =C2=A0 =C2=A0 =C2=A0if (XFIXNUM (d) =3D=3D 0)
- xsignal0 (Qarith_error= );
-
- =C2=A0 =C2=A0 =C2=A0/* Divide fixnum by fixnum specially, for = speed. =C2=A0*/
- =C2=A0 =C2=A0 =C2=A0if (FIXNUMP (n))
- return make_= int (fixnum_divide (XFIXNUM (n), XFIXNUM (d)));
+ =C2=A0 =C2=A0 =C2=A0if= (! FLOATP (arg))
+ return arg;
+ =C2=A0 =C2=A0 =C2=A0d =3D XFLOAT_DA= TA (arg);
=C2=A0 =C2=A0 =C2=A0}
- =C2=A0else if (FLOATP (d))
+ =C2= =A0else
=C2=A0 =C2=A0 =C2=A0{
- =C2=A0 =C2=A0 =C2=A0if (XFLOAT_DATA (= d) =3D=3D 0)
- xsignal0 (Qarith_error);
- =C2=A0 =C2=A0 =C2=A0dscale = =3D double_integer_scale (XFLOAT_DATA (d));
- =C2=A0 =C2=A0}
+ =C2=A0= =C2=A0 =C2=A0CHECK_NUMBER (divisor);
+ =C2=A0 =C2=A0 =C2=A0if (integer_= value (arg) && integer_value (divisor))
+ {
+ =C2=A0/* Divid= e as integers.=C2=A0 Converting to double might lose
+ =C2=A0 =C2=A0 in= fo, even for fixnums; also see the FIXME below. =C2=A0*/

- =C2=A0int= nscale =3D FLOATP (n) ? double_integer_scale (XFLOAT_DATA (n)) : 0;
+ = =C2=A0if (FLOATP (arg))
+ =C2=A0 =C2=A0arg =3D double_to_integer (XFLOA= T_DATA (arg));
+ =C2=A0if (FLOATP (divisor))
+ =C2=A0 =C2=A0divisor= =3D double_to_integer (XFLOAT_DATA (divisor));

- =C2=A0/* If the nu= merator is finite and the denominator infinite, the
- =C2=A0 =C2=A0 quot= ient is zero and there is no need to try the impossible task
- =C2=A0 = =C2=A0 of rescaling the denominator. =C2=A0*/
- =C2=A0if (dscale =3D=3D = DBL_MANT_DIG - DBL_MIN_EXP + 1 && nscale < dscale)
- =C2=A0 = =C2=A0return make_fixnum (0);
+ =C2=A0if (FIXNUMP (divisor))
+ =C2= =A0 =C2=A0{
+ =C2=A0 =C2=A0 =C2=A0if (XFIXNUM (divisor) =3D=3D 0)
+ = xsignal0 (Qarith_error);
+ =C2=A0 =C2=A0 =C2=A0if (FIXNUMP (arg))
+= return make_int (fixnum_divide (XFIXNUM (arg),
+ XFIXNUM (divisor= )));
+ =C2=A0 =C2=A0}
+ =C2=A0int_divide (mpz[0],
+ =C2=A0 =C2= =A0 =C2=A0,*bignum_integer (&mpz[0], arg),
+ =C2=A0 =C2=A0 =C2=A0,= *bignum_integer (&mpz[1], divisor));
+ =C2=A0return make_integer_mp= z ();
+ }

- =C2=A0int_divide (mpz[0],
- =C2=A0 =C2=A0 =C2=A0*= rescale_for_division (n, &mpz[0], nscale, dscale),
- =C2=A0 =C2=A0 = =C2=A0*rescale_for_division (d, &mpz[1], dscale, nscale));
- =C2=A0r= eturn make_integer_mpz ();
+ =C2=A0 =C2=A0 =C2=A0double f1 =3D XFLOATINT= (arg);
+ =C2=A0 =C2=A0 =C2=A0double f2 =3D XFLOATINT (divisor);
+ = =C2=A0 =C2=A0 =C2=A0if (! IEEE_FLOATING_POINT && f2 =3D=3D 0)
+ = xsignal0 (Qarith_error);
+ =C2=A0 =C2=A0 =C2=A0/* FIXME: This division r= ounds, so the result is double-rounded. =C2=A0*/
+ =C2=A0 =C2=A0 =C2=A0d= =3D f1 / f2;
+ =C2=A0 =C2=A0}
+
+ =C2=A0/* Round, coarsely test f= or fixnum overflow before converting to
+ =C2=A0 =C2=A0 EMACS_INT (to av= oid undefined C behavior), and then exactly test
+ =C2=A0 =C2=A0 for ove= rflow after converting (as FIXNUM_OVERFLOW_P is inaccurate
+ =C2=A0 =C2= =A0 on floats). =C2=A0*/
+ =C2=A0double dr =3D double_round (d);
+ = =C2=A0if (fabs (dr) < 2 * (MOST_POSITIVE_FIXNUM + 1))
+ =C2=A0 =C2=A0= {
+ =C2=A0 =C2=A0 =C2=A0EMACS_INT ir =3D dr;
+ =C2=A0 =C2=A0 =C2=A0if= (! FIXNUM_OVERFLOW_P (ir))
+ return make_fixnum (ir);
+ =C2=A0 =C2= =A0}
+ =C2=A0return double_to_integer (dr);
=C2=A0}

=C2=A0stat= ic EMACS_INT

--000000000000c07842062b5f417c-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 02:51:53 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 07:51:54 +0000 Received: from localhost ([127.0.0.1]:41185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWWHh-0004LK-Mv for submit@debbugs.gnu.org; Sat, 11 Jan 2025 02:51:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34978) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWWHf-0004Kz-Ch for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 02:51:52 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWWHY-0003XM-TS; Sat, 11 Jan 2025 02:51:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OeMTPjpEUjPG5kyB3DY5/cnF403mQbVXbaEweSY+yxE=; b=XGHuz/knVvsQ t8434P5DPMnPyrrWekoRl6JGIh9Vt2tJpmzpzfVXBXqjFaJDoDMXyRFzFGclcMDfj/+2ZAC/Zj3Xt 3nP/B+cugnvdx0h0ikMUnfBJS4V4m6SbagIHZq2wZL8Xlud1UyZIuFWT0KMTu0X9iOgNB6xmVGrUF 26M6eyaNa/SLAQJmaezkW/ThR8maVa98hBysrMf4zm2YbO6LbG0PiuqIWV7i+AzVxmkdeUVygwy4a ILts2iwK9cL0VUtiu/D5VgmkrNQLMIIbCJCe//zH+zZXEb0JDnjN8tykzCDwqXwqWUUizTnDm7BrT WfACOkk+lDQ7Xk5KtXcBow==; Date: Sat, 11 Jan 2025 09:51:41 +0200 Message-Id: <86tta5zt2q.fsf@gnu.org> From: Eli Zaretskii To: Amir Rajan In-Reply-To: (message from Amir Rajan on Fri, 10 Jan 2025 13:39:34 -0600) Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer References: X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) > From: Amir Rajan > Date: Fri, 10 Jan 2025 13:39:34 -0600 > > Minimum repro: > emacs -Q > M-x customize-mode > Type anything into search box > Press Enter When I type "M-x customize-mode" after launching "emacs -Q", Emacs prompts me for mode. What should I type at that prompt? Because I cannot see any search box unless I specify some mode. IOW, could you please make the reproducible recipe complete with all the details? > Updating the rounding_driver function in ./src/floatfns.c from Emacs 26 resolved the issue. You mean, you reverted the changes in rounding_driver that were made since Emacs 26? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 03:24:11 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 08:24:11 +0000 Received: from localhost ([127.0.0.1]:41220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWWmw-00060b-PA for submit@debbugs.gnu.org; Sat, 11 Jan 2025 03:24:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46880) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWWmu-00060O-Va for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 03:24:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWWmp-00076O-8y; Sat, 11 Jan 2025 03:24:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8e9j+/nDcOvqbdMkYCrQIgXavQMetqwPHJ5cp9dTL0A=; b=foSipwo4nvMH nvXFOmXrXsnVvRJAOWGFjIvkm2cLGVCMayY33eYFmc92dZNjXkrs5QTtW8hjM6wt7U6Ig9WyYfvwO gu1O0gmyhMEzotFII4I+HvwKuBIe4uNCsN5f9U5imZwrHlNfk/9NjDNdofNbFzbl/8X8ylcGmhGlk GZo7kob2qEgsPZsjKfbTalukom9Pt2NL9yz4pArxEaACI7uZ+UlGZdKxDIe6SJjFnx6VbLwDH6JL2 95bjxLGeHt4ffbSIfSsmFZrByWoD82oAWTogdVK+pkUUtF5NaRSIAU3vAyELuUO/rnb5aPJZSTeKc 6emq79HyFFqzJb5StP93jQ==; Date: Sat, 11 Jan 2025 10:24:00 +0200 Message-Id: <86r059zrkv.fsf@gnu.org> From: Eli Zaretskii To: Amir Rajan In-Reply-To: (message from Amir Rajan on Sat, 11 Jan 2025 01:52:43 -0600) Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer References: <86tta5zt2q.fsf@gnu.org> X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) [Please use Reply All to reply, to keep the bug tracker CC'ed.] > From: Amir Rajan > Date: Sat, 11 Jan 2025 01:52:43 -0600 > > You can provide any mode to get to the customization box I tried text-mode and emacs-lisp-mode, but I don't get any crash. By "search box" do you mean the one after the first 3 lines in the *Customize Group: Text* buffer, the one which says "Search" on the right? If so, what did you type there? Alternatively, can run Emacs under GDB, and when it crashes, show the arguments to 'floor'? (Let me know if you need instructions for how to do that in GDB.) From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 03:26:26 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 08:26:26 +0000 Received: from localhost ([127.0.0.1]:41227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWWp7-0006AW-Jq for submit@debbugs.gnu.org; Sat, 11 Jan 2025 03:26:25 -0500 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]:48554) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tWWp4-0006A8-Sw for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 03:26:23 -0500 Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-e3983426f80so4396646276.1 for <75481@debbugs.gnu.org>; Sat, 11 Jan 2025 00:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amirrajan-net.20230601.gappssmtp.com; s=20230601; t=1736583977; x=1737188777; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I8zd5jFhMD3yHa1h+0qW63ls2QYkwvh+H2gTVpQwGWQ=; b=xCkQpKAaezRtgAnmA6RntzxsY+EQhIp/Km1atiV0bKj56+30taRLBfq8IR2HRIAxfG GieUKFGB0etqqjv3ZM3l3DYWuXdC1yMCcJRxmMVHM763Eh3CYGLst3lmAtfk+s37pgQ3 7gTPZYoqCv4lLzTMPZwi7sFWK8lB2vdCnLjpJkUb0JbpojQUxfOhWDG5aLrR4hOCsF8/ fJeB36cLDu72rDHuAQggImCag8aZd4BdVUoqhrt3hwZCXZM1ciPCY3/PjvVRRO28zYis VzSTxheqyhrBB6lA/TnuU/TfieyqcOr4eFSJS+arUuY9N3G2oJs1nDD9ISiIBNpWjBmj 4fmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736583977; x=1737188777; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I8zd5jFhMD3yHa1h+0qW63ls2QYkwvh+H2gTVpQwGWQ=; b=oGgZdX+BVRYRn2Th50t+HCe2SBaNALrs+DemH95sPEun9QnrWzKnDG6Ic/wmTNOapb WofYqRx6yFVjjJq1DeKinThIH6347+pC9gJ8ZTz9vyJyFfiUkgB44dWC7uLWQnQtvCxY PCW4NZpeGlCZ0PvKTGgoWb32Zc6kwLCWJ2Vo15hnuI3DOENrQmbcFVMjbSEJmqb7MtwV OxdMrZ1rBOregjCaPv280EWxfxHHanwDgZKbfLld6y1ZFOVHG20KFNEiyy0za2Xvt/oc MZgtPEwdJHabID2OFTQ7jN3PHz5gCwziqCrfsB5u16MLjW8BxYgmgcYYXTrowZFWqTgL y+8A== X-Gm-Message-State: AOJu0YxCD27ey3DB7s9BS7q4zRVbqsN8wVje7SYpeEoSDPRZ8zsgCqRk TAi7LP6LD8l4kaP+dGPUd83+8pHqxJmZNrGc9NETtcs+VKLORRgVm/sVf4P/+Ts5ytIm+VQJdel iv8v15BLl8s0JFmu9jRF8pgf6ZC7ulwxYGCDeGsfBWISmwXfr X-Gm-Gg: ASbGncuWRmqEfzTgkeeDEgrpoy9nWRV3CRVjhgaW8ZPtguKURjfgZvsOPDmcsrWTNbJ FpTfFqdUNob7aiKIByIdmElbGIxpoM4bl2+vj6jIa5tXjOLjE/W/AJpxE8hrHU5pm84jpYw== X-Google-Smtp-Source: AGHT+IHUTTczx5lH1Upb/RodHGwDS1B89ZZhWM3q6zYJ94nPvG0GOSswTEUDVZhJHAd2hTqMRnIl8/I6QkCK0cd/pn4= X-Received: by 2002:a05:6902:2b09:b0:e39:8d87:f146 with SMTP id 3f1490d57ef6-e54ee152ef4mr10566808276.22.1736583977049; Sat, 11 Jan 2025 00:26:17 -0800 (PST) MIME-Version: 1.0 References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> In-Reply-To: <86r059zrkv.fsf@gnu.org> From: Amir Rajan Date: Sat, 11 Jan 2025 02:26:06 -0600 X-Gm-Features: AbW1kvbrohlk6bo6IAMZ7BccbMrF0nSJZ00Fwb-WizuWayRmtfMlc1iIJquwL-M Message-ID: Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000133a12062b69f747" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --000000000000133a12062b69f747 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Typing anything into the search box causes the crash for me. I=E2=80=99ll g= et you the values of the parameters soon! * Amir Rajan ** PS I welcome VSRE emails. Learn more at http://vsre.info/. ** PPS I reply to every legitimate email I get. So, if you don't hear from me within a week. Email me again since there's a high chance that the email got lost in my inbox. On Sat, Jan 11, 2025 at 2:24=E2=80=AFAM Eli Zaretskii wrote: > [Please use Reply All to reply, to keep the bug tracker CC'ed.] > > > From: Amir Rajan > > Date: Sat, 11 Jan 2025 01:52:43 -0600 > > > > You can provide any mode to get to the customization box > > I tried text-mode and emacs-lisp-mode, but I don't get any crash. > > By "search box" do you mean the one after the first 3 lines in the > *Customize Group: Text* buffer, the one which says "Search" on the > right? If so, what did you type there? > > Alternatively, can run Emacs under GDB, and when it crashes, show the > arguments to 'floor'? (Let me know if you need instructions for how > to do that in GDB.) > --000000000000133a12062b69f747 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Typing anything into the search box causes the crash for = me. I=E2=80=99ll get you the values of the parameters soon!

=
* Amir Rajan
** PS
I w= elcome VSRE emails. Learn more at http://vsre.info/.
** PPSI reply to every legitimate email I get. So, if you don't hear from me= within a week. Email me again since there's a high chance that the ema= il got lost in my inbox.

<= /div>

On Sat, Jan 11, 2025 at 2:24=E2=80=AFAM Eli Zaret= skii <eliz@gnu.org> wrote:
[Please use Reply All to reply, to keep the bug tracker= CC'ed.]

> From: Amir Rajan <ar@amirrajan.net>
> Date: Sat, 11 Jan 2025 01:52:43 -0600
>
> You can provide any mode to get to the customization box

I tried text-mode and emacs-lisp-mode, but I don't get any crash.

By "search box" do you mean the one after the first 3 lines in th= e
*Customize Group: Text* buffer, the one which says "Search" on th= e
right?=C2=A0 If so, what did you type there?

Alternatively, can run Emacs under GDB, and when it crashes, show the
arguments to 'floor'?=C2=A0 (Let me know if you need instructions f= or how
to do that in GDB.)
--000000000000133a12062b69f747-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 04:20:04 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 09:20:05 +0000 Received: from localhost ([127.0.0.1]:41278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWXf1-0000Go-I7 for submit@debbugs.gnu.org; Sat, 11 Jan 2025 04:20:04 -0500 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:55512) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tWXey-0000Fa-0i for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 04:20:01 -0500 Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e54bd61e793so4750820276.2 for <75481@debbugs.gnu.org>; Sat, 11 Jan 2025 01:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amirrajan-net.20230601.gappssmtp.com; s=20230601; t=1736587194; x=1737191994; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BQn9kunC5P9VAz8MEBmuHL8r7nbU4UfuHm2Kzwx9JAo=; b=PJIOIVfSxlmi9QzO952nsi5rf4QovA7L+SiVjQNZKD6uppTlW5Ogk/qSMgJmowKByE 7LhkZvcrTC6gHXXI/oitmaMo2XCX8Fz3YAwpdnZXoeWgjRCfFQbdVE308opmWv9lQsxR hztKXTPECmZvAT1dsIpL2IvRmMZTc70ful4sMUR/HCVzXEq+N7Vk4aTkPOyGKD1sHJkW 5l9vBd0W1reu8B/JI0emFd5TfL8i9X4uGoB8J/HuD/2q4PvgzU+fIm/rzB2tQ/uFxtP6 MBuP883OyrGdNAubt45CXFwquA0b4DhyNryNCFLXlPWNywXNo9fpc6G1T/jI8UcuGa7S ye8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736587194; x=1737191994; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BQn9kunC5P9VAz8MEBmuHL8r7nbU4UfuHm2Kzwx9JAo=; b=vzwHh7sukSu//1xaw7M3CGiZqX2lqVrBqFJ4l3sYEpHaPFyQFp7ON95xW2AWlQsi51 jKZ6OGDED6aDIM7Og1elkpyEMXnuB9qPF1pD40t6G1xNILGlyCS8u3IerVdvZnSFFm8X bU+JkBtyE/LdnohnaA5nI3tiEBqwcvsD9ryVEHPMltVWzLs/0Zsq8qGVeQee/yGvq/QH aVlomOEs5YbzMtaOMrClVbbMz+boNm171cpdOpCR8mRPhcdnh5Td13I1Gl6oH7RwpkyD L/xMTwvU7peHx9LjPcE9RUtq5YSSRLF0NsH/yUSk2CwF8QUb2iTizvijVFSzah8zjPtn hf/w== X-Gm-Message-State: AOJu0YxpcV4M38rzLGVV5J/ZXSqX84zsDdyntZ9C3WltN1NZKJZcb1ip npH1G6p5XrWhTIfsiv/I0C8Si1AZcWLj96n1vKqisPhCtk7XChuEC+A0Wxm8X5HenllfY+CqGZZ Ln6VXmMAe5xMm/5ztCQb5nj1w1JYDAyRj945/tg== X-Gm-Gg: ASbGncspDzDZWrJrRwhuuroBI8vFz5cSfXcs1aqCT5GH9sSy/qr9zXaxQjjZxI+qMNi 1WhRACuX9QihB3yVbhBV6Y1visKcbXMmHY2ew X-Google-Smtp-Source: AGHT+IH1IDihmOb4O6biviW9iFNrS+GzAixy65/RXTwPIa8lALp89K6wxrxp+TpM58/YJ9vYgh8hbOmtTIfuX1VKaIg= X-Received: by 2002:a05:690c:6310:b0:6ef:59ef:f1bc with SMTP id 00721157ae682-6f5311feb61mr100135007b3.5.1736587194285; Sat, 11 Jan 2025 01:19:54 -0800 (PST) MIME-Version: 1.0 References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> In-Reply-To: From: Amir Rajan Date: Sat, 11 Jan 2025 03:19:43 -0600 X-Gm-Features: AbW1kvZvRiuVVXOkHkHcETIZRM3HMqQ9OxTkJaSg8E3bduCKveH4Crt_2vpLLiY Message-ID: Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000d65fca062b6ab6ea" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --000000000000d65fca062b6ab6ea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It may be worth establishing a baseline. Try the following and see if you get a segfault: 1. Download and install https://mirrors.ibiblio.org/gnu/emacs/windows/emacs-29/emacs-29.4-installer= .exe 2. After installation, use Windows Explorer/Start Button to run Emacs (do not run via MSYS terminal). 3. M-x customize-group, and then choose any group to get to the "Easy Customization" screen. 4. Place cursor in the search field: For help using this buffer, see [Easy Customization] in the [Emacs manual]. [ ] [ Search ] ^ +---------- place within search area 5. Type any group name to customize. I typed "default" for the group and pressed enter. 6. The segfault should occur right after pressing enter. If this doesn't segfault for you, then it may be something specifically related to running Emacs within a Windows 11 VM via Parallels on an M1 MacBook Pro (ARM64). On Sat, Jan 11, 2025 at 2:26=E2=80=AFAM Amir Rajan wrote= : > Typing anything into the search box causes the crash for me. I=E2=80=99ll= get you > the values of the parameters soon! > > > * Amir Rajan > ** PS > I welcome VSRE emails. Learn more at http://vsre.info/. > ** PPS > I reply to every legitimate email I get. So, if you don't hear from me > within a week. Email me again since there's a high chance that the email > got lost in my inbox. > > > On Sat, Jan 11, 2025 at 2:24=E2=80=AFAM Eli Zaretskii wrot= e: > >> [Please use Reply All to reply, to keep the bug tracker CC'ed.] >> >> > From: Amir Rajan >> > Date: Sat, 11 Jan 2025 01:52:43 -0600 >> > >> > You can provide any mode to get to the customization box >> >> I tried text-mode and emacs-lisp-mode, but I don't get any crash. >> >> By "search box" do you mean the one after the first 3 lines in the >> *Customize Group: Text* buffer, the one which says "Search" on the >> right? If so, what did you type there? >> >> Alternatively, can run Emacs under GDB, and when it crashes, show the >> arguments to 'floor'? (Let me know if you need instructions for how >> to do that in GDB.) >> > --000000000000d65fca062b6ab6ea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It may be worth establishing= a baseline. Try the following and see if you get a segfault:

=C2=A0= 1. Download and install https://mirrors.ibiblio.org/gnu/e= macs/windows/emacs-29/emacs-29.4-installer.exe
=C2=A0 2. After insta= llation, use Windows Explorer/Start Button to run Emacs (do not run via MSY= S terminal).
=C2=A0 3. M-x customize-group, and then=C2=A0choose any gr= oup to get to the "Easy Customization" screen.
=C2=A0 4. Pla= ce cursor in the search field:

=C2=A0 =C2=A0 =C2=A0For help using th= is buffer, see [Easy Customization] in the [Emacs manual].

=C2=A0 = =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ]= =C2=A0[ Search ]
=C2=A0 =C2=A0 =C2=A0 ^
=C2=A0 =C2=A0 =C2=A0 +-----= ----- place within search area

=C2=A0 5. Type any group name to cust= omize. I typed "default" for the group and pressed enter.
=C2= =A0 6. The segfault should occur right after pressing enter.

If this= doesn't segfault for you, then it may be something specifically relate= d to running Emacs within a Windows 11 VM via Parallels on an M1 MacBook= Pro (= ARM64).

On Sat, Jan 11, 2025 at 2:= 26=E2=80=AFAM Amir Rajan <ar@amirraj= an.net> wrote:
Typing anything into the search box causes the cras= h for me. I=E2=80=99ll get you the values of the parameters soon!

=

* Amir Rajan
** PS
I welcome VSRE emails. Learn m= ore at http://vsre.info/.
** PPS
I reply to every legitimat= e email I get. So, if you don't hear from me within a week. Email me ag= ain since there's a high chance that the email got lost in my inbox.


On Sat, Jan 11, 2025 at= 2:24=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
[Please use Reply All to reply, to keep the bug tra= cker CC'ed.]

> From: Amir Rajan <ar@amirrajan.net>
> Date: Sat, 11 Jan 2025 01:52:43 -0600
>
> You can provide any mode to get to the customization box

I tried text-mode and emacs-lisp-mode, but I don't get any crash.

By "search box" do you mean the one after the first 3 lines in th= e
*Customize Group: Text* buffer, the one which says "Search" on th= e
right?=C2=A0 If so, what did you type there?

Alternatively, can run Emacs under GDB, and when it crashes, show the
arguments to 'floor'?=C2=A0 (Let me know if you need instructions f= or how
to do that in GDB.)
--000000000000d65fca062b6ab6ea-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 04:20:54 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 09:20:54 +0000 Received: from localhost ([127.0.0.1]:41286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWXfq-0000Oe-1l for submit@debbugs.gnu.org; Sat, 11 Jan 2025 04:20:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47468) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWXfo-0000OO-1I for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 04:20:52 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWXfi-0004pi-0F; Sat, 11 Jan 2025 04:20:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=WTk/ctJa4U5EhimFcoMAlXOd08wwvIFL+YJmetYLing=; b=kY2W18DNg0ja9SheLkrs bKUN3SyqeN+BWbVaV5cGFmDwxHoOouoEf3/UtQUS8EnOtaYhHM86dF0mtN7f6vk8FACMisdm/qv95 vpFRyNAu7UgTIoe8vuVuxHQlA5/KbKZtYOp35i0+bEFDTBwbuaEViW/4kk0ZyfJWzWbhMIXRR9t2Z eZ34Wc6DYImujIX8o1UqxNnxCwZC5GHOqWEi7oDNBeUav1iGBkCNZEwn6ZLzKgFK1I5lTAn5FzftM AjK1TUwC/bD+M8IzlLpNZ3Xv9UAT9nf2L4kLwDvurAbpZEUjbUIlm/p0sVRliOGd3VSoS2kalHFAy HDxxvHtrDFheEw==; Date: Sat, 11 Jan 2025 11:20:39 +0200 Message-Id: <86plktzoyg.fsf@gnu.org> From: Eli Zaretskii To: Amir Rajan , Corwin Brust In-Reply-To: (message from Amir Rajan on Sat, 11 Jan 2025 02:26:06 -0600) Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) > From: Amir Rajan > Date: Sat, 11 Jan 2025 02:26:06 -0600 > Cc: 75481@debbugs.gnu.org > > Typing anything into the search box causes the crash for me. Then I cannot reproduce this here. > I’ll get you the values of the parameters soon! Thank you. Given that the problem goes away for you if you completely remove the calls to functions from the GMP library, my guess so far would be that this is some bug in the version of GMP you are using. Can someone else who uses a 64-bit build of Emacs 31 on Windows reproduce this? If so, what version of GMP is being used? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 04:37:02 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 09:37:02 +0000 Received: from localhost ([127.0.0.1]:41303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWXvS-0001Bl-1H for submit@debbugs.gnu.org; Sat, 11 Jan 2025 04:37:02 -0500 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:53470) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tWXvP-0001BK-QH for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 04:37:00 -0500 Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-e53c9035003so4715209276.2 for <75481@debbugs.gnu.org>; Sat, 11 Jan 2025 01:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amirrajan-net.20230601.gappssmtp.com; s=20230601; t=1736588214; x=1737193014; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SJS94voB6xVPxQTC55AcZ11DXI2XFOQMHYITSyM7jx8=; b=gHUPZt2IUFqR8SbQ7yDISyxr5D+3or7emvmlEYDabsRyFxFKSrmr5sgBb3+lDyFwwK YX0pY241yUVQreKSWDWTM8lI9o0CDOabLXGK4GlI4YaLCQSTc5x24SAf3G0TS2NIdYdB 0S/IeWBfBqFa6NrMQa7RwCPylFVT5PdARWR2LrBHnXVM6CNTzITrf0xyY/dvxizPRGgd 4rDuasBeY4ltRkEmxzuUL+lvtmzeZh6C0tZ8dziPTsMzG4U/F+FRysY9GwNbTwy6ivRB wrj8ufMqVYTaOFN2wfkMqo6Ad9xLye0VmpyjHxm+S0wWy5l3z3aKO4BiJy84VDPrzuSZ tMrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736588214; x=1737193014; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SJS94voB6xVPxQTC55AcZ11DXI2XFOQMHYITSyM7jx8=; b=F9RHP3mypT6vvdkpsCWghfOUG1RhFBffdyCu91EUVqwkynwf1tBb4ldgQCi1iHzn6Q rjX7PdM0/ATo7cD8gDcjRy5d9vBEQG1J8pUhnZ5po6u3VvKgd/JsVZfcludqhigjWvZC 32vhf3eMEKXlxo0UXROfQyWZIj+YW5KGLpPdFjayEiNifgi7raIohr02V1c0k/FWoAGM BuS7Z6lhmw23L51tvV6YZBGteKCbJWzha6DSuJ6I0oarLfyQ3K+8iQBMM41H/e68w+5V ilgfPZuyXCTmaDk1AsQOE65HqOGXU/mzn21hAZ1wyJF/7gva7sfWpqR8AHVAULUPPyO7 WDAw== X-Forwarded-Encrypted: i=1; AJvYcCVNSQ3rOXrc0SZNWJovG6VmsQCCDEefaVC0zKAo+pYAYxU7lO1pQxaFzvXJAQymPEKioAAbSA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwSg3eCWulFEjICwzV23reqOqoO8ba0WTHykFDG8r9iW1bMib6b uEXuS3tFnE8CgKH2k3fF6X/63UB4R0J1CO/mx92dyhOmXt1zJsRXm8wihwyPw6pkGByfi6FPZlT Kx/R3Q3a9pQ0WMEoo9uAnTfPIPUnrFCAa4v51YvdvWkanueExgoJwLw== X-Gm-Gg: ASbGncubQVA6f71eYdpDq2/EyUCol2Y2nKACpd0UsvZPBnonEQ2vbYuLESvG+gYdqWd zNlnMo62ZZKPBJJjE858SX8yiVCGLWVrLXUUP X-Google-Smtp-Source: AGHT+IFMrSshnY5kdQXwyWIn8IS97RYoO+EfuvvH9B63FtAzmO2iP87KYXNXkf3Z78qaejCD7mtn1gwq0c/ahT9thSg= X-Received: by 2002:a05:690c:7407:b0:6ef:e39f:bb1 with SMTP id 00721157ae682-6f5312be3bdmr117518147b3.27.1736588214021; Sat, 11 Jan 2025 01:36:54 -0800 (PST) MIME-Version: 1.0 References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> <86plktzoyg.fsf@gnu.org> In-Reply-To: <86plktzoyg.fsf@gnu.org> From: Amir Rajan Date: Sat, 11 Jan 2025 03:36:43 -0600 X-Gm-Features: AbW1kvb1NPWFxvxdqaLt2YS6RifF9kBJ3VoSr6yYl0y5sYjNj_P86aMCA1CWMRY Message-ID: Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000009e492d062b6af3c0" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org, Corwin Brust X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --0000000000009e492d062b6af3c0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I do think it is related to GMP. When I stepped through the code via GDB, the segfault occurs when mpz_set_d is invoked. It didn't step into the function call/segfaulted on the invocation. * Amir Rajan ** PS I welcome VSRE emails. Learn more at http://vsre.info/. ** PPS I reply to every legitimate email I get. So, if you don't hear from me within a week. Email me again since there's a high chance that the email got lost in my inbox. On Sat, Jan 11, 2025 at 3:20=E2=80=AFAM Eli Zaretskii wrote: > > From: Amir Rajan > > Date: Sat, 11 Jan 2025 02:26:06 -0600 > > Cc: 75481@debbugs.gnu.org > > > > Typing anything into the search box causes the crash for me. > > Then I cannot reproduce this here. > > > I=E2=80=99ll get you the values of the parameters soon! > > Thank you. > > Given that the problem goes away for you if you completely remove the > calls to functions from the GMP library, my guess so far would be that > this is some bug in the version of GMP you are using. > > Can someone else who uses a 64-bit build of Emacs 31 on Windows > reproduce this? If so, what version of GMP is being used? > --0000000000009e492d062b6af3c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I do think it is related to GMP. When I stepped through the = code via GDB, the segfault occurs when=C2=A0mpz_set_d is invoked. It didn&#= 39;t step into the function=C2=A0call/segfaulted=C2=A0on the invocation.

* Amir Rajan
** PS
I welcome VSRE emai= ls. Learn more at http://vs= re.info/.
** PPS
I reply to every legitimate email I get. So, if= you don't hear from me within a week. Email me again since there's= a high chance that the email got lost in my inbox.
<= /div>


<= div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jan 11, 2025 at 3:20=E2=80=AFA= M Eli Zaretskii <eliz@gnu.org> wr= ote:
> From: = Amir Rajan <ar@ami= rrajan.net>
> Date: Sat, 11 Jan 2025 02:26:06 -0600
> Cc: 75481@d= ebbugs.gnu.org
>
> Typing anything into the search box causes the crash for me.

Then I cannot reproduce this here.

> I=E2=80=99ll get you the values of the parameters soon!

Thank you.

Given that the problem goes away for you if you completely remove the
calls to functions from the GMP library, my guess so far would be that
this is some bug in the version of GMP you are using.

Can someone else who uses a 64-bit build of Emacs 31 on Windows
reproduce this?=C2=A0 If so, what version of GMP is being used?
--0000000000009e492d062b6af3c0-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 04:45:26 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 09:45:26 +0000 Received: from localhost ([127.0.0.1]:41316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWY3Z-0001eA-Qb for submit@debbugs.gnu.org; Sat, 11 Jan 2025 04:45:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53636) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWY3W-0001dq-Md for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 04:45:23 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWY3Q-0007Kg-GE; Sat, 11 Jan 2025 04:45:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3zP7gItgJPbznmNjGaQtZs/tdR/1yUyWAIgEansiRLc=; b=sTbKaAAUeBTV FtBoX3rZlzX4BR2MrOAdRjmXtC/hTk2aUeQaDUnHHiv4C5IB7QG92vZgjggRp9E0V9CwOZLUh2eDe KyP06gzgZdH/CM5EzeGuG44rsBF33s1gqZtDvJhhc16d+wBZMWEOXR5/XoyBTxWjPySYq1jQb6Wnb 3orUpEWxaYqkd/WepTxO55fvPq4DPe0qaq+pSMrxOAovjRRciEnCRkJnVVWi/dzvBfoC4VSc+gZ2x LS7d5CIX1HHrbIdIBxMMYLNGaYjh9zurpyerjnQ5muwmuFsDrC/KEXpneA6bE8kA8feCjRYHqfx/K 68f/zkDepuUHhgwjTg5dZQ==; Date: Sat, 11 Jan 2025 11:45:08 +0200 Message-Id: <86msfxzntn.fsf@gnu.org> From: Eli Zaretskii To: Amir Rajan In-Reply-To: (message from Amir Rajan on Sat, 11 Jan 2025 03:36:43 -0600) Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> <86plktzoyg.fsf@gnu.org> X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org, corwin@bru.st X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) > From: Amir Rajan > Date: Sat, 11 Jan 2025 03:36:43 -0600 > Cc: Corwin Brust , 75481@debbugs.gnu.org > > I do think it is related to GMP. When I stepped through the code via GDB, the segfault occurs when > mpz_set_d is invoked. It didn't step into the function call/segfaulted on the invocation. OK. So can you show the arguments with which rescale_for_division is called when the call to mpz_set_d crashes? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 14:10:41 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 19:10:41 +0000 Received: from localhost ([127.0.0.1]:44938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWgsb-0006wE-GR for submit@debbugs.gnu.org; Sat, 11 Jan 2025 14:10:41 -0500 Received: from mail.imayhem.com ([82.223.54.191]:52873 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tWgsY-0006vk-Ph for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 14:10:39 -0500 Received: from [192.168.68.104] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id 75E788010F; Sat, 11 Jan 2025 19:10:32 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Message-ID: Date: Sat, 11 Jan 2025 20:10:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: Eli Zaretskii , Amir Rajan , Corwin Brust References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> <86plktzoyg.fsf@gnu.org> Content-Language: es-ES From: Cecilio Pardo In-Reply-To: <86plktzoyg.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Can someone else who uses a 64-bit build of Emacs 31 on Windows > reproduce this? If so, what version of GMP is being used? Can't reproduce, tried 31 and 29.4. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 11 14:53:35 2025 Received: (at 75481) by debbugs.gnu.org; 11 Jan 2025 19:53:35 +0000 Received: from localhost ([127.0.0.1]:45011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWhY7-0000nq-Gx for submit@debbugs.gnu.org; Sat, 11 Jan 2025 14:53:35 -0500 Received: from mail.imayhem.com ([82.223.54.191]:53965 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tWhY5-0000nH-5N for 75481@debbugs.gnu.org; Sat, 11 Jan 2025 14:53:33 -0500 Received: from [192.168.68.104] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id 7DADE80103; Sat, 11 Jan 2025 19:53:25 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Message-ID: <1270d48f-9508-49ab-a989-11b17d03813c@imayhem.com> Date: Sat, 11 Jan 2025 20:53:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: Eli Zaretskii , Amir Rajan , Corwin Brust References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> <86plktzoyg.fsf@gnu.org> Content-Language: es-ES From: Cecilio Pardo In-Reply-To: <86plktzoyg.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75481 Cc: 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Given that the problem goes away for you if you completely remove the > calls to functions from the GMP library, my guess so far would be that > this is some bug in the version of GMP you are using. Maybe you can check that emacs is actually loading the libgmp10.dll that comes with the package, and not one located somewhere else. You can use a tool such as sysinternals' listdlls64.exe, which is not free but can be considered a part of mswindows. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 12 12:23:01 2025 Received: (at 75481) by debbugs.gnu.org; 12 Jan 2025 17:23:02 +0000 Received: from localhost ([127.0.0.1]:48944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tX1fx-0000Js-HN for submit@debbugs.gnu.org; Sun, 12 Jan 2025 12:23:01 -0500 Received: from mail-oo1-f42.google.com ([209.85.161.42]:40852) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tX1fv-0000JX-HZ for 75481@debbugs.gnu.org; Sun, 12 Jan 2025 12:23:00 -0500 Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-5f2d8e590e2so306959eaf.3 for <75481@debbugs.gnu.org>; Sun, 12 Jan 2025 09:22:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736702573; x=1737307373; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iXfZDJvW8QgT92D68BivFwrED2p1Ul/7GtwIkos2vP0=; b=fw78r/N7AWpDujv+EGKMI6SuoaGNXX9PH13fTkibtKD2K92vfq5WuUetoXaFsbHkHt dfXt2DTlHcuXprVxqh3iVwQHmTKsrm2Yb7AqP67vborgK8YhcgrpoboivSO7L56wuzIW +1nZl3gck9VeUk27aYqEghKa+7uAF9sHQL+RgDbz5I6iNyKRw2O53zoM1qr7rGdIJJZC /g+suBm0mfMc7iHCZq6nFdAb7n8vhTT/Hbdfa1km9UqCpwtZcA99fOHPhXstTeBzjzrL ojXSeihKZVnkb4Ovr7k7u7oGQNoG/mLs7QMwX2T+CMZiJ7n/97hik1aQ67tXOq5CFEvs GsLw== X-Forwarded-Encrypted: i=1; AJvYcCUH3efA0jRd+1dpF764t+mOhO1ow35nNs7pNLzKxPcevyNjZeaheVlim/QWsiaTVrjWTGFc2A==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy2jrG8QtGmMIMFLoGdZuPoiZYHD35kBFnGAl1LmfU/ceDBp8mo Xu/ehSA4P4Bg5Iw9Rj7tP5Oped4etPRm+H7iwAWNg/zlYCI2xQV1HNTbYadN78pIy0E6c/PqRYF /5IoVCFTfq5DvoDvCfkL3Spi8qp8= X-Gm-Gg: ASbGnctAjdpOe8dDatCfiA/4Ij/Mq1Ue9pyREjdJ4jNW0fIEaJeakWSVDDbiuS4glLe Om2NaHj7knV0biYkm5M8bcRlOpf17iI5gOkTL31k= X-Google-Smtp-Source: AGHT+IGKrFCyU/2A+D2oMct6M+oeZ23kKCuTshPczSZGZnqqB4a583nmLWZnPB0JY7esJ+OpLVnVMx+JYySAjAN/Bh0= X-Received: by 2002:a05:6830:6082:b0:71e:2ce:fb30 with SMTP id 46e09a7af769-721e2f2dc80mr4350695a34.5.1736702573505; Sun, 12 Jan 2025 09:22:53 -0800 (PST) MIME-Version: 1.0 References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> <86plktzoyg.fsf@gnu.org> In-Reply-To: From: Corwin Brust Date: Sun, 12 Jan 2025 11:22:42 -0600 X-Gm-Features: AbW1kvbCeOH9ie5jYtKACvC3lOFBVC7KMagUv4wvGKzuZfXbW5igTpWl43rfdxU Message-ID: Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer To: Cecilio Pardo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 75481 Cc: Amir Rajan , Eli Zaretskii , 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sat, Jan 11, 2025 at 1:10=E2=80=AFPM Cecilio Pardo = wrote: > > > Can someone else who uses a 64-bit build of Emacs 31 on Windows > > reproduce this? If so, what version of GMP is being used? > > Can't reproduce, tried 31 and 29.4. > > Nor have I (although I tried recent builds of emacs-30 and the master branc= h). From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 18 05:18:43 2025 Received: (at 75481) by debbugs.gnu.org; 18 Jan 2025 10:18:43 +0000 Received: from localhost ([127.0.0.1]:40292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZ5ud-0006tM-3L for submit@debbugs.gnu.org; Sat, 18 Jan 2025 05:18:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54202) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZ5ua-0006sc-GX; Sat, 18 Jan 2025 05:18:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZ5uT-00011i-Rr; Sat, 18 Jan 2025 05:18:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=YePgrwnjm4NXRknGw3WLoNyiKay/fa7iNmEMQKUio/c=; b=bOcyP/D+Tt1dcIWrF547 Gpw/z19Fn/G0/Br07+lGiPvP5i8YOv7YyeqBcBYAfQvbMSgm2oHn0S7o9R9gtP4RsjPy0zszN7IfN ZjkSCkVvEW6b2l1wypB5grNZV21GZ0zHBfkBXmBOwfYpmPniz2SjyUYsofl4SaGLkD6J/E8NrR8lw NunBsCBos83V7AWHESaO1P4wzDPMYB/I9aAPLgg9BirsTHxmO2GYvEJXiZOZs+/k4Z1wI4hD3Ic8O Wg09ME55A8GbtPuuyw/v+4m/zc4u21E78e93jkOZDvX27bVPnBoNclPK0JBrrmP6KRUvtfA5E7fpG ixaczurzvLHGxg==; Date: Sat, 18 Jan 2025 12:18:30 +0200 Message-Id: <86cygkbf2h.fsf@gnu.org> From: Eli Zaretskii To: Corwin Brust In-Reply-To: (message from Corwin Brust on Sun, 12 Jan 2025 11:22:42 -0600) Subject: Re: bug#75481: 31.0.50; Segfault on Windows 11 when using Easy Customization buffer References: <86tta5zt2q.fsf@gnu.org> <86r059zrkv.fsf@gnu.org> <86plktzoyg.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 75481 Cc: ar@amirrajan.net, cpardo@imayhem.com, 75481@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) tags 75481 unreproducible close 75481 thanks > From: Corwin Brust > Date: Sun, 12 Jan 2025 11:22:42 -0600 > Cc: Eli Zaretskii , Amir Rajan , 75481@debbugs.gnu.org > > On Sat, Jan 11, 2025 at 1:10 PM Cecilio Pardo wrote: > > > > > Can someone else who uses a 64-bit build of Emacs 31 on Windows > > > reproduce this? If so, what version of GMP is being used? > > > > Can't reproduce, tried 31 and 29.4. > > > > > > Nor have I (although I tried recent builds of emacs-30 and the master branch). Thanks, so I presume this is due to some botched installation of GMP, and I'm therefore closing this bug as not reproducible. From unknown Fri Aug 15 02:05:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Feb 2025 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator