From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#42113: 28.0.50; Segmentation fault in json-parse-file Date: Mon, 29 Jun 2020 10:33:45 +0200 Message-ID: References: <5ef91115.1c69fb81.aa1e3.9577@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="42559"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42113@debbugs.gnu.org To: Erik Hetzner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 10:35:12 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 1jppFw-000AwN-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 10:35:12 +0200 Original-Received: from localhost ([::1]:48006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jppFv-0006p3-Av for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 04:35:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jppFm-0006oM-F4 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 04:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jppFm-00054n-5t for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 04:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jppFm-0006zH-3F for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jun 2020 08:35: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-submit@debbugs.gnu.org id=B42113.159341964526767 (code B ref 42113); Mon, 29 Jun 2020 08:35:02 +0000 Original-Received: (at 42113) by debbugs.gnu.org; 29 Jun 2020 08:34:05 +0000 Original-Received: from localhost ([127.0.0.1]:47793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jppEr-0006xf-5Z for submit@debbugs.gnu.org; Mon, 29 Jun 2020 04:34:05 -0400 Original-Received: from mail-oi1-f179.google.com ([209.85.167.179]:43292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jppEn-0006x7-Mt for 42113@debbugs.gnu.org; Mon, 29 Jun 2020 04:34:04 -0400 Original-Received: by mail-oi1-f179.google.com with SMTP id x83so6164299oif.10 for <42113@debbugs.gnu.org>; Mon, 29 Jun 2020 01:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EYA/spSfLBreFQ9PeOpdeSmbVRqe3YG7ElrQpej3sbc=; b=dJNo54XGFdTo86UiZ7BHsT0YwnywjnP2GWbpfEhQ9IMX9/EjNkZ5X266TZcMJgOoSE a4g8KhG0A7Ohc15F2KG5+knPvG5EmPzkrO7/CscpYdkxe8BdFKcJEMaM1ZuG+Zq93qtX BIGx7FCkvZbKxZuzbv1vObURpwNGdS5QYlMWOwbUNQuQYvRWJ2ATC5vJ3I8pZ3hnvOJL wi7CNzdSl40VvutseEyW5XF4XU8PdUiR1gH8r8LNSTptn1LvFnqHO7go35HacU1PfNMs X+euhqb0BOUaEW/e+oEU0Z+kC1CrRBAVGq8vr1RXc5JXUW0PQtnzutSsVWvf4LraALD9 1e3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EYA/spSfLBreFQ9PeOpdeSmbVRqe3YG7ElrQpej3sbc=; b=hPiWJ2MnUjLPkDn5qCVngjaXXX3z3dLVMUaWvH3X/oS4JpPbTt1odL+ZoYxgd+/s6S qecrE9YLoUpQpyTij+gv1jVxgxgZnSXQaOeaaHKCkK1eGZOAqNx2dHtHEcjpFEhwr4nT hul8IBXPdseVeK9U/05TVtws/fNwSDo+HGSjGh2BqysbLOqQ77ScMor8w+1Rn0hOZffW ljWzb+oK2KPRdXdfbwT5Es6Eta0pR6+q7Mcq8EW53jJjVY7ldjdnd2+6mAAqF61RdK8z wSrvxfuHeT0skUs4J4nJfF8j4VldFRCoBwjcjs7rv6uSyO1GenQaV7ilMxw3oITpRiYt Hqfw== X-Gm-Message-State: AOAM533D48PCR1vLDOAiEExPVOUiW41+YQ+r2cxyPym+wqbk1mC4r3rI 7U6iESHcHPkJDmcaSb8s0dR6Acmq0ZotXNAWBC4= X-Google-Smtp-Source: ABdhPJy5gBUwCpzrhEyKIXH8LUykXSatVbe1wjEZbJ5wL0NOyaxh6jaAh6YvJkPSTrI2HpZzXjKuF97HJV0DXHelllY= X-Received: by 2002:aca:54d3:: with SMTP id i202mr11185707oib.170.1593419635921; Mon, 29 Jun 2020 01:33:55 -0700 (PDT) In-Reply-To: <5ef91115.1c69fb81.aa1e3.9577@mx.google.com> 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:182514 Archived-At: 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.