From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ahmed Khanzada Newsgroups: gmane.emacs.bugs Subject: bug#46111: Reverting fns.c hash function due to OpenBSD/SPARC64 compile breaking Date: Wed, 27 Jan 2021 20:06:01 -0800 Message-ID: <871re5vh7a.fsf@ultra.enzu.ru> References: <87sg6oyzi6.wl-me@enzu.ru> <6915951F-2A53-4B08-A48A-6683B99AA14A@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3954"; mail-complaints-to="usenet@ciao.gmane.io" To: eliz@gnu.org, 46111@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 05:07:22 2021 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 1l4yaX-0000tW-1A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 05:07:21 +0100 Original-Received: from localhost ([::1]:60060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4yaW-0005b2-03 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jan 2021 23:07:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4yaG-0005ah-Ty for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 23:07:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4yaE-0002au-5I for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 23:07:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4yaD-0000yA-VM for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 23:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ahmed Khanzada Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 04:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46111 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Eli Zaretskii , bug-gnu-emacs@gnu.org, 46111@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16118067783648 (code B ref -1); Thu, 28 Jan 2021 04:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jan 2021 04:06:18 +0000 Original-Received: from localhost ([127.0.0.1]:46723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4yZW-0000wl-0z for submit@debbugs.gnu.org; Wed, 27 Jan 2021 23:06:18 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4yZR-0000wV-4D for submit@debbugs.gnu.org; Wed, 27 Jan 2021 23:06:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4yZQ-0005LQ-4m for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 23:06:12 -0500 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:34697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4yZN-0002Jz-WA for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2021 23:06:11 -0500 Original-Received: by mail-pj1-x102a.google.com with SMTP id my11so4086338pjb.1 for ; Wed, 27 Jan 2021 20:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enzu-ru.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=dpDxE+PvzrRbU9rSsI4Tu5A1zNL5zoSd1OwmHD1706M=; b=Xo4qVT27QsSvXXzm90ndKc9IewlpjjnIqq++UBKgHFVjBB/Fh89cOP1T69KHI+JJGb GrmybGcf4033Rg6/BzbrPEr7ZlMobHENdf0FSlmQPu6paP86FEX5gQgIqlGIkDpdaQr8 u39qWrmlsPj5DO8JApbpY5mMo9TO/fStItzG2nyeaDfjVJSKxLibcM+7sJ3gvqPz8hxT BiOoms8QH17sgekHqR0BSU8PxyQQtQA86Nfo/nEcU5poabdIYSQGcBo5sWjFJvAsIHfs sNOl+GyRjFrqeNIecsFUV4fAcP+liXgb0slxu+y2UcwplNGPIG6J9tfk+bYQOzKu2Q/n 7vXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=dpDxE+PvzrRbU9rSsI4Tu5A1zNL5zoSd1OwmHD1706M=; b=RgpRFrns2NOAYHIJ0fSPG2w3fFXapqfRk3/B6WtGpgoU2yy59BsMjGh+TyPAPcNUat Yytq4t2Qv8jMkOHkgCjLSyYB4arNesnYjVDWl6l1d/jaQgAN0QrqBBb+KjzjTH60h3GW 4oYMvPUwiXXj28UxHVfgveiAwBJYFA79Mr0r3aI/Hv29ZWm0zINM9BHDbxZetkvhQDCn n5vKxHVvwliUex2xo79snIuFVarjVaq2ZLQ9aty3DwrzMbRMdqhRT61yKNetHFTUwMC9 LzV29/Kavsbb/P714FrW9Fo5eAKXwh5jX6/IOKgD6PBg4UpBfL+85IlHJ3868LI2a2SA OMKA== X-Gm-Message-State: AOAM533qSXGhJ6wcWXLFJa98kltzHdoAIOXCurBJrh7sj322zbnABk7R Bdx48KhmpDI0rMus253fapbE17lsKyCaQQ== X-Google-Smtp-Source: ABdhPJz1m9SIBW1RMUYHYsXLRLyhYZSE1cZzkIlDMb35YQbOsCfUD17PIQLsRy6ldmbif7uv1W68JQ== X-Received: by 2002:a17:902:74cb:b029:df:f561:c06c with SMTP id f11-20020a17090274cbb02900dff561c06cmr14616063plt.81.1611806765877; Wed, 27 Jan 2021 20:06:05 -0800 (PST) Original-Received: from ultra.enzu.ru (cpe-45-48-14-47.socal.res.rr.com. [45.48.14.47]) by smtp.gmail.com with ESMTPSA id u26sm3829815pfm.61.2021.01.27.20.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 20:06:05 -0800 (PST) In-Reply-To: <6915951F-2A53-4B08-A48A-6683B99AA14A@gnu.org> Received-SPF: none client-ip=2607:f8b0:4864:20::102a; envelope-from=me@enzu.ru; helo=mail-pj1-x102a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:198732 Archived-At: Eli Zaretskii writes: > On January 26, 2021 8:57:18 AM GMT+02:00, Ahmed Khanzada wrote: >> Not sure if the patch attached correctly. Trying again. > > > Thanks. However, could you please show the C-level backtrace from the SIGBUS crash, as displayed by GDB? I think we'd like to know which string has its data unaligned to cause this. Is the log below the information that you are looking for? Starting program: /home/enzuru/src/emacs/src/bootstrap-emacs Breakpoint 1, hash_string (ptr=0x47fa34d596 "DndProtocol", len=11) at fns.c:4602 4602 EMACS_UINT const *p = (EMACS_UINT const *) ptr; (gdb) info args ptr = 0x47fa34d596 "DndProtocol" len = 11 (gdb) next 4603 EMACS_UINT const *end = (EMACS_UINT const *) (ptr + len); (gdb) next 4604 EMACS_UINT hash = len; (gdb) next 4607 ptrdiff_t step = 1 + ((end - p) >> 3); (gdb) next 4611 while (p <= end - 1) (gdb) next 4613 EMACS_UINT c = *p; (gdb) next Program received signal SIGBUS, Bus error. 0x000000455fe1dc6c in hash_string (ptr=0x47fa34d596 "DndProtocol", len=11) at fns.c:4613 4613 EMACS_UINT c = *p; (gdb) backtrace #0 0x000000455fe1dc6c in hash_string (ptr=0x47fa34d596 "DndProtocol", len=11) at fns.c:4613 #1 0x000000455fe1dd48 in sxhash_string (ptr=0x47fa34d596 "DndProtocol", len=11) at fns.c:4640 #2 0x000000455fe1e36c in sxhash_obj (obj=0x47fa02f0bc, depth=0) at fns.c:4759 #3 0x000000455fe1e270 in sxhash (obj=0x47fa02f0bc) at fns.c:4741 #4 0x000000455fe1c52c in hashfn_equal (key=0x47fa02f0bc, h=0x47fa02eff0) at fns.c:4096 #5 0x000000455fe1cf44 in hash_table_rehash (hash=0x47fa02eff5) at fns.c:4342 #6 0x000000455fdc5264 in hash_table_thaw (hash=0x47fa02eff5) at pdumper.c:2652 #7 0x000000455fdcd184 in thaw_hash_tables () at pdumper.c:5477 #8 0x000000455fdcccf0 in pdumper_load (dump_filename=0x4832495d00 "/home/enzuru/src/emacs/src/bootstrap-emacs.pdmp") at pdumper.c:5405 #9 0x000000455fcea4ac in load_pdump (argc=1, argv=0xffffffffffff2968) at emacs.c:859 #10 0x000000455fceabec in main (argc=1, argv=0xffffffffffff2968) at emacs.c:1067