From owner-freebsd-toolchain@freebsd.org Tue Mar 5 21:12:17 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E14815137E1 for ; Tue, 5 Mar 2019 21:12:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-32.consmr.mail.ne1.yahoo.com (sonic301-32.consmr.mail.ne1.yahoo.com [66.163.184.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6290C88EDA for ; Tue, 5 Mar 2019 21:12:16 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 7BcSr1UVM1l4HMa2snRHTvOc8ztBLaoY1RgHPgj3Z9QOo3rT5NOEtfB87by0We0 os8QV74ZsAahQWlqnc9_aWodnA.OWNX3APXnKgLiQcVCn7O24mPkRhISUrHEmvVltw.wL66jo9j6 S3klFNcfBqWYU6z1PLSCatdS.fJ3jhx087y21qNII1kdV7SUKvcvfdXovizLnVRTLYChxDYpEsCm wt6JG8J7dL84rsWXIr6WTiWIsmcAT65lXA.4NLcsX_vyiR9xV9gkSxmIHRYoFYfGHhNRxLIhq.Hi baLqKadrQLbCFGokn9xbYqwlxD0L6u4mh5bImSzqEJdH9iP8bsUkSkNeGDDNwGygnzghQAlAgHur iUUwOg7lGF69mVaKg.EVSUh.jAez_Oc.8jYXpEAc0qpR812boVlwmR3gQeYai4lAaGQCRkiUMXVu OlxQThBcEzF83JYKuw.2LXj5KTZE_MEgw511E.DsCyL5rhOe6gm8vk7vgkkgtLAeYOxA2MX6osoK USRJUtsQD73hem2aKEGFehwN7tcUULPbjpvULt4Tg8t.hrS54icJam9LMIrblLXaJ48JdlEToA2u hmRqQEAlwJiEqgc1sFVQLcQrMhqxxKiLEXBU1NrPuvQQ1Vbbwe82eDrAUDwHHvUwE_z.bxLH3peJ grecAUaw7OGizeYhLRH8UnEWto2vRd8wpkJtlq9_LgrsFYdPZI8JHaEEjsD8dcPoY6t_5pDPKFcR x5c6oEvpdUIfCcCxrEZg.nq0XgVVD8DcDoC56.2_yqHLs6Oo3kzh7HtnINc4ZBI338f4hXFyQ2b. vXjkwacR6ibfheBgtu6C9V71d5R9dUHaH5FTbOO5m2r1MHtdiDeE8y4RF7Hvy8B2g4odMoPe6d3n DJmP2y3HVn3P8fHMH9aBvJ7xiNaR7uxB3p1IZ2iKkXQRZ.chYHDbrTw6hM_fI4o56ZSAI_ASHRZ4 _LTYdf_bCgKT.hTfOWJg_1OfnKW.loJejLKbe45C9Xit3EVkFDjLAQ5I.vmL921qInzQIZ6bgi1b bDYx1AVK2b2J8Ld4Eqd22RzkeFxLQI0b8LRhlrs2gHkNa0VwxQIXoftj5Zvo2a4I- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 5 Mar 2019 21:12:14 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.115]) ([67.170.167.181]) by smtp426.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID cb764fd4e90ffe12eeee0268693c5fc5; Tue, 05 Mar 2019 21:12:12 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: FYI on powerpc64: an apparent ctfmerge unbounded recursion error on kernel.full built by system clang (7) and devel/powerpc64-binutils ? Message-Id: <6277E1EE-59C6-4A84-8714-9E0BFFB02A75@yahoo.com> Date: Tue, 5 Mar 2019 13:12:10 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 6290C88EDA X-Spamd-Bar: ++++ X-Spamd-Result: default: False [4.61 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; NEURAL_SPAM_SHORT(0.96)[0.956,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.32)[ip: (4.41), ipnet: 66.163.184.0/21(1.25), asn: 36646(1.00), country: US(-0.07)]; NEURAL_SPAM_MEDIUM(0.90)[0.899,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.95)[0.947,0]; RCVD_IN_DNSWL_NONE(0.00)[201.184.163.66.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[201.184.163.66.rep.mailspike.net : 127.0.0.17] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2019 21:12:18 -0000 The context here is head -r344018 based that was built via devel/powerpc64-xtoolchain-gcc facilities (that included building system clang 7). I attempted to have a system-clang based buildworld buildkernel that used /usr/local/powerpc64-unknown-freebsd13.0/bin/ld and such. Until I can synchronize and test a more modern head (including an updated clang) and ports, the below is probably just informational in case someone else runs into something similar. The: ctfmerge -L VERSION -g -o kernel.full locore.o cam.o cam_compat.o = cam_iosched.o got a segmentation fault but gdb shows over 13,000 levels of subroutine calls and a stack-access related failure: # gdb = /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/powerpc= .powerpc64/tmp/usr/bin/ctfmerge = /usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/powerpc= .powerpc64/sys/GENERIC64vtsc-NODBG/ctfmerge.57350.core . . . Core was generated by `ctfmerge -L VERSION -g -o kernel.full locore.o = cam.o cam_compat.o cam_iosched.o'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000010006588 in .hash_find_first_cb () [Current thread is 1 (LWP 100604)] (gdb) info reg r1 r1 0x3fffffffdf9fc000 4611686017884209152 (gdb) disass Dump of assembler code for function .hash_find_first_cb: 0x0000000010006584 <+0>: mflr r0 =3D> 0x0000000010006588 <+4>: std r31,-8(r1) 0x000000001000658c <+8>: std r0,16(r1) . . . (gdb) info threads Id Target Id Frame=20 * 1 LWP 100604 0x0000000010006588 in .hash_find_first_cb () 2 LWP 100220 0x0000000010045f88 in .__sys.umtx_op () 3 LWP 100602 0x0000000010045f84 in .__sys.umtx_op () 4 LWP 100603 0x0000000010045f84 in .__sys.umtx_op () 5 LWP 100605 0x0000000010045f84 in .__sys.umtx_op () 6 LWP 100606 0x0000000010045f84 in .__sys.umtx_op ()(gdb) bt #0 0x0000000010006588 in hash_find_first_cb (node=3D0x81cfc28b0, = arg=3D0x3fffffffdf9fc128) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/hash.c:187 #1 0x0000000010008250 in list_iter (list=3D0x81cfc28b0, func=3D, private=3D0x3fffffffdf9fc128) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/common/list.c:127 #2 0x0000000010006538 in hash_match (hash=3D0x81711dc40, key=3D, fun=3D@0x100f5360: 0x10006584 , = private=3D0x81711dc40) at /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/hash.c:149 #3 hash_find (hash=3D, key=3D, = value=3D) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/hash.c:207 #4 0x0000000010000cb8 in alist_find (alist=3D, = name=3D, value=3D0x3fffffffdf9fc280) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/alist.c:130 #5 0x000000001000a290 in get_mapping (ta=3D, = srcid=3D) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:195 #6 equiv_node (ctdp=3D0x81c109180, mtdp=3D0x81df6dfc0, = ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:365 #7 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 #8 0x000000001000a34c in equiv_node (ctdp=3D0x81c10b740, = mtdp=3D0x81df7a1c0, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #9 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 #10 0x000000001000a34c in equiv_node (ctdp=3D0x81c1091c0, = mtdp=3D0x81df7a000, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #11 0x000000001000a34c in equiv_node (ctdp=3D0x81c109180, = mtdp=3D0x81df6dfc0, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #12 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 #13 0x000000001000a34c in equiv_node (ctdp=3D0x81c10b740, = mtdp=3D0x81df7a1c0, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #14 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 #15 0x000000001000a34c in equiv_node (ctdp=3D0x81c1091c0, = mtdp=3D0x81df7a000, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #16 0x000000001000a34c in equiv_node (ctdp=3D0x81c109180, = mtdp=3D0x81df6dfc0, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #17 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 #18 0x000000001000a34c in equiv_node (ctdp=3D0x81c10b740, = mtdp=3D0x81df7a1c0, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #19 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 #20 0x000000001000a34c in equiv_node (ctdp=3D0x81c1091c0, = mtdp=3D0x81df7a000, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #21 0x000000001000a34c in equiv_node (ctdp=3D0x81c109180, = mtdp=3D0x81df6dfc0, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:384 #22 0x0000000010009290 in equiv_su (stdp=3D, = ttdp=3D, ed=3D0x3fffffffdfbfa1f8) at = /usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/merge.c:291 . . . Going the other way: . . . #13082 0x0000000000000000 in ?? () (gdb) down #13081 0x0000000010035010 in .thread_start () (gdb)=20 #13080 0x0000000010005864 in .worker_thread () (gdb)=20 #13079 0x0000000010008900 in .merge_into_master () (gdb)=20 #13078 0x00000000100060c8 in .hash_iter () (gdb)=20 #13077 0x0000000010008250 in .list_iter () (gdb)=20 #13076 0x0000000010009794 in .merge_type_cb () (gdb)=20 #13075 0x000000001000d500 in .iitraverse () (gdb)=20 #13074 0x000000001000d320 in .tdtraverse () (gdb)=20 #13073 0x000000001000d654 in .tdtrav_plain () (gdb)=20 #13072 0x000000001000d320 in .tdtraverse () (gdb)=20 #13071 0x000000001000d654 in .tdtrav_plain () (gdb)=20 #13070 0x000000001000d320 in .tdtraverse () (gdb)=20 #13069 0x000000001000d764 in .tdtrav_func () (gdb)=20 #13068 0x000000001000d320 in .tdtraverse () (gdb)=20 #13067 0x000000001000d654 in .tdtrav_plain () (gdb)=20 #13066 0x000000001000d320 in .tdtraverse () (gdb)=20 #13065 0x000000001000d7f8 in .tdtrav_su () (gdb)=20 #13064 0x000000001000d320 in .tdtraverse () (gdb)=20 #13063 0x000000001000d654 in .tdtrav_plain () (gdb)=20 #13062 0x000000001000d320 in .tdtraverse () (gdb)=20 #13061 0x000000001000d7f8 in .tdtrav_su () (gdb)=20 #13060 0x000000001000d368 in .tdtraverse () (gdb)=20 #13059 0x000000001000a468 in .map_td_tree_post () (gdb)=20 #13058 0x00000000100063dc in .hash_find_iter () (gdb)=20 #13057 0x0000000010008250 in .list_iter () (gdb)=20 #13056 0x0000000010006494 in .hash_find_list_cb () (gdb)=20 #13055 0x000000001000a0dc in .equiv_cb () (gdb)=20 #13054 0x000000001000a34c in .equiv_node () (gdb)=20 #13053 0x000000001000a34c in .equiv_node () (gdb)=20 #13052 0x0000000010009290 in .equiv_su () (gdb)=20 #13051 0x000000001000a34c in .equiv_node () (gdb)=20 #13050 0x0000000010009290 in .equiv_su () (gdb)=20 #13049 0x000000001000a34c in .equiv_node () (gdb)=20 #13048 0x000000001000a34c in .equiv_node () (gdb)=20 #13047 0x0000000010009290 in .equiv_su () (gdb)=20 #13046 0x000000001000a34c in .equiv_node () . . . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)