From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cp165172.hpdns.net (cp165172.hpdns.net [91.238.165.172]) by sourceware.org (Postfix) with ESMTPS id 1F5B7386F02B for ; Thu, 28 May 2020 17:30:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1F5B7386F02B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dyxyl.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=qqxnjvamvxwx@dyxyl.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dyxyl.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=x125WQf3QcMogfmNVgqm5VpltD/J3atiEGiKaVqYpJk=; b=HLhVLzahD46CSnBF8GQiWOhtVW tbuZ/Kb2jBHhqiL8Iqqzco1S6b4tV5cYBp/iiWxHDCsAriA7Ji4ARzG0I1IMK2UKMuh+4GLjI8aGB 3n4AdRijbi++ekH5M5VTn9thb30BOPKGkKdMIgd4msz2HuHrjVCiP3wJ+27hVa3buY/4=; Received: from cpc92314-cmbg19-2-0-cust794.5-4.cable.virginm.net ([82.11.187.27]:40920 helo=localhost.localdomain) by cp165172.hpdns.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jeMMg-00AZsG-Qo; Thu, 28 May 2020 18:30:46 +0100 Received: by localhost.localdomain (Postfix, from userid 597) id 6B64560653; Thu, 28 May 2020 18:30:46 +0100 (BST) From: Martin Simmons <"martin@qqxnjvamvxwx"@dyxyl.com> To: Chris Nicol Cc: qqxnjvamvxwx@dyxyl.com, simark@simark.ca, gdb@sourceware.org Subject: Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration" In-Reply-To: <705eb7bb-78e8-550f-9a21-d56180cebaf5@uleth.ca> (message from Chris Nicol on Thu, 28 May 2020 08:40:03 -0600) References: <052613da-fdbe-707b-3a52-da7ce437d424@uleth.ca> <1b20f6d8-9736-02d8-73dc-bc4843e36ed3@simark.ca> <198ff4bc-8195-750e-84f5-e3d76974a223@uleth.ca> <88abec76-ad36-1562-d93b-d1159430bf2d@uleth.ca> <04509e3f-e5d9-72fb-1b1a-6d58a08482a2@simark.ca> <359bdbb1-c4ab-b89c-6d0a-f18025c64da8@simark.ca> <46566349-c023-6a75-7006-268aad4913c6@uleth.ca> <705eb7bb-78e8-550f-9a21-d56180cebaf5@uleth.ca> Date: Thu, 28 May 2020 18:30:46 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-cPanel-MailScanner-Information: Please contact the ISP for more information X-cPanel-MailScanner-ID: 1jeMMg-00AZsG-Qo X-cPanel-MailScanner: Found to be clean X-cPanel-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.052, required 5, ALL_TRUSTED -1.00, BAYES_50 0.80, KAM_LOTSOFHASH 0.25, KAM_SHORT 0.00, URIBL_BLOCKED 0.00) X-cPanel-MailScanner-From: qqxnjvamvxwx@dyxyl.com X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HK_RANDOM_ENVFROM, KAM_LOTSOFHASH, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp165172.hpdns.net X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dyxyl.com X-Get-Message-Sender-Via: cp165172.hpdns.net: authenticated_id: dyxyl/from_h X-Authenticated-Sender: cp165172.hpdns.net: martin@qqxnjvamvxwx@dyxyl.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2020 17:30:53 -0000 OK, that shows a reasonable set of registers and a reasonable backtrace. It shows that llvm-tblgen jumped to address 0 from inside __once_proxy for some reason. Gdb seems to be working, at least for this core file, so you can safely ignore the OS ABI warning. __Martin >>>>> On Thu, 28 May 2020 08:40:03 -0600, Chris Nicol said: > > Thanks, Martin. Here is the log from > > /usr/local/bin/gdb ./llvm-tblgen llvm-tblgen.core: > > nicolc@phonix:~/llvm/llvm-9.0.1.src/Mybuilddir/bin % /usr/local/bin/gdb > ./llvm-tblgen llvm-tblgen.core > /usr/local/bin/gdb: warning: A handler for the OS ABI "FreeBSD" is not > built into this configuration > of GDB. Attempting to continue with the default sparc settings. > > GNU gdb (GDB) 9.1 > Copyright (C) 2020 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "sparc64-unknown-freebsd12.1". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from ./llvm-tblgen... > [New LWP 100161] > Core was generated by `./llvm-tblgen -version'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x0000000000000000 in ?? () > (gdb) info all > g0 0x0 0 > g1 0x0 0 > g2 0x417bfddc 1098644956 > g3 0x80000000 2147483648 > g4 0x4090c000 1083228160 > g5 0x408a6688 1082812040 > g6 0x0 0 > g7 0x408ad910 1082841360 > o0 0x408a6698 1082812056 > o1 0x2 2 > o2 0x10 16 > o3 0xf4 244 > o4 0x106838 1075256 > o5 0x7fffffff 2147483647 > sp 0x7fdffffd5e1 0x7fdffffd5e1 > o7 0x41017944 1090615620 > l0 0x0 0 > l1 0x4090c000 1083228160 > l2 0x1 1 > l3 0x0 0 > l4 0x0 0 > l5 0x0 0 > l6 0x0 0 > l7 0x41238000 1092845568 > i0 0x884c80 8932480 > i1 0x3 3 > i2 0x0 0 > i3 0x0 0 > i4 0x0 0 > i5 0x0 0 > fp 0x7fdffffd691 0x7fdffffd691 > i7 0x409addf0 1083891184 > f0 0 (raw 0x00000000) > f1 0 (raw 0x00000000) > f2 0 (raw 0x00000000) > f3 0 (raw 0x00000000) > f4 0 (raw 0x00000000) > f5 0 (raw 0x00000000) > f6 0 (raw 0x00000000) > f7 0 (raw 0x00000000) > f8 0.00999999978 (raw 0x3c23d70a) > f9 0 (raw 0x00000000) > f10 2 (raw 0x40000000) > f11 0 (raw 0x00000000) > --Type for more, q to quit, c to continue without paging-- > f12 0 (raw 0x00000000) > f13 0 (raw 0x00000000) > f14 0 (raw 0x00000000) > f15 0 (raw 0x00000000) > f16 0 (raw 0x00000000) > f17 0 (raw 0x00000000) > f18 0 (raw 0x00000000) > f19 0 (raw 0x00000000) > f20 0 (raw 0x00000000) > f21 0 (raw 0x00000000) > f22 0 (raw 0x00000000) > f23 0 (raw 0x00000000) > f24 0 (raw 0x00000000) > f25 0 (raw 0x00000000) > f26 0 (raw 0x00000000) > f27 0 (raw 0x00000000) > f28 0 (raw 0x00000000) > f29 0 (raw 0x00000000) > f30 0 (raw 0x00000000) > f31 0 (raw 0x00000000) > f32 0 (raw 0x0000000000000000) > f34 0 (raw 0x0000000000000000) > f36 0 (raw 0x0000000000000000) > f38 0 (raw 0x0000000000000000) > f40 0 (raw 0x0000000000000000) > f42 0 (raw 0x0000000000000000) > f44 0 (raw 0x0000000000000000) > f46 0 (raw 0x0000000000000000) > f48 0 (raw 0x0000000000000000) > f50 0 (raw 0x0000000000000000) > f52 0 (raw 0x0000000000000000) > f54 0 (raw 0x0000000000000000) > f56 0 (raw 0x0000000000000000) > f58 0 (raw 0x0000000000000000) > f60 0 (raw 0x0000000000000000) > f62 0 (raw 0x0000000000000000) > pc 0x0 0x0 > npc 0x4 0x4 > state 0x4400001205 292057780741 > fsr 0x0 [ ] > fprs 0x3 [ DL DU ] > y 0x0 0 > cwp 0x5 5 > pstate 0x12 [ IE PEF ] > --Type for more, q to quit, c to continue without paging-- > asi 0x0 0 > ccr 0x44 [ icc.z xcc.z ] > d0 0 (raw 0x0000000000000000) > d2 0 (raw 0x0000000000000000) > d4 0 (raw 0x0000000000000000) > d6 0 (raw 0x0000000000000000) > d8 5.3776417829113669e-19 (raw 0x3c23d70a00000000) > d10 2 (raw 0x4000000000000000) > d12 0 (raw 0x0000000000000000) > d14 0 (raw 0x0000000000000000) > d16 0 (raw 0x0000000000000000) > d18 0 (raw 0x0000000000000000) > d20 0 (raw 0x0000000000000000) > d22 0 (raw 0x0000000000000000) > d24 0 (raw 0x0000000000000000) > d26 0 (raw 0x0000000000000000) > d28 0 (raw 0x0000000000000000) > d30 0 (raw 0x0000000000000000) > d32 0 (raw 0x0000000000000000) > d34 0 (raw 0x0000000000000000) > d36 0 (raw 0x0000000000000000) > d38 0 (raw 0x0000000000000000) > d40 0 (raw 0x0000000000000000) > d42 0 (raw 0x0000000000000000) > d44 0 (raw 0x0000000000000000) > d46 0 (raw 0x0000000000000000) > d48 0 (raw 0x0000000000000000) > d50 0 (raw 0x0000000000000000) > d52 0 (raw 0x0000000000000000) > d54 0 (raw 0x0000000000000000) > d56 0 (raw 0x0000000000000000) > d58 0 (raw 0x0000000000000000) > d60 0 (raw 0x0000000000000000) > d62 0 (raw 0x0000000000000000) > q0 0 (raw 0x00000000000000000000000000000000) > q4 0 (raw 0x00000000000000000000000000000000) > q8 7.03365791880182537906194915943984275e-298 (raw > 0x3c23d70a000000004000000000000000) > q12 0 (raw 0x00000000000000000000000000000000) > q16 0 (raw 0x00000000000000000000000000000000) > q20 0 (raw 0x00000000000000000000000000000000) > q24 0 (raw 0x00000000000000000000000000000000) > q28 0 (raw 0x00000000000000000000000000000000) > q32 0 (raw 0x00000000000000000000000000000000) > q36 0 (raw 0x00000000000000000000000000000000) > --Type for more, q to quit, c to continue without paging-- > q40 0 (raw 0x00000000000000000000000000000000) > q44 0 (raw 0x00000000000000000000000000000000) > q48 0 (raw 0x00000000000000000000000000000000) > q52 0 (raw 0x00000000000000000000000000000000) > q56 0 (raw 0x00000000000000000000000000000000) > q60 0 (raw 0x00000000000000000000000000000000) > (gdb) where > #0 0x0000000000000000 in ?? () > #1 0x000000004101794c in __once_proxy () from > /usr/local/lib/gcc9/libstdc++.so.6 > #2 0x00000000409addf8 in pthread_once () from /lib/libthr.so.3 > #3 0x000000000059ca94 in __gthread_once (__once=0x884c80 > , __func=0x41017920 <__once_proxy>) > at > /usr/local/lib/gcc9/include/c++/sparc64-portbld-freebsd12.1/bits/gthr-default.h:700 > #4 0x000000000059ceb0 in std::call_once (__once=..., > __f=@0x59c494: {void (void)} 0x59c494 ) > at /usr/local/lib/gcc9/include/c++/mutex:683 > #5 0x000000000059cc14 in llvm::call_once (flag=..., > F=@0x59c494: {void (void)} 0x59c494 ) > at > /home/nicolc/llvm/llvm-9.0.1.src/include/llvm/Support/Threading.h:104 > #6 0x000000000059c52c in getManagedStaticMutex () at > /home/nicolc/llvm/llvm-9.0.1.src/lib/Support/ManagedStatic.cpp:30 > #7 0x000000000059c5d8 in llvm::ManagedStaticBase::RegisterManagedStatic > (this=0x884230 , > Creator=0x577f08 namespace)::CommandLineParser>::call()>, > Deleter=0x577fb0 namespace)::CommandLineParser>::call(void*)>) > at /home/nicolc/llvm/llvm-9.0.1.src/lib/Support/ManagedStatic.cpp:38 > #8 0x000000000057784c in llvm::ManagedStatic<(anonymous > namespace)::CommandLineParser, llvm::object_creator<(anonymous > namespace)::CommandLineParser>, llvm::object_deleter<(anonymous > namespace)::CommandLineParser> >::operator* (this=0x884230 ) > at > /home/nicolc/llvm/llvm-9.0.1.src/include/llvm/Support/ManagedStatic.h:89 > #9 0x0000000000576cc0 in llvm::ManagedStatic<(anonymous > namespace)::CommandLineParser, llvm::object_creator<(anonymous > namespace)::CommandLineParser>, llvm::object_deleter<(anonymous > namespace)::CommandLineParser> >::operator-> (this=0x884230 ) > at > /home/nicolc/llvm/llvm-9.0.1.src/include/llvm/Support/ManagedStatic.h:94 > #10 0x000000000056921c in llvm::cl::OptionCategory::registerCategory > (this=0x883288 ) > at /home/nicolc/llvm/llvm-9.0.1.src/lib/Support/CommandLine.cpp:468 > #11 0x000000000013e508 in llvm::cl::OptionCategory::OptionCategory > (this=0x883288 , Name=..., Description=...) > at > /home/nicolc/llvm/llvm-9.0.1.src/include/llvm/Support/CommandLine.h:199 > #12 0x0000000000139400 in __static_initialization_and_destruction_0 > (__initialize_p=1, __priority=65535) > at > /home/nicolc/llvm/llvm-9.0.1.src/utils/TableGen/AsmMatcherEmitter.cpp:126 > #13 0x000000000013951c in _GLOBAL__sub_I_AsmMatcherEmitter.cpp(void) () > at > /home/nicolc/llvm/llvm-9.0.1.src/utils/TableGen/AsmMatcherEmitter.cpp:3918 > #14 0x000000004087f504 in ?? () from /libexec/ld-elf.so.1 > Backtrace stopped: previous frame identical to this frame (corrupt stack?) > (gdb) > > On 5/28/2020 4:57 AM, Martin Simmons wrote: > > Hi Chris, > > > > I received your email below but it looks like the mailing list rejected > > it. For a small amount of output, it is better to just paste the text > > into the email rather than attaching an rtf. > > > > I can see what causes the warning but I think it might be unrelated to > > the problem of debugging llvm-tblgen. > > > > Rather than running gdb inside gdb, please just run: > > > > /usr/local/bin/gdb ./llvm-tblgen llvm-tblgen.core > > > > and then use the gdb commands: > > > > info all > > where > > > > and send the full output. > > > > __Martin > > > -- > ______________________________________________________________________ > Dr. Christopher J. Nicol, Phone: (403) 329-2261 > University Librarian and FAX: (403) 329-2234 > Professor of Economics, > The University of Lethbridge, E-Mail: nicolc@uleth.ca > Lethbridge, Alberta, T1K 3M4, CANADA. http://people.uleth.ca/~nicolc >