From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Erik Hetzner Newsgroups: gmane.emacs.bugs Subject: bug#42113: 28.0.50; Segmentation fault in json-parse-file Date: Mon, 29 Jun 2020 08:39:12 -0700 Message-ID: <5efa0b27.1c69fb81.e9c5a.079f@mx.google.com> References: <5ef91115.1c69fb81.aa1e3.9577@mx.google.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64833"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 Emacs/27.0.91 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 42113-done@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 17:40:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpvtK-000Gkf-PY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 17:40:18 +0200 Original-Received: from localhost ([::1]:49290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpvtJ-000254-Nm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 11:40:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpvt4-00022u-Vd for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 11:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpvt4-0004M5-L4 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 11:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpvt4-000883-If for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Erik Hetzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jun 2020 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42113 X-GNU-PR-Package: emacs Original-Received: via spool by 42113-done@debbugs.gnu.org id=D42113.159344516931193 (code D ref 42113); Mon, 29 Jun 2020 15:40:02 +0000 Original-Received: (at 42113-done) by debbugs.gnu.org; 29 Jun 2020 15:39:29 +0000 Original-Received: from localhost ([127.0.0.1]:49134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpvsX-000873-Fw for submit@debbugs.gnu.org; Mon, 29 Jun 2020 11:39:29 -0400 Original-Received: from mail-pf1-f196.google.com ([209.85.210.196]:33056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpvsV-00086n-1M for 42113-done@debbugs.gnu.org; Mon, 29 Jun 2020 11:39:28 -0400 Original-Received: by mail-pf1-f196.google.com with SMTP id f9so8075237pfn.0 for <42113-done@debbugs.gnu.org>; Mon, 29 Jun 2020 08:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:sender:date:from:to:cc:subject:in-reply-to:references :user-agent:reply-to:mime-version; bh=Altjhyj5V067/2OH8gLYlqzN+8javxT8yzuJAEHvQQU=; b=bnSofY2xSVwHjRoxPSQSOT6PonlTIOk5ClOJLzTFDkobstmB+n/rmLNTgXWT8zgp0Y u2fK22LABuaEs19FS/GAWFD1/B7nFkBtWkOtoaRIBXwXpeEWRFA/9f4NN7of05aKGLoU 1RWFKW0p+xFZTdleOyJRXB/OcgO08IOKABa8UX4DPLjHTaLVgE0chgHxJ5Jg87nYB9hO MDpZyck1cYwtjP1N7ebJyn7/l0ZzClgnXBN3yrwxCCdMT9o6Ov2zZ/yt9IojhrZNkkym GpuPA+tuHPRnP0T7R2RZcyw7ChgEr/3FNiL2ksjWljTc7xAVUbP2xdejfcOD3yqqgHRp p7HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:sender:date:from:to:cc:subject :in-reply-to:references:user-agent:reply-to:mime-version; bh=Altjhyj5V067/2OH8gLYlqzN+8javxT8yzuJAEHvQQU=; b=miEtjGbqh0fDKBV8RtdAt3VRm+hJ6OfOTIN6GGhOc/VnaITZMjxRYOcuiW4WIEvNPe JeZG7gKA61uxPTBoSsBZB2rtMMcoMBN/+Z24kWpo9enm2Q95/aT/iFIMG2bd7ZXuFlGL jg+fykFIvMNG94EaVcWhRA1eUFF8hVwpFY9wsDvqEcjtrT3PWDQ5/A2w+k0lSWgsW2TB lXuh7+0SKAYcq+HfTznxXw8FOL/M5MeXq+hSuun8rwZFcMZmdp08bZRDtNx+YUUG9i2D P3v1Q6YjWeVQ/DBrXaqD/jBRh2YnIWaOSNcIBdS3WTWMTPwDMwah69jPDnLSrjZWdc5g qJhA== X-Gm-Message-State: AOAM531wHEIGgBUFXt2ye+I/3P2fuBpIqIfvSIPs/ylTTXT6Y4gko0Vh 6K2nXVlwAaUTUwXzcXH95Hw= X-Google-Smtp-Source: ABdhPJzBV0V8MoEmZpVYqvhzMY0h1mN+h8TnhokQnCtZ/HtUPhOHM33+369qqmaQhnycBp+FlFxDfw== X-Received: by 2002:a63:d944:: with SMTP id e4mr10821433pgj.376.1593445160891; Mon, 29 Jun 2020 08:39:20 -0700 (PDT) Original-Received: from michel.e6h.org (50-0-83-149.dsl.static.fusionbroadband.com. [50.0.83.149]) by smtp.gmail.com with ESMTPSA id d4sm190289pgf.9.2020.06.29.08.39.19 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jun 2020 08:39:19 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182533 Archived-At: On Mon, 29 Jun 2020 03:37:16 -0700, Philipp Stephani wrote: > > Am Mo., 29. Juni 2020 um 10:33 Uhr schrieb Philipp Stephani > : > > > > Am So., 28. Juni 2020 um 23:53 Uhr schrieb Erik Hetzner : > > > > > > 1. Start emacs -Q > > > 2. Evaluate the following > > > (require 'dom) > > > > > > (with-current-buffer (url-retrieve-synchronously "https://www.seriouseats.com/recipes/2020/06/florentine-omelette-spinach-and-cheese.html") > > > (let* ((dom (libxml-parse-html-region (point-min) (point-max))) > > > (scripts (dom-by-tag dom 'script)) > > > (json-lds-raw (dom-elements scripts 'type "^application/ld\\+json$")) > > > (json-lds (mapcar #'json-parse-string json-lds-raw))))) > > > > > > Result: segmentation fault. > > > > Simpler: (json-parse-string 1) > > The JSON functions are missing CHECK_STRING in several places where > > json_encode is called. > > Fixed on the release branch (commit 59e768d64a). Excellent, thank you so much! best, Erik