From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vegard Vesterheim Newsgroups: gmane.emacs.help Subject: Using 'git bisect' to pinpoint errors in .emacs. Was: Fatal error 11: Segmentation Fault Date: Wed, 3 Apr 2019 10:51:38 +0000 Message-ID: <1spnq3gy4i.fsf_-_@uninett.no> References: <86imvx5gyz.fsf@zoho.eu> <86ef6l5dwk.fsf@zoho.eu> <86a7h85ru5.fsf@zoho.eu> <865zrw55gm.fsf@zoho.eu> <5e7fb661-c090-4893-bcab-24ee4d96bea3@default> <86ftqzhd04.fsf@zoho.eu> <20190403081845.GA6609@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="176660"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "help-gnu-emacs@gnu.org" To: "tomas@tuxteam.de" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 03 12:54:02 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBdWr-000jo2-9F for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2019 12:54:01 +0200 Original-Received: from localhost ([127.0.0.1]:34198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBdWq-0008IV-95 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2019 06:54:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBdUn-0006ne-08 for help-gnu-emacs@gnu.org; Wed, 03 Apr 2019 06:51:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBdUj-0005MP-95 for help-gnu-emacs@gnu.org; Wed, 03 Apr 2019 06:51:52 -0400 Original-Received: from mail-eopbgr130125.outbound.protection.outlook.com ([40.107.13.125]:25377 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBdUi-0005Ep-Cd for help-gnu-emacs@gnu.org; Wed, 03 Apr 2019 06:51:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uninett.no; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uIcNHUqiRhdNq/rcug6Op8pFlBdJRg/iwQgnbFUYJZE=; b=Ss/lazw9M/6BHtzMckZvXc9oJJrIyhnh3zRaGGxHojzKpF6cbJqctp0fOnyzRSDBygajpJ3s/h5sJ1sfmOKnw6Xz6vupwIRoUQjvTgJ51amTPJNyE/pS1FdvuF/325vaN/3IRtI6t4HkM7b4ZhwyF9dh0sIJ5bdtR+OQA7nrMQQ= Original-Received: from VI1PR08MB3949.eurprd08.prod.outlook.com (20.178.125.146) by VI1SPR01MB0360.eurprd08.prod.outlook.com (20.177.55.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.13; Wed, 3 Apr 2019 10:51:39 +0000 Original-Received: from VI1PR08MB3949.eurprd08.prod.outlook.com ([fe80::bccd:15bd:1924:d2e4]) by VI1PR08MB3949.eurprd08.prod.outlook.com ([fe80::bccd:15bd:1924:d2e4%3]) with mapi id 15.20.1750.017; Wed, 3 Apr 2019 10:51:39 +0000 Thread-Topic: Using 'git bisect' to pinpoint errors in .emacs. Was: Fatal error 11: Segmentation Fault Thread-Index: AQHU6PQlAZ8/T+gr2kO11QcBNXhV6Q== In-Reply-To: <20190403081845.GA6609@tuxteam.de> (tomas@tuxteam.de's message of "Wed, 3 Apr 2019 10:18:46 +0200") Accept-Language: en-US Content-Language: en-US x-clientproxiedby: HE1P191CA0009.EURP191.PROD.OUTLOOK.COM (2603:10a6:3:cf::19) To VI1PR08MB3949.eurprd08.prod.outlook.com (2603:10a6:803:de::18) x-originating-ip: [2001:700:1:0:158:38:62:13] authentication-results: spf=none (sender IP is ) smtp.mailfrom=vegard.vesterheim@uninett.no; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a5d09709-9cc9-468a-7279-08d6b8225903 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7025125)(7027125)(7023125)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:VI1SPR01MB0360; x-ms-traffictypediagnostic: VI1SPR01MB0360: x-microsoft-antispam-prvs: x-forefront-prvs: 0996D1900D x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(39840400004)(366004)(346002)(376002)(396003)(199004)(189003)(14444005)(5660300002)(256004)(99286004)(52116002)(7736002)(186003)(14454004)(44832011)(46003)(486006)(102836004)(476003)(2616005)(11346002)(446003)(305945005)(2351001)(76176011)(508600001)(6506007)(386003)(2501003)(6116002)(36756003)(74482002)(316002)(786003)(97736004)(4326008)(71190400001)(71200400001)(6512007)(1730700003)(105586002)(106356001)(2906002)(81156014)(81166006)(8676002)(6436002)(5640700003)(6916009)(6486002)(68736007)(8936002)(93886005)(4744005)(53936002)(25786009)(86362001)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1SPR01MB0360; H:VI1PR08MB3949.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uninett.no does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: feGOsR91C9mr8LEW6fTDIOT6QRYxGD3jb9KYThcFWzeMMiCiDVumNI5aAjIKa7L5XCG+3dt/if/vc2T/x8+8tj4Bc9aA9D6dcUN/n9W9BEeWdau7EuRbmOl3Fd+EtQbpCnq0qpR7VfbawvfttLHRfO1Iu0/haLMOV0yLZMl7r+ftbY2B755Ra/Lyyq8Aue541233+HukQqkhoVs+Sjpl9Ulx4kXWqNmeeA5coarzzhfz+YENYzR8Y7rIl9G7aeHOcSrqtkOxAjjq7+hXKa3WK+mG+peoYKlvcP/iIIuUnrezPxY8vHFBjkyyiMqF41SlyudEi72bzYh6GifA9lJVfi6f/6sTJJCgCBD4OHtSe5dLLjBveN8FkAz6mwXWE4vu33SXKSP4cFevFwAjH/CBAfvGp22q6dBjmO75UEmM71g= X-OriginatorOrg: uninett.no X-MS-Exchange-CrossTenant-Network-Message-Id: a5d09709-9cc9-468a-7279-08d6b8225903 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 10:51:39.1348 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 68763e3d-4615-4222-988f-90ba13e351e9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1SPR01MB0360 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.13.125 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119863 Archived-At: I haven't read all the messages in this thread closely, but it reminded me of a similar situation. After upgrading to emacs25 some time ago, I experienced that emacs would segfault every so often. I have been using emacs for many years, and my .emacs file is constantly tweaked, so it was difficult to pinpoint what was causing the crash. I finally discovered a way to reliably reproduce this segfault. Since I have my .emacs in git, it was simply a matter of supplying a small script that triggered the error to the 'git bisect run' command. After running for a while git was able to pinpoint the change in my .emacs that triggered the bug. --=20 - Vegard V -