From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eval EXEC Newsgroups: gmane.emacs.devel Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland Date: Fri, 06 Sep 2024 14:39:27 +0800 Message-ID: <87ed5xxp40.fsf@gmail.com> References: <8734mezkgo.fsf@gmail.com> <87h6aunilt.fsf@gmail.com> <87zfomqbgk.fsf@protonmail.com> <875xrani8k.fsf@gmail.com> <86bk122azc.fsf@gnu.org> <87v7zagcal.fsf@gmail.com> <867cbp3nw7.fsf@gnu.org> <87v7z9msrl.fsf@gmail.com> <874j6tqxyg.fsf@gmail.com> <87jzfpfhmf.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 06 09:15:12 2024 Return-path: Envelope-to: ged-emacs-devel@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 1smTBV-000AWt-Ll for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Sep 2024 09:15:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smTAf-0003rs-70; Fri, 06 Sep 2024 03:14:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smSd7-0008Ra-LE for emacs-devel@gnu.org; Fri, 06 Sep 2024 02:39:37 -0400 Original-Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smSd3-0001IC-Kv; Fri, 06 Sep 2024 02:39:37 -0400 Original-Received: by mail-pl1-x642.google.com with SMTP id d9443c01a7336-2054e22ce3fso16610775ad.2; Thu, 05 Sep 2024 23:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725604772; x=1726209572; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ylhqsV4Wq/dhtqEou1Kv4V9G3S6z/RKT2/NJDX2Rmv4=; b=M6QTQ4KSMYqXDyAIRoypSH3EeR0YcNZ9Vlaq9a+V+H18mbV36tcJqKSmJnRSb/48gY NIH7GcDSgPsYHovupNtAxPRDQGZu2SnFRQem8BjsDaIZVC3HAcjENeBuvULRBTh4kcEe YPv3xshNalGuMmy5auNX1qRbMLBzex0iEAQ1GNUgUak+s/ULypTrb+JtbjEAQXyVEaZL nYA8LzPN6Z7g9VZ8Bulj58IWDkF9TXIPjReqXIyvnT34BKYe7a0feq+hrrWIpOApktpA ZHvtT4AwwJW3vBi7PLTuJkTUJLxWkvQ9lgq3SvyImDoEBrQz8yt89HkIoAfaXmWcS2vE X4BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725604772; x=1726209572; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ylhqsV4Wq/dhtqEou1Kv4V9G3S6z/RKT2/NJDX2Rmv4=; b=aZC/5/HoUNFLqufsiK92023SeF6ZYsJOnsNhmzdZgzj2BQZcRNi59bVBqy42bLoqV/ Gh1FJY6Y0ZS8HNIbb2KCkJwkFARQi6TeESZbD+yT4As8HfazcFDcWyYARLSanNvDlawl qAzX+mEvXD3buk+WYMPgUhz3LCk3Y+IJ+uZA8Rygym6cZV2tyIilZkTkwndZNQBemkYS TiURQ881qpyz8hhlvmQ0Erm8xikyiy1cLk2/69VJJwQCAKmcFnwf1h7XkYINGdDv9wS1 gPjstTcjIkoVzTvlzM7iSSambGiBILgcCENzDKayMBNbv1hPjYAiXJx3HbLZswGBm3Bq 3n0w== X-Forwarded-Encrypted: i=1; AJvYcCXNWqGA+LVRyRNF+n4KY+Lkh6ME2N9ZOg74uoNoVq6vN4TVGMlPbzac1Xs3FoDuBS+8NHeSoeJXXGYeeg==@gnu.org X-Gm-Message-State: AOJu0YxfxJnRNBk8aElIU8EXhDKfQOIfltitcei+GTtEMu8U9TulyLXC cH161ZIY2jv7Y+OB85+oXc8CZkvODbR3HJSByoOjV4rRkv+iZqN0 X-Google-Smtp-Source: AGHT+IHSs5rS6RMWEGKE+VxnSy0JvgBVtfnmSfBZeYNhHdb6UqFQwWFBvQXFlyiyAxc/5Wd9z9y4jg== X-Received: by 2002:a17:903:2344:b0:202:13c9:f8f1 with SMTP id d9443c01a7336-206f053154cmr18713675ad.27.1725604771555; Thu, 05 Sep 2024 23:39:31 -0700 (PDT) Original-Received: from localhost (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-206ae950fcfsm37635135ad.90.2024.09.05.23.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 23:39:31 -0700 (PDT) In-Reply-To: <87jzfpfhmf.fsf@protonmail.com> (Pip Cet's message of "Fri, 06 Sep 2024 05:58:34 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::642; envelope-from=execvy@gmail.com; helo=mail-pl1-x642.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 06 Sep 2024 03:14:11 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323453 Archived-At: Pip Cet writes: > "Eval EXEC" writes: > >> Eval EXEC writes: >> >>> I recompiled commit 95a30325a84 (HEAD -> scratch/igc, origin/scratch/igc) >>> * src/igc.c (fix_frame): Correct the previous change. >>> >>> After testing, I believe the issue has been resolved. >> >> scratch/igc 95a30325 crash again: >> >> I use latest scratch/igc commit: * 95a30325a84 - (HEAD -> scratch/igc, origin/scratch/igc) * src/igc.c (fix_frame): Fix last change. (8 hours ago) >> >> build it by: >> >> #!/usr/bin/env bash >> set -ex >> >> make extraclean >> >> BRANCH_NAME=$(git branch --show-current | sed 's/\//_/g') >> COMMIT_ID=$(git rev-parse --short=8 HEAD) >> BUILD_DIR=${BRANCH_NAME}-commit-${COMMIT_ID} >> INSTALL_PREFIX=$(realpath ../emacs-build/${BUILD_DIR}) >> >> ./autogen.sh >> ./configure CFLAGS='-g3 -ggdb -O2 -fno-omit-frame-pointer -mtune=native -march=native' \ >> --prefix=${INSTALL_PREFIX} \ >> --with-mps=yes \ >> --with-imagemagick \ >> --with-modules \ >> --without-compress-install \ >> --with-native-compilation --with-mailutils\ >> --enable-link-time-optimization \ >> --with-tree-sitter --with-xinput2 \ >> --with-dbus --with-native-compilation=aot \ >> --with-file-notification=inotify\ >> && make -j30 install >> >> rm ../emacs-build/emacs >> ln -s ${INSTALL_PREFIX} ../emacs-build/emacs > > Thanks, and sorry you're seeing so many crashes. It's stable here, so > we're going to need your help debugging this :-) > > Did you use any special options or patches when building mps (link time > optimization or -O3, in particular)? Could you please try (but please > keep the core file and binary for this crash) rebuilding mps with "-g3 > -ggdb -O0" to see whether the problem is, maybe, mps rather than Emacs? > That should also improve the debugging output, so please provide further > crashes if they do happen with those options. > >> #9 0x0000000000690c05 in fix_lisp_obj (ss=ss@entry=0x7ffc7653e6f8, pobj=pobj@entry=0x7f08addd06b8) at /home/exec/Projects/git.savannah.gnu.org/git/emacs/src/igc.c:975 > > This is the car of a cons cell, and it looks like it was freed by a > previous garbage collection so it's no longer valid. > >> off = >> client = >> base = 0x7f088a262a50 > > Could you open the coredump again and run > > (gdb) x/32gx 0x7f088a262a00 > > so we can get an idea of what was allocated around that time? > >> res = >> new_off = >> p = 0x7f08addd06b8 >> word = >> tag = >> _ss = 0x7ffc7653e6f8 >> _mps_zs = >> _mps_ufs = 36029896530599944 >> _mps_wt = >> _mps_w = >> #10 0x00000000006919f8 in fix_cons (cons=0x7f08addd06b0, ss=0x7ffc7653e6f8) at /home/exec/Projects/git.savannah.gnu.org/git/emacs/src/igc.c:1751 > > This is the cons cell itself (the IGC header is what "cons" points to). > > Please also run > > (gdb) x/64gx 0x7f08addd0600 > > Thanks! > > Pip Hello Pip, what git commit hash or git tag show I compile from https://github.com/Ravenbrook/mps Should I compile mps from latest master branch, commit hash: e2f9497bf3b842fdaa21942da4edd1e6f02b9509 ? --