From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#32381: 27.0.50; crash in json tests Date: Tue, 7 Aug 2018 00:15:42 +0100 Message-ID: <4d5f9db0-d09f-ac2b-4aca-d2cc4ff2b6e1@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1533597322 17116 195.159.176.226 (6 Aug 2018 23:15:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 23:15:22 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: 32381@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 01:15:18 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fmoiX-0004Gh-Hk for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2018 01:15:13 +0200 Original-Received: from localhost ([::1]:36629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmoke-0001xE-1M for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Aug 2018 19:17:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmokM-0001vE-A4 for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmokI-0003rr-B8 for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:17:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmokI-0003rh-6X for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fmokH-0005xE-VG for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Aug 2018 23:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32381 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153359736222772 (code B ref -1); Mon, 06 Aug 2018 23:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2018 23:16:02 +0000 Original-Received: from localhost ([127.0.0.1]:43010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmojK-0005vB-6W for submit@debbugs.gnu.org; Mon, 06 Aug 2018 19:16:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmojI-0005ud-Lh for submit@debbugs.gnu.org; Mon, 06 Aug 2018 19:16:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmojC-000310-Bw for submit@debbugs.gnu.org; Mon, 06 Aug 2018 19:15:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fmojC-00030w-80 for submit@debbugs.gnu.org; Mon, 06 Aug 2018 19:15:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmojA-0001j1-24 for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:15:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmoj5-0002xu-2G for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:15:52 -0400 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:37286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmoj4-0002xK-Od for bug-gnu-emacs@gnu.org; Mon, 06 Aug 2018 19:15:46 -0400 Original-Received: by mail-wm0-x22d.google.com with SMTP id n11-v6so15938986wmc.2 for ; Mon, 06 Aug 2018 16:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:subject:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=tCeqoDsT6jzx3qlUkj+yRWp2u9YQU17R5UCU5Py0tYQ=; b=kqfpG7qhW9Oc6Tx2uKwfeJnotIDPa1V+QbPF+ByMO0v0/DByeluoy+ldWBDk2ujeA7 V+2th3a/4EXyFTxL19TwyQzhE9HppJYxT1o8WCWaq7HQevXWE+OZ7JXG8vvBsRhJ3CTa lbmHCmYN0r4NTzZNXugpR0Ot7oyvTsApBacbTZrw0+yPBm5AZoL7ReomxB3C+TnImLEy 18E9Xn931BOjldvJ6e+HaYim6XMIrGKfQ4gfaq4n/5ueAANbz5VD3DIhZ53qlMkj/VNz aWwucnjpmdBDR86seURoTjrXUQ9aYYPbizY0yPA+bBShIjFNNWpDCNd2hQn4iXn1utdn zhXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=tCeqoDsT6jzx3qlUkj+yRWp2u9YQU17R5UCU5Py0tYQ=; b=VpdzVOc31cd9OAOqDgwNy+wz/okKraKMuz/vNfvWNSf79kHVWpeTc1iHUucr6s+Wm8 rHdf+KjjABkbRmzpgUxoAYsbxhQIxqeqAW7X4QCyBztjKfxxsbE7by9UsAQ4nwQQnqZW ThqXStkFXGQVVfxHJ0Fz1oH28jKC5QHEyn2amLKMBWfa0FUkYzUuE5lJlgPGtDkwGYxT dqnJf+HvnCW/0K9qopeSvPW0dBQFkMq80D0LQklblOq+dLaKaIWgKMkdRpfEG7Vlc5Zy 52oHiaBtxOd0B+v7whHpGla/kJDtjg28OOYYXX7L3mwi3uMfSkfqfk6nmxrqBmFANb0x RU4w== X-Gm-Message-State: AOUpUlHXVC3I6sMsNU3+ZhjzWSXugdzrwCw/F7mRJtS9hz2QOwCUBs8a jE0BJmo8ZabU+4SHZ/lD7xXYLwZh X-Google-Smtp-Source: AA+uWPzExtcKnhkD/NXQCejboG2PRwwk99M3/rG8dHKS3/AX40Ydce7RSiaTbiKWhrothXDW+b7zlA== X-Received: by 2002:a1c:c14:: with SMTP id 20-v6mr39743wmm.117.1533597345204; Mon, 06 Aug 2018 16:15:45 -0700 (PDT) Original-Received: from [192.168.0.5] (82-69-64-228.dsl.in-addr.zen.co.uk. [82.69.64.228]) by smtp.gmail.com with ESMTPSA id p14-v6sm10596486wru.0.2018.08.06.16.15.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 16:15:44 -0700 (PDT) Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149298 Archived-At: Running "make check" for a Windows mingw64 x86_64 build (configured --with-json) results in a crash in the tests from test/src/json-tests.el. Attaching GDB shows: (gdb) bt #0 0x00007ffdd5e8c903 in KERNELBASE!DebugBreak () from C:\WINDOWS\System32\KernelBase.dll #1 0x000000040021af70 in emacs_abort () at C:/emacs/git/emacs/master/src/w32fns.c:10775 #2 0x00000004000efb6c in terminate_due_to_signal (sig=0xb, backtrace_limit=) at C:/emacs/git/emacs/master/src/emacs.c:399 #3 0x00000004001102b0 in handle_fatal_signal (sig=0xcf0000, sig@entry=0xb) at C:/emacs/git/emacs/master/src/sysdep.c:1769 #4 0x000000040010ff58 in deliver_thread_signal (sig=0xb, handler=0x4001102a2 ) at C:/emacs/git/emacs/master/src/sysdep.c:1743 #5 0x000000040010ff75 in deliver_fatal_thread_signal (sig=0xcf0000) at C:/emacs/git/emacs/master/src/sysdep.c:1781 #6 0x000000040028348c in _gnu_exception_handler (exception_data=0xbf5610) at C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c:223 #7 0x00007ffdd9327c58 in msvcrt!__C_specific_handler () from C:\WINDOWS\System32\msvcrt.dll #8 0x00007ffdd97beced in ntdll!.chkstk () from C:\WINDOWS\SYSTEM32\ntdll.dll #9 0x00007ffdd9726c86 in ntdll!RtlWalkFrameChain () from C:\WINDOWS\SYSTEM32\ntdll.dll #10 0x00007ffdd97bdc1e in ntdll!KiUserExceptionDispatcher () from C:\WINDOWS\SYSTEM32\ntdll.dll #11 0x00007ffdd9730317 in ntdll!RtlFreeHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll #12 0x00007ffdd93198bc in msvcrt!free () from C:\WINDOWS\System32\msvcrt.dll #13 0x0000000400187d8d in do_one_unbind (this_binding=this_binding@entry=0xbf65f0, unwinding=unwinding@entry=0x1, bindflag=bindflag@entry=SET_INTERNAL_UNBIND) at C:/emacs/git/emacs/master/src/eval.c:3473 #14 0x0000000400188f75 in unbind_to (count=count@entry=0x6b, value=XIL(0x41cc154)) at C:/emacs/git/emacs/master/src/eval.c:3593 #15 0x0000000400274980 in Fjson_serialize (nargs=, args=0xbf69b8) at C:/emacs/git/emacs/master/src/json.c:610 #16 0x000000040018b92f in funcall_subr (subr=0x4006657e0 , numargs=numargs@entry=0x1, args=args@entry=0xbf69b8) at C:/emacs/git/emacs/master/src/eval.c:2877 ... [another 150 frames omitted] Lisp Backtrace: "json-serialize" (0xbf69b8) "apply" (0xbf69b0) "byte-optimize-form-code-walker" (0xbf6ee0) "byte-optimize-form" (0xbf7148) "mapcar" (0xbf73a0) "byte-optimize-form-code-walker" (0xbf78e0) "byte-optimize-form" (0xbf7b80) "byte-optimize-body" (0xbf7de0) "byte-optimize-form-code-walker" (0xbf8310) "byte-optimize-form" (0xbf85b0) "byte-optimize-form-code-walker" (0xbf8ae0) "byte-optimize-form" (0xbf8d60) 0xba8e40 PVEC_COMPILED "mapcar" (0xbf91c8) "byte-optimize-form-code-walker" (0xbf9700) "byte-optimize-form" (0xbf99a0) "byte-optimize-body" (0xbf9bf8) "byte-optimize-form-code-walker" (0xbfa130) "byte-optimize-form" (0xbfa3c8) "byte-compile-top-level" (0xbfa6a0) "byte-compile-lambda" (0xbfa9e8) "byte-compile-function-form" (0xbfac38) "byte-compile-form" (0xbfb028) "mapc" (0xbfb238) "byte-compile-normal-call" (0xbfb4a8) "byte-compile-form" (0xbfb898) "mapc" (0xbfbaa8) "byte-compile-normal-call" (0xbfbd18) "byte-compile-form" (0xbfc120) "byte-compile-keep-pending" (0xbfc360) "byte-compile-file-form" (0xbfc588) 0xb2ee40 PVEC_COMPILED "byte-compile-recurse-toplevel" (0xbfc9e8) 0xbcbca0 PVEC_COMPILED "mapcar" (0xbfce28) "byte-compile-recurse-toplevel" (0xbfd068) "byte-compile-toplevel-file-form" (0xbfd270) 0xb2af70 PVEC_COMPILED "byte-compile-from-buffer" (0xbfd890) "byte-compile-file" (0xbfdcb8) "batch-byte-compile-file" (0xbfdf40) "batch-byte-compile" (0xbfe268) "command-line-1" (0xbfe930) "command-line" (0xbff1c8) "normal-top-level" (0xbff550) (gdb) frame 15 #15 0x0000000400274980 in Fjson_serialize (nargs=, args=0xbf69b8) at C:/emacs/git/emacs/master/src/json.c:610 610 return unbind_to (count, json_build_string (string)); (gdb) info locals count = 0x6b conf = { object_type = json_object_hashtable, null_object = XIL(0x15e0), false_object = XIL(0xa80) } json = string = 0x4206870 "{\"abc\":[1,2,true],\"def\":null}" (gdb)