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: Re: Using 'git bisect' to pinpoint errors in .emacs. Was: Fatal error 11: Segmentation Fault Date: Thu, 4 Apr 2019 07:40:01 +0000 Message-ID: <1s4l7egqw9.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> <1spnq3gy4i.fsf_-_@uninett.no> <86ftqzxikb.fsf@zoho.eu> 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="130073"; mail-complaints-to="usenet@blaine.gmane.org" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 09:40:50 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 1hBwzR-000XkS-Gy for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2019 09:40:49 +0200 Original-Received: from localhost ([127.0.0.1]:47895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBwzQ-0007by-FK for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2019 03:40:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBwyk-0007K0-Qc for help-gnu-emacs@gnu.org; Thu, 04 Apr 2019 03:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBwyj-0001z6-Ds for help-gnu-emacs@gnu.org; Thu, 04 Apr 2019 03:40:06 -0400 Original-Received: from mail-eopbgr40101.outbound.protection.outlook.com ([40.107.4.101]:36580 helo=EUR03-DB5-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 1hBwyi-0001va-I9 for help-gnu-emacs@gnu.org; Thu, 04 Apr 2019 03:40:05 -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=BfrlYYnxUm+6xv9gPBrvB/H4sRo5STLaGwOLg8VSzsk=; b=1NSN6kYORqvd5SNmb+N/MVTeiSug20vWY5XWed17z1R9R7cNlc4q3Iyzr+WU/L5oa1yFxuU7nAA+2/Fgpqz/93z4FBrcRQPOIPYGR4VhzUK1GuO0UAsUp/o6bkwAt0VTHbde7XDj1yIN9TljH4qcH3nKiNJnKBE0hRqifS0Fsfg= Original-Received: from VI1PR08MB3949.eurprd08.prod.outlook.com (20.178.125.146) by VI1PR08MB4383.eurprd08.prod.outlook.com (20.179.28.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Thu, 4 Apr 2019 07:40:01 +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; Thu, 4 Apr 2019 07:40:01 +0000 Thread-Topic: Using 'git bisect' to pinpoint errors in .emacs. Was: Fatal error 11: Segmentation Fault Thread-Index: AQHU6rmcx9CiSMqPG0KTIMpAOjLSAg== In-Reply-To: <86ftqzxikb.fsf@zoho.eu> (Emanuel Berg's message of "Wed, 3 Apr 2019 16:35:48 +0200") Accept-Language: en-US Content-Language: en-US x-clientproxiedby: HE1PR0901CA0050.eurprd09.prod.outlook.com (2603:10a6:3:45::18) 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: 7d24c522-c227-4a6b-6efe-08d6b8d0bea0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(5600139)(711020)(4605104)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7025125)(7027125)(7023125)(2017052603328)(7193020); SRVR:VI1PR08MB4383; x-ms-traffictypediagnostic: VI1PR08MB4383: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(979002)(39840400004)(346002)(366004)(136003)(396003)(376002)(189003)(199004)(5640700003)(52116002)(5660300002)(6512007)(2906002)(76176011)(6916009)(53936002)(106356001)(476003)(105586002)(44832011)(508600001)(446003)(7736002)(99286004)(46003)(6506007)(786003)(2351001)(102836004)(74482002)(6486002)(14454004)(486006)(386003)(2616005)(2501003)(316002)(86362001)(71200400001)(25786009)(11346002)(256004)(36756003)(6246003)(81166006)(8936002)(8676002)(81156014)(68736007)(305945005)(229853002)(6436002)(6116002)(186003)(93886005)(97736004)(71190400001)(142923001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR08MB4383; H:VI1PR08MB3949.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: uaHy6IRxvTfDYv5tJ3ysve+KE+wxoKvd920Vkrez3SzS3H1e3qT05fgLIKwOukyOUrQjPQrGQRg3vriPDAVJUuXN4ZzCuFcovUvJ7WfJ8Z4pSiIRWwmK69SSAiZqJBWMIDx/Qlbr6b3bc4XTcU2nR0lml+Rapw3gpTw9/BJ/wTCsRGmY0I6FFo9H9Uc+6PnjIXI+NY+6wTFDCnNjBiK3IMBh9aOWjSYqeusRjINUzYhr7kCt4vpDypZEKLmfeLXhMeMquoRmXXi/U4W67xakMU45RQE6S2co5wn+eBIvLNCPbpRRyFITYpPe/DHreuOS4117Uc+PkAmcGuhwgyGdoSYHe9Bo67MGWHp92gRIRI3iFuvUkRlD2SmT+XaWsadLhjX1sR7aO69wTBLqN0EHVHRpPz22isw7QkT/+ZnPgQ0= X-OriginatorOrg: uninett.no X-MS-Exchange-CrossTenant-Network-Message-Id: 7d24c522-c227-4a6b-6efe-08d6b8d0bea0 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 07:40:01.4390 (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: VI1PR08MB4383 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.4.101 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:119900 Archived-At: On Wed, 3 Apr 2019 16:35:48 +0200 Emanuel Berg wrote: > Vegard Vesterheim wrote: >> 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.=20 > > Interesting. And what small script was that, if > I may? When calling 'git bisect run' you are supposed to supply a script which exits with code 0 if the source code is good, and exits with a code between 1 and 127 (inclusive), except 125, if the current source code is bad/new. In my specific case, I discovered that simply creating two consecutive frames caused a segfault. So I created this script: ----- snip - snip ------------------------------------------------- #!/bin/sh emacs -f make-frame-command -f make-frame-command -f kill-emacs if [ "$?" -ne '0' ]; then exit 127 fi ----- snip - snip ------------------------------------------------- BTW, I compiled the latest emacs source from git, and observed that the bug is present also there. I guess I should take another stab at identifying a minimal configuration which can be supplied with a proper bug report. --=20 - Vegard V -