From patchwork Sat Jan 8 08:42:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36152 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5D8D227BBEA; Sat, 8 Jan 2022 08:57:50 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2C17227BBE9 for ; Sat, 8 Jan 2022 08:57:50 +0000 (GMT) Received: from localhost ([::1]:37246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n67Xp-0005SA-Ar for patchwork@mira.cbaines.net; Sat, 08 Jan 2022 03:57:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n67MU-0003qf-G1 for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n67MU-0004dK-7g for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n67MU-0000vy-6J for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v9 28/41] gnu: Add node-segfault-handler. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jan 2022 08:46:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Philip McGrath , Pierre Langlois , Liliana Marie Prikler , Leo Famulari , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16416315483432 (code B ref 51838); Sat, 08 Jan 2022 08:46:06 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Jan 2022 08:45:48 +0000 Received: from localhost ([127.0.0.1]:46385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67MB-0000tI-Jq for submit@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:47 -0500 Received: from mail-qk1-f173.google.com ([209.85.222.173]:35660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67M9-0000so-KO for 51838@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:45 -0500 Received: by mail-qk1-f173.google.com with SMTP id 131so8525229qkk.2 for <51838@debbugs.gnu.org>; Sat, 08 Jan 2022 00:45:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IVMc3w9ucoDHg6uv/v2BAupXAZHu2/kxWpjJayabm2U=; b=FPD6LFN5aNs0r7h7AoBNKODt9gMKGFaTOen/xdc/9ZYQxZVORygVgC78Hns94MDPS7 PRqwic6TPQt1KC4u/0BKEC484py2p6yOvRIlETVKxpp5TIvRzTqflbAJ3ZYl0X5ft7Bp TzqNeCkEwVwVIEVxfnotBmxlAKWm4FG6Ef41mQKnin4fePQX/+1ZLQMvdgAChrjJBBcQ RN1liIINL3srrJt2WIzyBAFrzWV/Psf9f704qGiytj2MpeXOVjSpZ4dR6wMlCDzcwPCy 1UlBIoM2ZxK2aKKktNY3CYCUNUEmvDmBJk9+Doyxeq9s8pDHkfJm0rqwqYyjGAa67ZRA uYyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IVMc3w9ucoDHg6uv/v2BAupXAZHu2/kxWpjJayabm2U=; b=otGBOoFm02PamHSZOtMvZ90wdRKsuh3Y4vxW1EK78lf3LVyqFje0FzsTTzJclRw/Hg ohsIQcTmGRcpSZgOCvAfoPh2eMvpjJBkqq11GvGYswIkv+Lc5kzxjDIfIV4UtAScjs9P 7P1YFCDlcmMW3vGi7X8i42RMKzd/YJ6u0esGrcciAlSWL3qtknksCZVqx+KslcN97vAC U/0jX3WT53mrzv6J5fsDzRALYKFR50xDQBSve4+W47uiDf76AUSgLJpv54siI+i9hgv5 V/etMqWmavJY5jL1qYAPeD7rLwi4dmZj+1332FMOq15DEpctrB5VQvC3YyjkUuOr7GEk cvEQ== X-Gm-Message-State: AOAM533wJ+95bd7KcO0BXbjYzYppVNTH6Eq6nYGsmBGmvGIfY5aw8fba D+g+UsKL9dMb06LSK5P0cr+T1BGyyIsqNmvE X-Google-Smtp-Source: ABdhPJxD7fkgiAep+qAAlft4RuDiRG9FQSzIbZWZCaoq699KDBIdydsZtbZYzwQ30PAAWtuGAZHrpA== X-Received: by 2002:a05:620a:4481:: with SMTP id x1mr46360114qkp.423.1641631540147; Sat, 08 Jan 2022 00:45:40 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id n3sm711992qkp.56.2022.01.08.00.45.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jan 2022 00:45:40 -0800 (PST) From: Philip McGrath Date: Sat, 8 Jan 2022 03:42:16 -0500 Message-Id: <20220108084229.362642-29-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220108084229.362642-1-philip@philipmcgrath.com> References: <64e08d3a1838ed8507f33fae895545372960522f.camel@gmail.com> <7b04af28bbd57c67093ce8f33a648efec89693bd.camel@gmail.com> <441bfeb0-eb6e-81f6-488b-cdf1b09a78ef@philipmcgrath.com> <20220108084229.362642-1-philip@philipmcgrath.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-segfault-handler): New variable. --- gnu/packages/node-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 70dc08debe..6352f63688 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -910,3 +910,32 @@ (define-public node-bindings modules. It is basically the ``swiss army knife'' of @code{require()}ing your native module's @code{.node} file.") (license license:expat))) + +(define-public node-segfault-handler + (package + (name "node-segfault-handler") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ddopson/node-segfault-handler") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07nbw35wvrr18kmh8f388v4k5mpjgyy0260bx0xzjdv795i3xvfv")))) + (native-inputs + (list python)) + (inputs + (list node-bindings node-nan)) + (build-system node-build-system) + (arguments + ;; there are no tests + `(#:tests? #f)) + (home-page "https://github.com/ddopson/node-segfault-handler") + (synopsis "Catches @code{SIGSEGV} and prints diagnostic information") + (description "This package is a tool for debugging Node.js C/C++ native +code modules and getting stack traces when things go wrong. If a +@code{SIGSEGV} signal is raised, the module will print a native stack trace to +both @code{STDERR} and to a timestamped file.") + (license license:bsd-3)))