From owner-freebsd-arch@freebsd.org Mon May 7 21:27:18 2018 Return-Path: Delivered-To: freebsd-arch@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 D460CFBD6B8 for ; Mon, 7 May 2018 21:27:17 +0000 (UTC) (envelope-from phil@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FF5372486 for ; Mon, 7 May 2018 21:27:16 +0000 (UTC) (envelope-from phil@juniper.net) Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w47LP0xO020152 for ; Mon, 7 May 2018 14:27:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=message-id : from : to : subject : mime-version : content-type : content-id : content-transfer-encoding : date; s=PPS1017; bh=B+BkwDyicFsBaY+NV3nWXtlDXN1sKk7JwLaJe+pVhVI=; b=VQo4Mu5escGomFa54ysrJ4Cg9zItVQjrbkOrxjmZI+XztVX9b+GbJX7gbU+BE7VkFfS2 2nQWkDDO/QQNVuR8++U1/ujTiUONowQZg80Fr613Fbg0DtRhAntPrtJZYc3McHW0PjFz aErBdAUjC3Z0p1FD7sAoImQuW5wylyo0ZQ73zu8e01NP9pAvh4rKuBRhuFFNBQvuMoGO 1d4ts9WEQhETlLLpjDdkMLiFpKusi7KdN+SMx15QsNICEZ8EvPGw06aWYtCqdZ0aN71H 1TDH9MuBi5b+0JuKAJ529KusVHNEpLBS3/+LuiAbi96CkRy6bFEIoRLvCjVX5fHTCtxd 8A== Received: from nam01-sn1-obe.outbound.protection.outlook.com (mail-sn1nam01lp0120.outbound.protection.outlook.com [207.46.163.120]) by mx0a-00273201.pphosted.com with ESMTP id 2htux50c8c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 07 May 2018 14:27:15 -0700 Received: from BN6PR05CA0011.namprd05.prod.outlook.com (2603:10b6:405:39::24) by BLUPR0501MB2051.namprd05.prod.outlook.com (2a01:111:e400:c475::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.10; Mon, 7 May 2018 21:27:12 +0000 Received: from DM3NAM05FT017.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by BN6PR05CA0011.outlook.office365.com (2603:10b6:405:39::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.10 via Frontend Transport; Mon, 7 May 2018 21:27:12 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.15 as permitted sender) Received: from P-EMFE01C-SAC.jnpr.net (66.129.239.15) by DM3NAM05FT017.mail.protection.outlook.com (10.152.98.126) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.755.10 via Frontend Transport; Mon, 7 May 2018 21:27:12 +0000 Received: from p-mailhub01.juniper.net (10.47.226.20) by P-EMFE01C-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 7 May 2018 14:26:38 -0700 Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id w47LQb4t015379 for ; Mon, 7 May 2018 14:26:38 -0700 (envelope-from phil@juniper.net) Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.15.2/8.15.2) with ESMTP id w47LR3W5060281 for ; Mon, 7 May 2018 17:27:03 -0400 (EDT) (envelope-from phil@juniper.net) Message-ID: <201805072127.w47LR3W5060281@idle.juniper.net> From: Phil Shafer To: Subject: initialization problem w/ thread-specific .tbss data on i386 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60279.1525728423.1@idle.juniper.net> Content-Transfer-Encoding: quoted-printable Date: Mon, 7 May 2018 17:27:03 -0400 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.15; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(396003)(39380400002)(39860400002)(376002)(346002)(2980300002)(199004)(189003)(377424004)(336012)(77096007)(46406003)(8276002)(8936002)(316002)(356003)(2906002)(7696005)(2351001)(426003)(7126003)(486006)(86362001)(97736004)(476003)(126002)(26005)(575784001)(186003)(106466001)(68736007)(76506005)(105596002)(6916009)(50466002)(53416004)(81156014)(81166006)(69596002)(23726003)(1076002)(8746002)(2810700001)(97756001)(8676002)(478600001)(305945005)(53936002)(47776003)(5660300001)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR0501MB2051; H:P-EMFE01C-SAC.jnpr.net; FPR:; SPF:SoftFail; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM05FT017; 1:YoT59Z3MuMqO70DiE3dzTN/zQSQFKkI0ZnvuoSydWKmyRr7A6S8FuL71UPG/LwSKuFTIrVNxhBHz4m62N4cRLxhWaQhr0V6RuoRgTxCsqF3MyAKjI+ZjoF9XJYJS6d3K X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BLUPR0501MB2051; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2051; 3:RFjUMkIhaqoPqq7NPFRADfBb7Dz2DfA2Eumeh9VuoUB7a6+3/tpWVhEDJojvS3SrghK8rgi9eIOXVH6rl2tTkgNmGGiPp3B1bhtmJc7rSGvwkuesQD3FGhGqjliu3YeSFhaM/uOlRacYzogHGScpAXogb8/UC0Fmej1uMyoHGs6Bl7tZLVonfLigPy9hovR4LvN6QrcoXYVbVompneWtTVpk7+U/WZIihuasvOLqsKi6F67GZN2Um3j5+A0/n7TcEgBps3OKnwSh1RpCI8ltodFzyg0M1jQ8xz7yYmohNy6Us3Lme+D6fD/+Z7jVrJYwfls0Lwy4OsfMXsKYyFQSyB6qKSvPGxwuT1JVP5qFKgk=; 25:ONcWC1aWh7wAfI+YOD4klcbYoLsC7dijVV5iJTteTkeZ+fa9kac2HvFLrOKqdumuz8nhyHK521MlYnCq8qmjGJL9EG/KWegGIrVnvIlWzj6Fbq8i6etv0TT9aPIkNa9AicYtXpwdl3MESFb4XzjQl/88XB1XA2VCDUFje3dxFp+TFo6ZmjAo/7pzg/LNpdznrciijrXUVhuQt/KhqZYdO8VazaytT8MSL8m2lwWQ/LnCNVr5FEX1cHkkB37Gkt9zgeABaeUtDyZvHqf7sqd5nUg2rSy6zo0cdLHONEVpr6fNnh0polDNrdNIhpp2Yg1qMAIoe6BmdI9PnzzjPEH3lQ== X-MS-TrafficTypeDiagnostic: BLUPR0501MB2051: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2051; 31:Nc8Tm/WVt3sbLSrm7o82BMgLpOh83AaU7GIboQ+Qbe9wWIlRSOhdSNmsoYHbPAjLJD6fAfZ1n0GfUx9XAe/qeHHJWAApS2deaWFeBX+S7gZ2VPMt6QfE6DdHuc/AHbu4yYcJwLl2QfVRLX/UIM1HwQ/mRYrAf+Sk9aZf1fQJaTcua1ojxgu4+d9icWr/zZltreOpXYhc95SHKuNyqaJBxA49I+yw2VOQi6C8n4VE9ao=; 20:odxBxyEf2nnAGPC0h/LLN+T1w26fWWdJsyGV8Q2Bi3F7yx9NmbOKYraU8v538LwB6y4cfewCF6VH2qDXkrHdXk4NJ6V5Ge6P7Q1e310szX1hQX5HP7RbqhVFi7C3KrqKjKnp90/OkC6pWYMwFCtcpPqNZ0QF2a8VxRcVPP3ptvaSe8OMXivD5pk3BY7/qHLD3PKKnnLJD4W4CPBJo2MqHxDRAq8JGte/DEXvtZ8U1E3Pot14j/wbOE4APcAFF3vNtfpnWziNQjOH19w3i8YjCZzSkuYcRGvY74H57wd2UDBmuiVUMibmSAkEE4SRJzrDHLCyWA6IdSG3sM0jsBpp2CFe7vn9V2v2do7PUCFzAb6tTjWONQ6ppat8VaZGTX+xWBoRN/8ak0/aDIq/ILIS6e1Q/UYvnWE03U5FAl1DHZFL+hc1OlZ5ZwxzrAgRBGm9ZyjugRycUkfZGVKZRvnBo1uuVoHWJjj9gu+XLcrOGR/94VFWf6KRrDLfJAxBmNu4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:BLUPR0501MB2051; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0501MB2051; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2051; 4:1y8/lcN1OShG1Y+FlmmRZ2twDddWTW041CupDiBDCQmQ+J9uhbhGabM4L371SNZrCDWy7y5cn5gKon8mip917CW/ZdRNuL4NLZAny5KqI01OoY/MXIK6Gz22B74fQaUoIiNyUU9uI51mOa89ocdoQzMKZrIbrAYh9fAQQsEwiaxM0tXGeh+D5SZeT5GoSZgzmYpJ6Hy5xQ1V/F4/F9lUT/IFyLmrkXGNBqVwHSYEV505+oQk1qvroj5gm/DlAq8GWWNV3Fa+b7moXHplDwDbvlxEEd4fTjAsC1/iQ+lBA4yuBgKtLn02uQdCyRNF5PeX X-Forefront-PRVS: 066517B35B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0501MB2051; 23:wZFfPAWgaprk6CeclaGbawRJ99p21YaxZkx7XS+?= =?us-ascii?Q?SK3JbLOZ7tOJ78rKpmOkw+qgppdkLC5SEySVFmH3Oy3sqY+uofiPf8SydRjS?= =?us-ascii?Q?CIPfUK89daDHPhdvWJNUPZycXjy0zUHspIBQXGP3x+SnWDESbcKx9t6OTXdN?= =?us-ascii?Q?EK7Hc1yFLL7UAv7BG97Sn7WC9OFK9KaUkh62pymL6BYW9PyKzTPCVPTkBM66?= =?us-ascii?Q?AuhTnBfT6Jxx3sEGAUl61jGst/Ig9FyrlsocnjQ8yjeDkYc4kdPxuJ1xR4dN?= =?us-ascii?Q?ev3Q/kd7ouVR0nfgpXRn2RGcBNmsnM4TTdzn6DrFwIW8nbhjvJPlxlNMUkV1?= =?us-ascii?Q?XAS2J37QT3vcMMjnFvUEc4STvfYL1/MYNoTb1r9kZpmelY/RZa5T3/mJ3sVd?= =?us-ascii?Q?EY6KgAjCaFHBuOEgZabd1tMrDEkhAmIaIGbbnpXM8MN6mqANLE+tWCkJM2Om?= =?us-ascii?Q?93LmTOmcB/aKsW35MRPrhbIcnvN6B1nI5yCxNRTdgTl7VEhOjnGl5IWGjxcs?= =?us-ascii?Q?BfO2fYAfyjc/DMTJdCbVq0gG1zEBplRIpqtsQnOa5SZpzNBegxN/gI9wzbZY?= =?us-ascii?Q?UcXNc+YZXYx3qcG/7PqKlcEazvgIl9qKZP10SnZADPLGygB1cflTjXeavkLE?= =?us-ascii?Q?KNJKpl4Jk21Hn7+uD3m9ByS5z1SwbHw1xmdYjInWmJ5wc1x/XW6uXFw0tJeo?= =?us-ascii?Q?pf/m+m3k82O++/3J2/MFc79aj8RCTAsiUGrK/IVDtzRaQcFC0z8nvRWtfI7F?= =?us-ascii?Q?HWf/uXrPfWozzbjQa9BI632bw3Y6kS6kQ9MB4l1M6yRpDi9cjs3X34RU915F?= =?us-ascii?Q?NhIDxN6yOMdjiDMKRad9JZBmGht13KcsdvzvHSWgqou8tJ+Zy3+llWTgDhW6?= =?us-ascii?Q?rrITxV7/YNIYph2D2hLcdAqntl4ds+UpuG9xcUZ4X7PmoroiYymnKKGfOTba?= =?us-ascii?Q?nt2YFRT36xdLGuy4MlkT43XyzMBln4FMv8IqwXQeggrO1YZiHMboyMLRLhDv?= =?us-ascii?Q?+CyeSB+ofe3I83jwGz1gRoVLJnnzQtFRA485a4Jbtpsnqw2WYB62/JW3Tjkg?= =?us-ascii?Q?OkPrENgwmJWCtgawZLo6EVo6Ks6Ptiq8B6CvDsicE1q7E02HNRcGkLszXlLZ?= =?us-ascii?Q?nywiKI8YMJ/ru+iXHMfj0hcjP5ZfeHFn00/JTg0aDeyEjpwqI7U51Kg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Antispam-Message-Info: 6yHVVwznSxZappqy2DGUwHY6hzR/KG9gfhuCEnJpbxX0mfKaisheF1oZsZGs6h5bNJ/zgSRRBI6PnjRkGFpCB/0L9LW5ir99shaRCmBRn7AbfuP4wdA24BJmJ5A8edXMUXKOP0NP5ekTy2qUzoWzXP15bSYo3tUjla/ZxtoRuxGCUTQBTaYEEZ6jV6NxHWov X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2051; 6:QoRXvWXluAwBuLDDWgxiDGO28uQyafQ6eC4a+RUYnxJRiNcaJwjAnz6PlCw9Egr6F2Ui4QXlK2WSA5rsnvywVoOC5vBYY2279u1DI4r+aL6E1AYI3AW1NOic3UbSwgHUWAhgXz8a6eIF1kA+Y0SJ9L+JfELF/xui0PL34Zz5fMLWja5rcDQyon/+wqeDN4UOncAjlQI5MorJRhmdVMiyibjz5IkhUTvfFRQ4eMIRWfabfxX1/Nnrgx2hi+1mFn+JUBOWjSW8B3SeEYA0HyGu7cmgt8y7scL9tYVR3874YdBCnsPhkDOHtZxU+bERyeth/j3GHWf/KNiYI5JIKAWKJzs37R0RY9WI/L/y+ZQsn8FE0F8g4P/3lKodC6VLoN6XfliTT6h97PzBFFql1jhnlhLX8Jdxl2cL4QXJjSjDj4BP1wbJqrtc0nfNhl38iS3ukaBLNIjTzxt4PYV4//wtrw==; 5:VMD8blx9sKa6DsLP4nf6o0mRz7n9wUjIYog3xKiasZ70hxwxx+1vwAVPQdANjy2cX40JWB2XXstx9hqB3tnyZ5jmhvcyj/tktQOOHtnmOnIqF58BV6iwkSmXr6q+GlzTnEDiqARiaNDe+DLBoAojblBek3G/LXaljJhW0aqcEMc=; 24:wrTQ1UxjvI+C8kkO6/xjEUrXgI9qePKRX/HxUokTJLYE7xWJcNFIum1L2RGK2CZkIU1VKfSW/lAZZojLTfIKrA/DRnavYfnZcdqSvMVv7kQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2051; 7:wZ2N/KYDSSxpbUC9PFOTX1ResY/Q05WqGpMLW3rWA94qTCaroKDjGxRtuAj9JKakal1MTCyyVHF8r8ZSKkENWpEN+ci2l8a/v5vpZrd1hmaybc8gKFx5hIryyqeIH9ML7B1nNM5WCJRRnXu+eJFzhxQIszHwScPCgOpQ4e7RF5pk0DTigCzDzcEiP9IzzLjcHDiojm0vva7nhoUnB6PPG+X0F/ZF6zycoayT7FMsnJVtdrmxv9FXh6mC2ri8yJ1V X-MS-Office365-Filtering-Correlation-Id: dd381e34-ee97-4f9b-974e-08d5b4614c53 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 21:27:12.4868 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd381e34-ee97-4f9b-974e-08d5b4614c53 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.15]; Helo=[P-EMFE01C-SAC.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0501MB2051 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-07_10:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805070210 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2018 21:27:18 -0000 I have a problem reported with libxo-based applications running under FreeBSD-11-stable on i386 boxes that I think is related to rtld: When I breakpoint on main() and dump the contents of my uninitialized thread-specific variable, it has not been initialized to zeroes. I don't see this problem on 64-bit systems, only on i386 ones. When I look at the rtld code, it appears to memset the .tbss to zero (/usr/src/libexec/rtld-elf/rtld.c:allocate_tls) in the non-arch-specific code so the arch shouldn't matter, but something is not working right. So I'm looking for a helpful clue, such as how to debug rtld to see why this isn't being zeroed. I thought I'd use: gdb /libexec/ld-elf.so.1 run /usr/bin/uptime for this doesn't work for me (SEGV with a callstack that doesn't make sense). For this instance, the work around is to initialize the contents of xo_default_handle to zero so it's not in the .tbss, but I'd like to understand what's failing. In truth, I just have a hard time blaming rtld, even though this is issue is an obscure intersection of weird things (.tbbs on i386). Perhaps it's something wrong with how the library is built or similar. But given that it's not zeroed when main() get control, something's clearly broken. Details follow: I declare my variable as: #define THREAD_LOCAL(_x) __thread _x ... static THREAD_LOCAL(xo_handle_t) xo_default_handle; To help debug this issue, I made the following change to the sources to help with gdb's inability to show thread-local variables ("Cannot find thread-local variables on this target"): --- contrib/libxo/libxo/libxo.c.save 2018-05-04 17:26:29.079500000 = -0400 +++ contrib/libxo/libxo/libxo.c 2018-05-04 17:28:06.570875000 -0400 @@ -8349,3 +8349,11 @@ xop->xo_style =3D XO_STYLE_ENCODER; xop->xo_encoder =3D encoder; } + +void xo_print_handle (void); +void +xo_print_handle (void) +{ + fprintf(stderr, "xo_default_handle: %p %d\n", + &xo_default_handle, sizeof(xo_handle_t)); +} When I run the failing command (uptime) under gdb and breakpoint on main, my thread-local variable is not set to zeroes: % gdb uptime GNU gdb 6.1.1 [FreeBSD] ... This GDB was configured as "i386-marcel-freebsd"... (gdb) b main Breakpoint 1 at 0x8049be5: file /usr/src/usr.bin/w/w.c, line 145. (gdb) run Starting program: /usr/home/phil/work/lib/uptime Breakpoint 1, main (argc=3D1, argv=3D0xbfbfe60c) at /usr/src/usr.bin/w= /w.c:145 145 (void)setlocale(LC_ALL, ""); Current language: auto; currently minimal (gdb) call xo_print_handle() xo_default_handle: 0x2806aff0 328 $1 =3D 34 (gdb) x/82x 0x2806aff0 0x2806aff0: 0x00000000 0x00000000 0x00000000 0x2806= 01ef 0x2806b000: 0x2806b010 0x2806a200 0x00000001 0x2806= 01ef 0x2806b010: 0x2806b020 0x2806a400 0x0000005d 0x2806= 01ef 0x2806b020: 0x2806b030 0x2806a600 0x000000a1 0x2806= 01ef 0x2806b030: 0x2806b040 0x2806a800 0x00000147 0x2806= 01ef 0x2806b040: 0x00000000 0x2806aa00 0x00000164 0x2806= 01ef 0x2806b050: 0x2806c000 0x00000000 0x28065e70 0x2806= 01ef 0x2806b060: 0x2806b070 0x2806ac00 0x00000421 0x2806= 01ef 0x2806b070: 0x00000000 0x2806aa00 0x0000042d 0x2806= 01ef 0x2806b080: 0x00000000 0x2806aa00 0x000001ff 0x2806= 01ef 0x2806b090: 0x2806b0a0 0x2806a800 0x00000976 0x2806= 01ef 0x2806b0a0: 0x00000000 0x2806aa00 0x00000983 0x2806= 01ef 0x2806b0b0: 0x00000000 0x2806aa00 0x00000a18 0x2806= 01ef 0x2806b0c0: 0x00000000 0x2806aa00 0x00000571 0x2806= 01ef 0x2806b0d0: 0x2806b0e0 0x2806a000 0x00000000 0x2806= 01ef 0x2806b0e0: 0x2806b0f0 0x2806a200 0x00000000 0x2806= 01ef 0x2806b0f0: 0x2806b100 0x2806a400 0x00000000 0x2806= 01ef 0x2806b100: 0x2806b110 0x2806a600 0x00000000 0x2806= 01ef 0x2806b110: 0x2806b120 0x2806a800 0x00000000 0x2806= 01ef 0x2806b120: 0x2806b130 0x2806aa00 0x00000000 0x2806= 01ef 0x2806b130: 0x00000000 0x2806ac00 (gdb) objdump shows the lib does have a .tbbs: 14 .tbss 00000658 000181f8 000181f8 000171f8 2**3 ALLOC, THREAD_LOCAL Thanks, Phil From owner-freebsd-arch@freebsd.org Mon May 7 23:56:34 2018 Return-Path: Delivered-To: freebsd-arch@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 0105DFC1B30 for ; Mon, 7 May 2018 23:56:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7D79A774BD; Mon, 7 May 2018 23:56:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DFB422255; Tue, 8 May 2018 01:56:31 +0200 (CEST) From: Dimitry Andric Message-Id: <21DD27C1-AA3D-4055-84BF-B4E278DC2BBB@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_F276EF6F-05F2-48EC-9C86-18B365972780"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: initialization problem w/ thread-specific .tbss data on i386 Date: Tue, 8 May 2018 01:56:27 +0200 In-Reply-To: <201805072127.w47LR3W5060281@idle.juniper.net> Cc: freebsd-arch@freebsd.org, John Baldwin , Konstantin Belousov To: Phil Shafer References: <201805072127.w47LR3W5060281@idle.juniper.net> X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2018 23:56:34 -0000 --Apple-Mail=_F276EF6F-05F2-48EC-9C86-18B365972780 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 7 May 2018, at 23:27, Phil Shafer wrote: > > I have a problem reported with libxo-based applications running > under FreeBSD-11-stable on i386 boxes that I think is related > to rtld: > > When I breakpoint on main() and dump the contents of my uninitialized > thread-specific variable, it has not been initialized to zeroes. Aha, this might very well be the root cause for https://bugs.freebsd.org/227552, could you please have a look at that? > I don't see this problem on 64-bit systems, only on i386 ones. > > When I look at the rtld code, it appears to memset the .tbss to > zero (/usr/src/libexec/rtld-elf/rtld.c:allocate_tls) in the > non-arch-specific code so the arch shouldn't matter, but something > is not working right. > > So I'm looking for a helpful clue, such as how to debug rtld to see > why this isn't being zeroed. As discussed in PR227552, it seems that the update to clang 6.0 in stable/11 is the point at which some programs start crashing, so either it's some bug in clang's TLS handling, or some subtle change in the resulting executables is now tripping up rtld. (I've added John and Kostik on CC, as they know much more about rtld than me.) -Dimitry --Apple-Mail=_F276EF6F-05F2-48EC-9C86-18B365972780 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWvDnqwAKCRCwXqMKLiCW oyCsAKC4FsAfxGpyTOOa2NXbHFWwqdEDMwCg+b9lOADXEBwfBTnmYb0zVwC126g= =c3y4 -----END PGP SIGNATURE----- --Apple-Mail=_F276EF6F-05F2-48EC-9C86-18B365972780-- From owner-freebsd-arch@freebsd.org Tue May 8 02:19:11 2018 Return-Path: Delivered-To: freebsd-arch@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 B8A5CFC7F9D for ; Tue, 8 May 2018 02:19:11 +0000 (UTC) (envelope-from phil@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DF2A796DD; Tue, 8 May 2018 02:19:10 +0000 (UTC) (envelope-from phil@juniper.net) Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w482J2C2025419; Mon, 7 May 2018 19:19:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=message-id : from : to : cc : subject : in-reply-to : mime-version : content-type : content-id : date; s=PPS1017; bh=T+WeYaksASZFQ4cABOnicDwh815wVq9E0NjHVuXsX+o=; b=gKax9rV9T7J/9ahLRuF2fmkxUyKv9rWGCCZfaN0WuLrftOrXq9SEj/H9S6g06VWkATdE 1CIT1CS5OWqCNZYUA2P9OwFgdEz2wfZRsBLs4kSmi6/Tgn/37GQItxwUKQiXFu4bR3yF gjTamGEXJUc+NurRU04kEW6LPR8t4Nrm4PhKPftfTwk0N4A1O+mkvN52lGea333LVTs7 09V/7UOzppOkjcZUUd5BueR92fSfbGmnBFEmQ20CmoJtM0ObVjnD5IcvfMYFXBJK70cE sOOhIMw8W0o5Z8adstCXDNtEQPC/m3IFr9H1uu5fgHdDfo7VHVHeERnTgmUHRboM7Fiy Kw== Received: from nam01-by2-obe.outbound.protection.outlook.com (mail-by2nam01lp0178.outbound.protection.outlook.com [216.32.181.178]) by mx0a-00273201.pphosted.com with ESMTP id 2htux50tce-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 07 May 2018 19:19:09 -0700 Received: from SN1PR0501CA0042.namprd05.prod.outlook.com (2a01:111:e400:52fe::52) by BN1PR05MB219.namprd05.prod.outlook.com (2a01:111:e400:412::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.10; Tue, 8 May 2018 02:19:06 +0000 Received: from BY2NAM05FT046.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::209) by SN1PR0501CA0042.outlook.office365.com (2a01:111:e400:52fe::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.10 via Frontend Transport; Tue, 8 May 2018 02:19:06 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.15 as permitted sender) Received: from P-EMFE01C-SAC.jnpr.net (66.129.239.15) by BY2NAM05FT046.mail.protection.outlook.com (10.152.100.183) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.755.10 via Frontend Transport; Tue, 8 May 2018 02:19:05 +0000 Received: from p-mailhub01.juniper.net (10.47.226.20) by P-EMFE01C-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 7 May 2018 19:18:38 -0700 Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id w482Ib3Q012053; Mon, 7 May 2018 19:18:37 -0700 (envelope-from phil@juniper.net) Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.15.2/8.15.2) with ESMTP id w482J3OG061940; Mon, 7 May 2018 22:19:03 -0400 (EDT) (envelope-from phil@juniper.net) Message-ID: <201805080219.w482J3OG061940@idle.juniper.net> From: Phil Shafer To: Dimitry Andric CC: , John Baldwin , "Konstantin Belousov" Subject: Re: initialization problem w/ thread-specific .tbss data on i386 In-Reply-To: <21DD27C1-AA3D-4055-84BF-B4E278DC2BBB@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <61938.1525745942.1@idle.juniper.net> Date: Mon, 7 May 2018 22:19:03 -0400 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.15; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(346002)(39860400002)(396003)(376002)(39380400002)(2980300002)(199004)(189003)(486006)(54906003)(8936002)(229853002)(2906002)(68736007)(81166006)(8676002)(16586007)(450100002)(316002)(476003)(6916009)(6306002)(426003)(2810700001)(86362001)(11346002)(6246003)(81156014)(46406003)(4326008)(50466002)(5660300001)(7126003)(126002)(356003)(336012)(26005)(6346003)(77096007)(47776003)(478600001)(305945005)(106466001)(186003)(97736004)(23726003)(76506005)(7696005)(1076002)(53416004)(53936002)(105596002)(69596002)(97756001)(8276002)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR05MB219; H:P-EMFE01C-SAC.jnpr.net; FPR:; SPF:SoftFail; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT046; 1:OP7WH/2YpHTOnteF0VcvNJLPtofENUQB1WF13WRcWILuQef11QFW4iOkEOEbxYokc2esrJb5O2aIc5yNju60lGJdGseAMOxqbfeq02IrYR5DVLw27cd/xKGkrFtocO2F X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BN1PR05MB219; X-Microsoft-Exchange-Diagnostics: 1; BN1PR05MB219; 3:bMsQuqxRsFQ8LkxOM8hYw8OZ4RBSP+bi8kE+Q+lVthldyqm4XRhiO2KppHLbpeU3qJ8dJbDjEG0N6Vrg9Y9HunHIPn2Hgx4tYZlNyWBnD0v/ARpolUW14Tj0JScuoudieYPKUoxLJNBT6/WuUQi6eEq4Gkd0pcuPhZV+b7R+kqJJ81CCqvxJDAnb7UTJ7TMnd0FGZnZwbKksxjfyDm/iWTfYNscKFNv2zmC5i1hrhL6BjvFkWzzxJmPq8i0IdXxOTjNt9BaQQ1nCbaISW3bE6SUrFwyLyXN4rA1P5sHfBhLAtnhmeRzWLksTUCP+Hc4WgrJCBP/d21FkwBOq9wM8t6+pg1QKJY1BadoPCuL/VCY=; 25:RQIsugeV2Jf7nhno1jBx6Kz4ADaWT1xMB/HG2QGuP4K32+39sdv28Wpvl7qh3OSsksU5vJpVaiFFxOh2Kirf+LwwwhvRvYwUYEwCA6E1TL4uxbedZexY8uQNXx7APpuwLQ9B3fU90F/46+Dwu0nHt1HVqse6QpSj2Nv9ovaazpweUVsjTb5GW/OD1JJx7/sElncl9bDJWVix1YACPPATzrgsH6c0G57oCiYYXq2necu7F6YG5mKWxeDNGTqLBJ3QSxErrCzeBXw/BKdu4QkNkv7t82kl+W6MOjfUUcyQDpwVM2KPQcWvFis9ABdPKz90bmUUkbm2/enY53g9n9sSig== X-MS-TrafficTypeDiagnostic: BN1PR05MB219: X-Microsoft-Exchange-Diagnostics: 1; BN1PR05MB219; 31:g+i9y5FMbyVP3z60SS+ugv9OWs1je2E8l4CmCXPchaIfAzOZN3cxyXU+7rdjDTqtFGArp4D+MYbsjA/S8ds6vSgbfNXQsG4Dfuq7MEsG3CGt5P2O+nrvxVaBGPe//f+6F7/548lo58aYA+niQjx5o94nKgF6ZCseu5oEEYs5GUjLsmbbX3V8kjUZp0AOws8zciUadBrFfO8rL5cuO0TYBPO3vcSvzdGkZkB5xA0/QmU=; 20:i91gMf/Vo8ONgo2mRVJ3nA/jxaE+TbHz252B50I9aaZ21eSHhhO4hEnOxTbQS7kSB6cFbvujRGsdVxPd1y8J0KIgCKWeXlYYMwDiQWZTHo+hPVUdlA6cpw1HPhFRH2m97WHXUgGVeqYzQHSvwM/97+Mnd7oE/TZjUQohmVT8nmPVLYTwnjIVVOIr7DcjZOhB4+ltOxB4dgoTY/PLzM6MRvh8mjzL/3U3UXZSQri88uDH03gjZthj9Me1vUt72AJCumtEqKkpkQI7PJzQjtfJUsCIRvOFS6uaGsD99+EQIgt4E8AlXJoO7EDuNMh/b0Mtavxt+4l1cZkQSYkZ2J5d3OlM8jv8is7eDMgMpZJnHhJliHr1ExqjmLOVq9Jz3A9MbyYcltQrysmDyXD8QQlwHTgn2Kyv0pHHve78R7fdaOPl9xRzn9weNvcN4+8nK3jKIYTBfP3ZSfMzJ+XXAUvbkzBUbF8TN1WFY+zr9+CHdqv+fLNKwuX/4zgzd5qpwd4P X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:BN1PR05MB219; BCL:0; PCL:0; RULEID:; SRVR:BN1PR05MB219; X-Microsoft-Exchange-Diagnostics: 1; BN1PR05MB219; 4:gar5nphQEfdLFtmE1czrADr85whusX/3a8mY90pnjQXseadVLC+A9zdOIxbbqN21V4sAC5XDvkc6T9Y3S+h3wONgcz9u3z1IGgj1CgJqXRob9c8GmWEd80Qf7wizIFQfODY4Uz9uF6as3sOIcF8UnWGuTcwfdD50RKt6wJRxLKrnwLG5UFj/4XO/3tFD+MhZAydBzb1Z9564zd53AUMSyZGZocfsVKbaO7RwefTxkandtPsJznMKO8feuEZ2LWOk1I6hH4cBkFi5QS/wRPET3Q== X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR05MB219; 23:jNLCKiRZNrUZTVVpVytJpFmWkpfSbwI1SiQfzaXPvj?= =?us-ascii?Q?3HkVhJuWt0JPU1W/xr+evXwYQADx8IQg+F9XaA2zhuJARGNCK3MEdXM/bpen?= =?us-ascii?Q?yyOTuAS5Wl4egwM1RhsoQ91dPU3FEqSt+pvK7Cojizh+6FtF1lNiOtyXm4Vu?= =?us-ascii?Q?9/CFdEctnTaPiwqnsBL4+zO/k2xx+XWqH5pkop4cpSNx4hBPE50kt/XlVMnV?= =?us-ascii?Q?VB2K1G/FADPg/WLvqRPAL/NVDbMnWSRAzqbdJ44FIjEPXwwjz9uDXHKVqjCh?= =?us-ascii?Q?7fVQBo50zefH+PIrTG8kPVbHebjGUIj0C6NfJ0RQQvImFFgAngGgSIRyTmN0?= =?us-ascii?Q?enFmGlKA1bVm5/Jd/ccSPNpM1m6zf7tDz4Vp7bPiNfdzklrTrpz/Y6x+wnOV?= =?us-ascii?Q?WiQFkdunHPHipEWOSLtoHUZSjeF0zBGlVtQxLMRCBF9rmhCztChCzvc0MscY?= =?us-ascii?Q?ZdzRnoeXBZedzhHZrsh3KsbP5RPPZLDWX8Xwn6MJAV5wDDTzKRDBt10EVgVk?= =?us-ascii?Q?vufFgWC69L4Iagt+IeHHdnoMO8t09iE8Bkj9VLIAkY+X3/KcngPZUYzN12ib?= =?us-ascii?Q?AC1lT7XdLHA8JiUsezYhM3j0tE6f0ODEyba/fwLgxA5AfmzIW+6FvXgQGRNJ?= =?us-ascii?Q?yrjP8WEcTp89mVFzJcK05fjHUamhavE9SVXmDqzaf8iMEHRF4+3M7h1MyA9K?= =?us-ascii?Q?ftvBpqOqnklzGK4tm/EWnSeJCr0PDUlnxYLWaIlCEUHC4YqsmhHEH80ejTK+?= =?us-ascii?Q?sfhuQhIhhl5lSIhN8ZGgWIsv8k0pcZV8F9mbyjwnXF7SdLvVI5l+UDpsFhfA?= =?us-ascii?Q?QQkfPfTFurYcl/AfM1g2/L5pwsIi08VHHr48zJxhIP/YsIHK3dh5Cuu4kupx?= =?us-ascii?Q?1jJJEuLZUQTE0lSN0dBZdtDByCWpelKfbyjucLkzwT7Rt5fTQ4H6JdsodmSK?= =?us-ascii?Q?LaA/AGyHOFc/uDMWrd7o5eMCHej8VH0F1K59ji7MxHJ5s3EWY872+DtQUjm6?= =?us-ascii?Q?//vmJ73Jz702aBrlyv0CfYeqHHvp5DfBhXuce6vJ1zTINrCAgFWkoHn26otV?= =?us-ascii?Q?kMJNdPwCbhln4WuYileWkW7fyKvsWNys+KxPSvsiuo86+wi5aPnsVlwER2xC?= =?us-ascii?Q?IgXausF+TkD3ReGptaeG9pLraHrLFoe0XwQtSHeW/Z5mXJ0g6gFmGZfSNwam?= =?us-ascii?Q?vGnGCRvd+AhVd6eyT5P5Zrgrz/c/gU6nGtw50vOwB6ddG70yvLqeaOnkUsMG?= =?us-ascii?Q?HaSn8eDy1aHLEdEbI=3D?= X-Microsoft-Antispam-Message-Info: Ac+KucyEoJ8a5Rofik+bfF5UvhXp7phMRcgASxwC8RXBr8qpgIfJr8+rzppNCLYuPCXm+tLDinWDOiT3JbV+J1jolem0LEYtwQRkYB2ADL4jgIE/2zuZpxQVZS+MTTVXOffwObic+oDTzVGCMODZ8tF/CZLCOwqcdF93x+iroyxfFO+1leh9OT0O5YsWL+Jg X-Microsoft-Exchange-Diagnostics: 1; BN1PR05MB219; 6:5S7TXgcfcA7zozUZyhaRpt6WvgGdHQuNys+oSVXNpJrxbGTB0FrJdStiOCGdx5hyks16btveYsFQkjHerOLNAijEIhrIrOfYfG9eQ0Bn2obKDDYPPN24dCzBoDPSjOT6L6HZuHboZfFVXpNZ+MJR5gpQuwjssyxc+D6wHUTA/ESjf7H8KkORe+FlXBjiBGLvOmksbjEs1sTXp6j71z5EGiHzjx5I8q/z+c1nJ6gjBnASlRHfGecS6H00HZUwwqS4JyT+QwIJVtuTuM2DgS7L68NMrrPkZrB/T0AkxQqDHSQRlsMbLsEeSqaxFBi416iiSvf6nSqiRJjjShhvcsoMCtEIvG78rKJyOHN211DJi45xD0XkIrWrcySavHoH7lnbnUKr0QVroEkpAWSq+BhdGsKbIxc+B85UVAu/cQDjfDpiOdKvSqfb3rKSGMkvM4mvw/Pz8wViTySH2Ght5O3jKQ==; 5:nYSFkgqAi9+M0OvenrShcTsz5S4I/NUPfp/E4HgsRJePwnAZl4j8FHpp7BPpz0eOFdw3cDWKk9M2yH+sj6efZIMzbIdfcrnP5IHMPddmR67Qe627RXpXGYR9XfzoxnOTF5Se7ZQhBI9z81S9BWIiEGwLxD8X/4Pb+VTMXYlz9Bs=; 24:9ilRvoiljlhplK7sIk24s08SXdRNTtdDVc33vLcKenqvBLZq2/ehJTUqymBv1yIC7Lmd9syOM04jupIW5IriHP32vHv/ma53bl6bC+c/ezw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR05MB219; 7:b1NBawoYq2KAWMPPuK6SU0RWTPGOUTR3p1uxCXmIQRdHwtkDJWoj55Dm16UjVIwdga7p7uNqKhoJMNkoqlJ5vwY8UK8uX8UK8Q1oK1S5fqQday/J0j2hLJlUJoc2M4iJfbs2QjcYD5cS/SgUeNMnm6f1mdjJ2z2GxWkOucDh9OlA8ED+yvi4YZjzDUp4poGhTQRgx8YC+rAOjwr37aBnfS5px0zXIDvhMgOzq3mVfEQCFg0EA3zhrkabRiyXcAxJ X-MS-Office365-Filtering-Correlation-Id: 1951a4b9-e1d9-408c-5955-08d5b48a12e5 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 02:19:05.5956 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1951a4b9-e1d9-408c-5955-08d5b48a12e5 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.15]; Helo=[P-EMFE01C-SAC.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR05MB219 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-08_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805080020 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 02:19:12 -0000 Dimitry Andric writes: >Aha, this might very well be the root cause for >https://bugs.freebsd.org/227552, could you please have a look at that? Yes, this looks like the same issue. I've added my email as a comment to that PR. Given the size of xo_handle_t (328 bytes), I'm not sure this is an alignment issue. Most of the 328 bytes are polluted. Thanks, Phil From owner-freebsd-arch@freebsd.org Tue May 8 08:14:30 2018 Return-Path: Delivered-To: freebsd-arch@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 11810FACDC0 for ; Tue, 8 May 2018 08:14:30 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8CFF66A687 for ; Tue, 8 May 2018 08:14:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w488EIJJ002277 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 8 May 2018 11:14:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w488EIJJ002277 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w488EInN002276; Tue, 8 May 2018 11:14:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 8 May 2018 11:14:18 +0300 From: Konstantin Belousov To: Phil Shafer Cc: freebsd-arch@freebsd.org Subject: Re: initialization problem w/ thread-specific .tbss data on i386 Message-ID: <20180508081417.GL6887@kib.kiev.ua> References: <201805072127.w47LR3W5060281@idle.juniper.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201805072127.w47LR3W5060281@idle.juniper.net> User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 08:14:30 -0000 On Mon, May 07, 2018 at 05:27:03PM -0400, Phil Shafer wrote: > I have a problem reported with libxo-based applications running > under FreeBSD-11-stable on i386 boxes that I think is related > to rtld: > > When I breakpoint on main() and dump the contents of my uninitialized > thread-specific variable, it has not been initialized to zeroes. > > I don't see this problem on 64-bit systems, only on i386 ones. > > When I look at the rtld code, it appears to memset the .tbss to > zero (/usr/src/libexec/rtld-elf/rtld.c:allocate_tls) in the > non-arch-specific code so the arch shouldn't matter, but something > is not working right. > > So I'm looking for a helpful clue, such as how to debug rtld to see > why this isn't being zeroed. I thought I'd use: > > gdb /libexec/ld-elf.so.1 > run /usr/bin/uptime > > for this doesn't work for me (SEGV with a callstack that doesn't > make sense). You need to supply argv[0]. Read ld-elf.so.1(1), it has the whole section about direct execution mode. > > For this instance, the work around is to initialize the contents > of xo_default_handle to zero so it's not in the .tbss, but I'd like > to understand what's failing. In truth, I just have a hard time > blaming rtld, even though this is issue is an obscure intersection > of weird things (.tbbs on i386). Perhaps it's something wrong with > how the library is built or similar. But given that it's not zeroed > when main() get control, something's clearly broken. > > Details follow: > > I declare my variable as: > > #define THREAD_LOCAL(_x) __thread _x > ... > static THREAD_LOCAL(xo_handle_t) xo_default_handle; > > To help debug this issue, I made the following change to the sources > to help with gdb's inability to show thread-local variables ("Cannot > find thread-local variables on this target"): > > --- contrib/libxo/libxo/libxo.c.save 2018-05-04 17:26:29.079500000 -0400 > +++ contrib/libxo/libxo/libxo.c 2018-05-04 17:28:06.570875000 -0400 > @@ -8349,3 +8349,11 @@ > xop->xo_style = XO_STYLE_ENCODER; > xop->xo_encoder = encoder; > } > + > +void xo_print_handle (void); > +void > +xo_print_handle (void) > +{ > + fprintf(stderr, "xo_default_handle: %p %d\n", > + &xo_default_handle, sizeof(xo_handle_t)); > +} > > When I run the failing command (uptime) under gdb and breakpoint > on main, my thread-local variable is not set to zeroes: > > % gdb uptime > GNU gdb 6.1.1 [FreeBSD] > ... > This GDB was configured as "i386-marcel-freebsd"... > (gdb) b main > Breakpoint 1 at 0x8049be5: file /usr/src/usr.bin/w/w.c, line 145. > (gdb) run > Starting program: /usr/home/phil/work/lib/uptime > > Breakpoint 1, main (argc=1, argv=0xbfbfe60c) at /usr/src/usr.bin/w/w.c:145 > 145 (void)setlocale(LC_ALL, ""); > Current language: auto; currently minimal > (gdb) call xo_print_handle() > xo_default_handle: 0x2806aff0 328 > $1 = 34 > (gdb) x/82x 0x2806aff0 > 0x2806aff0: 0x00000000 0x00000000 0x00000000 0x280601ef > 0x2806b000: 0x2806b010 0x2806a200 0x00000001 0x280601ef > 0x2806b010: 0x2806b020 0x2806a400 0x0000005d 0x280601ef > 0x2806b020: 0x2806b030 0x2806a600 0x000000a1 0x280601ef > 0x2806b030: 0x2806b040 0x2806a800 0x00000147 0x280601ef > 0x2806b040: 0x00000000 0x2806aa00 0x00000164 0x280601ef > 0x2806b050: 0x2806c000 0x00000000 0x28065e70 0x280601ef > 0x2806b060: 0x2806b070 0x2806ac00 0x00000421 0x280601ef > 0x2806b070: 0x00000000 0x2806aa00 0x0000042d 0x280601ef > 0x2806b080: 0x00000000 0x2806aa00 0x000001ff 0x280601ef > 0x2806b090: 0x2806b0a0 0x2806a800 0x00000976 0x280601ef > 0x2806b0a0: 0x00000000 0x2806aa00 0x00000983 0x280601ef > 0x2806b0b0: 0x00000000 0x2806aa00 0x00000a18 0x280601ef > 0x2806b0c0: 0x00000000 0x2806aa00 0x00000571 0x280601ef > 0x2806b0d0: 0x2806b0e0 0x2806a000 0x00000000 0x280601ef > 0x2806b0e0: 0x2806b0f0 0x2806a200 0x00000000 0x280601ef > 0x2806b0f0: 0x2806b100 0x2806a400 0x00000000 0x280601ef > 0x2806b100: 0x2806b110 0x2806a600 0x00000000 0x280601ef > 0x2806b110: 0x2806b120 0x2806a800 0x00000000 0x280601ef > 0x2806b120: 0x2806b130 0x2806aa00 0x00000000 0x280601ef > 0x2806b130: 0x00000000 0x2806ac00 > (gdb) > > objdump shows the lib does have a .tbbs: > > 14 .tbss 00000658 000181f8 000181f8 000171f8 2**3 > ALLOC, THREAD_LOCAL Can you build the library and binary with clang 5 or even gcc, and see how is it end up ? Also, try to link in libpthread. From owner-freebsd-arch@freebsd.org Tue May 8 21:32:33 2018 Return-Path: Delivered-To: freebsd-arch@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 271F6FCAE36 for ; Tue, 8 May 2018 21:32:33 +0000 (UTC) (envelope-from phil@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B0AC75522 for ; Tue, 8 May 2018 21:32:32 +0000 (UTC) (envelope-from phil@juniper.net) Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w48LTE0j022860; Tue, 8 May 2018 14:32:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=message-id : from : to : cc : subject : in-reply-to : mime-version : content-type : content-id : date; s=PPS1017; bh=bJi0V4k2X7SXKptRrp89AYTz9pL76dX0BE++r5PMI9I=; b=yUb2cqi4+1L7o/itQao4vrqNB9MvNyPe0KfNnCYDi+Sqo1kVFb8TISAuX3xXcbGnP4ZG Y0eC/hEWEPegaatAbrp/XoYmSqViKR+Kwpo/p0GJZKM/XXiIvwA+E4h8SHL8m9ZzOslZ rGWM2mMPBAdHVCD46kh56o7GpxCXmjahBvE574AkhxQWz8jMvGi/xDaNId+DymBh++qZ avdhcx4aKnf5VIbruTVXHqji+j1XvUIco7qRgVSj+pzlFz4EVukebtbLieajE+Ch+OOD bWk+OzJd2530qjzpg/SJBeR8JcSUAvChihyFAakJO+wCAFPIJo4mY43c888haT/NEfYO RQ== Received: from nam03-co1-obe.outbound.protection.outlook.com (mail-co1nam03lp0015.outbound.protection.outlook.com [216.32.181.15]) by mx0a-00273201.pphosted.com with ESMTP id 2huhck8bgt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 08 May 2018 14:32:30 -0700 Received: from SN4PR0501CA0069.namprd05.prod.outlook.com (2603:10b6:803:41::46) by BYAPR05MB4421.namprd05.prod.outlook.com (2603:10b6:a02:f5::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.10; Tue, 8 May 2018 21:32:29 +0000 Received: from BY2NAM05FT046.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::203) by SN4PR0501CA0069.outlook.office365.com (2603:10b6:803:41::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.10 via Frontend Transport; Tue, 8 May 2018 21:32:29 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.15 as permitted sender) Received: from P-EMFE01C-SAC.jnpr.net (66.129.239.15) by BY2NAM05FT046.mail.protection.outlook.com (10.152.100.183) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.755.10 via Frontend Transport; Tue, 8 May 2018 21:32:28 +0000 Received: from p-mailhub01.juniper.net (10.47.226.20) by P-EMFE01C-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 8 May 2018 14:31:32 -0700 Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id w48LVVgR023473; Tue, 8 May 2018 14:31:32 -0700 (envelope-from phil@juniper.net) Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.15.2/8.15.2) with ESMTP id w48LVvBo071075; Tue, 8 May 2018 17:31:58 -0400 (EDT) (envelope-from phil@juniper.net) Message-ID: <201805082131.w48LVvBo071075@idle.juniper.net> From: Phil Shafer To: Konstantin Belousov CC: Subject: Re: initialization problem w/ thread-specific .tbss data on i386 In-Reply-To: <20180508081417.GL6887@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <71073.1525815117.1@idle.juniper.net> Date: Tue, 8 May 2018 17:31:57 -0400 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.15; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(346002)(396003)(39380400002)(376002)(39860400002)(2980300002)(189003)(199004)(97756001)(1411001)(23726003)(305945005)(6246003)(2810700001)(81156014)(105596002)(76506005)(8676002)(478600001)(106466001)(8936002)(46406003)(53416004)(5660300001)(2906002)(81166006)(356003)(97736004)(47776003)(8276002)(316002)(53936002)(16586007)(86362001)(26005)(77096007)(186003)(6306002)(4326008)(1076002)(7696005)(6916009)(7126003)(69596002)(426003)(486006)(126002)(11346002)(476003)(50466002)(966005)(39060400002)(336012)(68736007)(229853002)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR05MB4421; H:P-EMFE01C-SAC.jnpr.net; FPR:; SPF:SoftFail; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT046; 1:TVa3CMoVzhJCGHDWl5ysf+dq5QFwU4Q5QWZWNTx3fvAgfxXrQ7MYUp1vBhquKWJp+WSD2sOo7HqT9kL6iLCC2tN1tMI+AftyPVqAtoB+clFlLErhtDCuhoh6rzukuOpv X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BYAPR05MB4421; X-Microsoft-Exchange-Diagnostics: 1; BYAPR05MB4421; 3:wrwcDPlDnMhim6BG+adBSBZ9b+v/whtjY52PG1z+iTL1AQr1lW1/+7ZDrb/jtl/DaFp/fKpA+nS90Hl3EVPoBOq0VqaWmeRxYnIQrWoY/VbyWpN/g0luh/MsaIBzAaNBEhzJDFwshGWmucUSLIvFPsLpCaYyYZ89HWgt2A5htgpb+Pjiwqod/scLoFHzcjpty22YqvGKt2S6pyeyU+BftnMHg65vBg0G2cwWaoaVpwhPnjxIaDqUXYfVbT7ou61wz07pjZsYczC0pXfqbQsi1m994LYrKlJpDWRYugFgke3EtbW/smEEBYcSUg4MxVtgpj/BXcWE6pidyM2/RwnA1nnh4iYP+nDwHvpihIXZiQo=; 25:C+j5F3oFgFTnZTmjhyMYaRYlrlHJwEZcfr6/jAS97Idw8VbhlXwanyItggT0LjPqdgv7LJ2CZpftB7h3DsQJeEij78Fs3UY+g3hXsqdmcPUz+nkJ7OffIRQ5oVmNzv2O19x/phvTgDdgxRsfjAxtlTFOP3mn1kn/wWRKMnTbFVBh3kWJGun1zMCscKVPiPV1mUdd4/1c1YBMy6DECDLAjDPhFr+rnEifi1f64RxSuPf7yC5ricS7zUnTSqc+y9sGMjAf2EtXusy4DnmfoI/5qH23hgawskih0rrw0az+PQL8OStby62JuqLjY6F7vVzgVmf9qIDeeiI8gNhIhf+pFw== X-MS-TrafficTypeDiagnostic: BYAPR05MB4421: X-Microsoft-Exchange-Diagnostics: 1; BYAPR05MB4421; 31:EFvyrMZB415emsZNK2AUwyI36YzkYCdZQUJ5YoMkiEHic8eSIIurdPdg1DTYJ/9q+hw2FETUYZ+c6tiabTAMKtca8jsiJtJjR3RR+uDH5C9nJ7BaDtfzQK8VOjTVPP79ZzxT76mwpxhocvXgEEUfEsTMBLXd4W36LufauvFNNyQrLBN048fViRHcVKxcRKeG5hE28jmqiH/e2HjdQyZRrWusVXyGSkY4driraBFAQtc=; 20:oOOX4JZJQ/25No/hV6H6cn9TbZJ/lyupQZAJl80ZS+XKJ2L2ad0Ut2F+Zdac98Fdl5VLXMTmtbsnlGuqaYTdh66zFuUJdpkZjN9c3IvgnQazOHIwK1TYxaavIwbfeQSGxwDSmtggO1gIXLhJWb7ZnwqMDkVd02qjNcUnjqLSxz5RK84FvLmn8cVmP5EQLglkoi6kJO/hgjp9f7gSACo0PLERNO9esSrk/nRDRvei80jhBpdXuXXnmztC69WPdSGI/W1fD4lMjp0WQMkTWZsrc4mp4gpvwSdHBtwCvyQ9fLmBTolzUna1yOsAKQHPZ+gAw1zuvBLsekYINAVGe2mdNJ+syYGkHpsOfU5T9ocxnt94HHCX/1H+QOlK7LBk8KZpyg7ATsYfF/yYLRpap5DppDj/pVj7If+AHIBkFZVeyy9Bl2k3CUeS+OVv91j2ZTaxUdZo0dl/uDEAzHuhqFcQXhLgz0d3IhEwkRwO4QkwvSoPaEdTT9Uvl7xbF+sRh2Ob X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:BYAPR05MB4421; BCL:0; PCL:0; RULEID:; SRVR:BYAPR05MB4421; X-Microsoft-Exchange-Diagnostics: 1; BYAPR05MB4421; 4:4BMeevWN+slLiv5z1EgK7EgB3pcTwlB+cDorXhtlybVTnJAMuxH9KPGT1ROB/naO+zc47TqcN+ouhwpvHamw51Nd1WlGaSQJAriiAEkeP9TceR43uNXHhwkiVOQkwqnJjXtHZfmGpyVgh+XeDylFiktbvDcamrMtHwJO5kvRFi5Pasid7ZQEgH5Bta8551PQaIDy3drXe+Pv4HKU9g7fpKApr8fYOyJidaTiJMyzSvN09xPjc3KoJt/DmGrRe5uyf0+aKu6Uh5cLpZvCe42GZA== X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR05MB4421; 23:joiGbdJXs16fsq4DmBOjSEHp+9DEzyocpUZqU8LJr?= =?us-ascii?Q?aiPmq2NMGYbYegF/PgxLebHSLCfZ8sZE9KgdjqNOG/Wb4xrVB9io6x+876PI?= =?us-ascii?Q?LVMiSVZ+pYzcB0QsExLLDvuxicUuBCBEU/BaOvaPz/NOsx6xy4Rr/Bm+0DgN?= =?us-ascii?Q?LCIZyjBmqtv4gM7NVMALGrUcBGJs90E0TlWADSUl59Semq1U9gUNXTGU0YSw?= =?us-ascii?Q?zpmCMIRcNRiFTEuM+c21eTUVwpK0GNZjXVjWrQbrKtGkLrB8aNw7MWPNb64W?= =?us-ascii?Q?j9kz6kMLH1C5HS+EL2LNTesjD3YWcjm1R3wOiPwVdg4nsVEo18kcxVnCiKI8?= =?us-ascii?Q?7ZbWDg/FDErf80cD93uKSmowQDEqFYpxERvLCClw0wO2H97nytiC1Oy6D0ji?= =?us-ascii?Q?wElPoEupWqmkvHmRWpRkTOotjBSurcGDhsg5IQPw0VRfj/mey98gMvMhIZZ5?= =?us-ascii?Q?Ri+ZABm8zyxW9kY9wMHMpYK0ZCnUJDwWAQf0LWTEMX4o3YZFbIrbBM/M1eqF?= =?us-ascii?Q?s61jNfmfyKB9RRo0ZNFpsy4IUem4zoNvLDEK25tt7clCFqNoH6s92JfG2QQX?= =?us-ascii?Q?QJ8q+xl5+2TTmcTXxD0B0GMoBOB3Xr8ubM5l3WOnkuJw8ElzOECBB1Y8y5AZ?= =?us-ascii?Q?H2KPWLYwhSKQhIJq5L9fGzhFM9dVw+GnJR8+uTy+UJCAKyxt8Xf79TnYbYmG?= =?us-ascii?Q?9EAlRJ2jy8ouMfReSV0jetgfG3Ju61Q3kvjKmh61jDMkuMTXKOns49bBpGkU?= =?us-ascii?Q?qUuHx7a/aFyjOerDXdxcNcyr15HfPYZla46RxJfKRvHifDw2bAuhl3ObejpK?= =?us-ascii?Q?aCjffLn0DafXpHCDmNO/0e1jdyd3haXK2eIlMp+DFrlj/yH2iq/OoJ8Lk529?= =?us-ascii?Q?7ekLrCHPtcyeeCgXLvOgXV6RgnksH9Wvzcv0bqMzeoP6MLvIDsuhYCq2trrC?= =?us-ascii?Q?h8oSjOup6YryB28YdM6IcsHOr3pRnUEse5mIbaWwDkcTCxYiq96EHqFBYmMI?= =?us-ascii?Q?xFmWYQ7uiBgy+ctVqXlnHUiO5fnIz3404Zkg4StihBWt2hCl08V9F4bUS9wO?= =?us-ascii?Q?iY90xbJMqtmPy3yydysrOo7lKiqtUGmQ+FDb5WBvaNEOogEFlR9wkLB+Zy61?= =?us-ascii?Q?qR40U4OL7hdSkvDbpEXtZd9SSKBIbYmU27z+KNLKDoYeTTIeA9OmESYO157N?= =?us-ascii?Q?cj++Sw4jqGAG07xDdL1QuIUTtNGEcz34mbNUPxelRDCiqVylZPRBcLq7Z4Zw?= =?us-ascii?Q?oVK108A2l5Ukp11vvo=3D?= X-Microsoft-Antispam-Message-Info: 7bDkPu7i3eoF/0Mcwn/y7XV7E/Dyp/TxT3rdEtvInESpSF0b4tii519bkwG15GJdI4u60bvcWPq4SK4V32bSZAF++io0gec7zWvK7M/urCL9d2GBRfk4vjskPVdQLxrFK3J0fOSCR2ulwj/Oc0W/XNFzXmMOhIslEoEEassAgA1rJG2vFzbonBHMcpnVUp4R X-Microsoft-Exchange-Diagnostics: 1; BYAPR05MB4421; 6:bjbSVsGf+5nlIg+YfNR72nVvUGxubq9WMVlRegrNINObxyWHkoGrzEl51F0if8Xyy+FSskkymVKN8OqACm4fTLBT/TedlXMDgoT7/EZ+IliBjYdadRXXl2cuyt1ht3vuxsF/BDUcpb4C3jVnzuB7xwZ0ebXKK7ZzrYpfY3dVgfmrjmDcJVNsEmluDkV9CCUmu4f3ZrajotKqB4AprfQ4o/YCKXN+pD5gCBNJbDMtKerrj/QtocOU1glNXb4nuzjIdawrcZuMTdpSSRFw3gPfq4zIqQv6exUulWYIVlQ+cRTNC4XCl4P6dXz2NPg52evhSS09XUbHl8QokCzRQVO6HurVxjBLrr1nGJPVWjQCgV2wdaPbxELYdDIs9+cqDauZm0q7nf8AcJJShJDZ8Q4LTf2hsX/YHWKiy5/Lrbcd2P060BycN0BFxv6DU9HuDhahuRHFPHeO1onejktM/GSSqw==; 5:TY1rWk/6UC7MIBJhdEvea2c/qutSmHPFExLanw8/ZpJUA0Pf9SGfMYxqT04/IYAoehErI+FEGuXfF2+HHe6tp3M1XRCMP+guiZ/PBbMQ+bktQV1YMf3+I0p7DHmUmViSjBCZWBcLThY/1iDvZr4uMtb6KAKRHnfmNSHLFUOBDYw=; 24:2TqLR3p3CGkgiB2roYbbRgQBUlJVKBAHG3FAJeringMs63jLmbFw8Z5sJH/5uLa6hg+XICCSleLxhHzMoclr6/5TEdJE9GWtuwOag2gEDzU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR05MB4421; 7:0TeRtQdg0USE4+J17lYTNVAkt9aMhU7cFr/58UZFafIEx/PdiC+6d927qqcuXkr/SEzpa82D2Yew/hdsPAOc7SVvw2djNSr0GNszALIj46soSW22+mhsioE0WCw95nT2f/CwgXoY9EEUYH2uhuxgUw10kWo8hny1uoXY+o2Ct1IJ1JIdim4lL0zfMtyAGhHluTGcBYOkkLgU6d6JfFlpzrZ2+SpSoI2e3ka7Jn/7BpFTVYHYUApk6hIftbTyiwY/ X-MS-Office365-Filtering-Correlation-Id: 178860c7-4257-42de-b1b0-08d5b52b3320 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 21:32:28.6607 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 178860c7-4257-42de-b1b0-08d5b52b3320 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.15]; Helo=[P-EMFE01C-SAC.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB4421 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-08_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=877 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805080202 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 21:32:33 -0000 Konstantin Belousov writes: >Also, try to link in libpthread. This was interesting, not that I'm sure what it means: % env LD_PRELOAD=/usr/lib/libpthread.so /tmp/uptime 5:26PM up 4 days, 9:22, 3 users, load averages: 0.55, 0.52, 0.51 (where /tmp/uptime is a symlink to /usr/obj/.../w/w). (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552) Does the mean that the use of __thread requires -lpthread? My understanding was that the startup code handled thread-specific data for the main thread of execution. Thanks, Phil From owner-freebsd-arch@freebsd.org Tue May 8 21:39:07 2018 Return-Path: Delivered-To: freebsd-arch@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 C5468FCB028 for ; Tue, 8 May 2018 21:39:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A203773FE for ; Tue, 8 May 2018 21:39:06 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w48LctSL083896 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 9 May 2018 00:38:58 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w48LctSL083896 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w48LctaY083895; Wed, 9 May 2018 00:38:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 9 May 2018 00:38:55 +0300 From: Konstantin Belousov To: Phil Shafer Cc: freebsd-arch@freebsd.org Subject: Re: initialization problem w/ thread-specific .tbss data on i386 Message-ID: <20180508213855.GS6887@kib.kiev.ua> References: <20180508081417.GL6887@kib.kiev.ua> <201805082131.w48LVvBo071075@idle.juniper.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201805082131.w48LVvBo071075@idle.juniper.net> User-Agent: Mutt/1.9.5 (2018-04-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 21:39:07 -0000 On Tue, May 08, 2018 at 05:31:57PM -0400, Phil Shafer wrote: > Konstantin Belousov writes: > >Also, try to link in libpthread. > > This was interesting, not that I'm sure what it means: > > % env LD_PRELOAD=/usr/lib/libpthread.so /tmp/uptime > 5:26PM up 4 days, 9:22, 3 users, load averages: 0.55, 0.52, 0.51 > > (where /tmp/uptime is a symlink to /usr/obj/.../w/w). > (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552) > > Does the mean that the use of __thread requires -lpthread? My > understanding was that the startup code handled thread-specific > data for the main thread of execution. No, try to compile libc with e.g. clang 5 and see if it also fixes libxo. From owner-freebsd-arch@freebsd.org Tue May 8 21:49:09 2018 Return-Path: Delivered-To: freebsd-arch@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 E2739FCB76E for ; Tue, 8 May 2018 21:49:08 +0000 (UTC) (envelope-from phil@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 39B257A056 for ; Tue, 8 May 2018 21:49:08 +0000 (UTC) (envelope-from phil@juniper.net) Received: from pps.filterd (m0108158.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w48LjQJE025896; Tue, 8 May 2018 14:49:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=message-id : from : to : cc : subject : in-reply-to : mime-version : content-type : content-id : date; s=PPS1017; bh=lzuYYPZ0UkjzzFKvph0cSHFtX30cpq3V17ec+FSs5G0=; b=nYVODThVm/gCGJQJjnUG4jxF/XoQ25h2NWVYoldAliHDY1og2n5wQua1yj5VYkJkVaqX tVnjrFvM+D57G6oXrKb42ejIStVmbTOEw43rE1+oGmveC4pYw1ShgYj4Jzly1ycDue3M RIReEB5ocoNwuAHilD/DXraQKa4ATKt6xlRCqqtU94rEqimukjOFxhYTbb9hdYDn+CNX k+fekobCrrkMymyqLdEaj+ZXJeCXrub0J1bwZusChtkEAeg8ZcwingljTXFsPJcvKYT7 AzSTXVIUsPm0nJoZUej5Flhd+T4j5uS/vRIiO11GiF7n0ZbYVSF1ThEa04BCu0nLG4Qa 1w== Received: from nam02-cy1-obe.outbound.protection.outlook.com (mail-cys01nam02lp0049.outbound.protection.outlook.com [207.46.163.49]) by mx0a-00273201.pphosted.com with ESMTP id 2hufss8kwm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 08 May 2018 14:49:06 -0700 Received: from SN4PR0501CA0141.namprd05.prod.outlook.com (2603:10b6:803:2c::19) by BLUPR0501MB2049.namprd05.prod.outlook.com (2a01:111:e400:c475::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.10; Tue, 8 May 2018 21:49:04 +0000 Received: from DM3NAM05FT017.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::201) by SN4PR0501CA0141.outlook.office365.com (2603:10b6:803:2c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.10 via Frontend Transport; Tue, 8 May 2018 21:49:04 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.15 as permitted sender) Received: from P-EMFE01C-SAC.jnpr.net (66.129.239.15) by DM3NAM05FT017.mail.protection.outlook.com (10.152.98.126) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.755.10 via Frontend Transport; Tue, 8 May 2018 21:49:03 +0000 Received: from p-mailhub01.juniper.net (10.47.226.20) by P-EMFE01C-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 8 May 2018 14:47:38 -0700 Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id w48LlbK4026433; Tue, 8 May 2018 14:47:37 -0700 (envelope-from phil@juniper.net) Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.15.2/8.15.2) with ESMTP id w48Lm3tw071259; Tue, 8 May 2018 17:48:03 -0400 (EDT) (envelope-from phil@juniper.net) Message-ID: <201805082148.w48Lm3tw071259@idle.juniper.net> From: Phil Shafer To: Konstantin Belousov CC: Subject: Re: initialization problem w/ thread-specific .tbss data on i386 In-Reply-To: <20180508213855.GS6887@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <71257.1525816082.1@idle.juniper.net> Date: Tue, 8 May 2018 17:48:02 -0400 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.15; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(39380400002)(376002)(39860400002)(346002)(396003)(2980300002)(189003)(199004)(97756001)(97736004)(47776003)(86362001)(53936002)(26005)(81166006)(6246003)(81156014)(2906002)(2810700001)(77096007)(1076002)(1411001)(23726003)(8676002)(186003)(76506005)(53416004)(39060400002)(46406003)(59450400001)(7696005)(229853002)(8936002)(50466002)(126002)(476003)(7126003)(6916009)(11346002)(16586007)(5660300001)(8276002)(69596002)(68736007)(4326008)(486006)(336012)(426003)(478600001)(316002)(356003)(105596002)(106466001)(305945005)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR0501MB2049; H:P-EMFE01C-SAC.jnpr.net; FPR:; SPF:SoftFail; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM05FT017; 1:9wFDgGxCXOsEZ+SNCrW3e8SH5F9TQcohQ/QAradBXMI/9SVj6cNPcffnTJvAPGpmGwNRXuZL4o4AgczqPZepAUEHYVRNkSNm95M8r9tKfa+e1LWeFRmxun2BElUb1C7o X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BLUPR0501MB2049; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2049; 3:qaJqWsbh9E/ZPwLQ/nCcTinSQqd+w/Ra3ogrOvuV79NicKWTiOm+0iNKOh49WaEcK2mhzQCbzQUQbZSSsdXz62Ua3aJ1vms7C652lDzUN3xzDtbkHxwpRGLy7QX+tkCF+17AdWyQ7DW53tfVp9XShIvaO9jikJUeA+93MyYFfMd4/Nfz+jYSdZynDQtYTGkfPn6czcL+KwgXEzzAo2OJImxh6jdOSHsukouli2QsnSKFmrQNDkBLZYM5FZEOq6NMHn68r+1YzHmVeE49SsJ11JIXFpJJMWQYvUKs3fLt6IJ5TcmCoJcLe/YpNSZkUOIBdlyEFnYR8YGxTi++i1Pqam2W7bXYoKvI6mAzv+3Qd8E=; 25:ahVhA9c04xz+v/u/4igDAsGD6bmRF9/3nZrAy+b3EHCeG7G9s4C5BU1Et1949cVHOXYROwdE9ZS0JsEYKfTcA5+xBHSFkXzVYykPUT504Wl4FeZqKf0lM01TX6cTc0cDel+628gS1IwrTLerbjertkFTNX0kwsB1yyEMZXhrJQxYH8XzS11BYMu+xvBlYBU+olJ2AUbZqKyWrGPV4oMB2gHzz8l2ZFHoE6X4+py+u/S2rfEdly1CxyjVIr+u1+qLhKzDQbm/NsJTnOCWZYMoDGkvkE4DRk62Nkqn5BnXhb3y6PEEygDwfcVyezJ10nW+e0KuznPV7Dq+knGPn5Ynlw== X-MS-TrafficTypeDiagnostic: BLUPR0501MB2049: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2049; 31:5aKtAVzDQxQvPGKUZDejHdCCC95p3C/3sm+IqiZv/jiltpLJXYfhgqyroF7IbN6Upb2No55q8MHPsZEmdKW4kh5bgxnWy2lLPkhl756h+HUTZQvFkljc+9pmWQuiz/oCavXpg9XJk4VnG1TY0AoITBs4uogttrvXsisLyuikPjKwB69QTWakAAVdJCFJa41KxH2nDIcsDNWdycpM9YuVrEVw3ZPnt5SBbWwEhHzwlfk=; 20:t0athbpvtWEhbW+Jp+448PT8PMGWq/Bxm4xa26n2frfQhXoGXJ6GLiV9TBEtUjVr34AilVMTkv6PNTVgit951sgYZygqEOjwe7AqO+4KmcOIvV+ibWoDp6koPSR3zLjrZTcFxfmkcPn7jor7tsc6hl+xv7qnAYL0eSpsGGShvJhpth3ku4jxLJYw2UnPv3OE0/EZIFYlvJIpEhKndUhB6Y3vxIK5VfbNxDepkvFcFSVgqwVlZ7W8tJmwtUDzBW9qRkHoyTtKgszmO9cWgvf+8yHHi8cGFaTLcx9v7GA97aD7ynI7WkwVSELDswr8uSXEAXj/zrA0n4pBuaFYmXUN4QdNTRHH6F6eMF/AEgYp5ryz3oCFqdobzJU+QE5mSOY5PXyhSw1hqLMNzUkZ9+liUrLsiFXg2AQjYWJ3auKelyeS9hUl0goHoWRynRYxUfjq89jtt927Xkc5hNWFDOf56uWhGVAyPMhanAVQR/gzmnISNGpBbRRW0Cqspi0r9emR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:BLUPR0501MB2049; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0501MB2049; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2049; 4:ikIdjDDH8BPl4aIHNjv8cdjkqH6Sdt+z2NhRyoUEtWAeHyVtjaTLeCXUPfi3ohm8F0MtcLCaM5mVhAB0Qtia8g7+o518Tiu6wWW6QmNcHDFHxN4gj8Uwqmt4ysB5exqoPA+CufwY42Fws7pdzn99K/wBK/eAbyT1If+ctuSs17bk9DL+k83LTmIKjK8xie7zLlHJn3T4EjB8gNiu4btuBvhI5Hf1v9+W1cWMa8kebLZl8GY5GC00BHaNy+hN9qMjowIlpg9l6qRQUvl1fEwwbA== X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0501MB2049; 23:TCqhvCv+/px7mpcaMba7g9HfLFPwCtFHlbUtKpO?= =?us-ascii?Q?V+RgrzHSUPurqh1S/WVqQWMNHQnfpOxBQUO4gfRs29T7PYP3qszXHPSn1AVG?= =?us-ascii?Q?VQR5v53whTUdRT+7itj+NAdSKT507kyCJ9hBuxkf0ydsXcJ7GAeRWS/6ZkKy?= =?us-ascii?Q?HierqRXuFWoiwZOnAABadFNVtMEupNebUziLVV/8ili52aNgQIW3ph4ziUOD?= =?us-ascii?Q?7/ZaF/ozBe5H+xUhPiloWnAeA4aD5C1PKZfc9AQFZRSh6I1AVbKEWlxme7df?= =?us-ascii?Q?hLuhcL0Vco0tiOqnZ0Qxt65/Y7JQJMr/ul+3HrOODydJc09SZ+/M2IW+UYpm?= =?us-ascii?Q?Ttb4+KnPAkuZ9QCvhL0cl0fejyw7fz6IToLVWwnUIXKIAmiFCMI5UCm3ZfSG?= =?us-ascii?Q?PdLiB89mg706GUTCR2G4b9qLS9vEJC/OXRhmfXMHQD+2TJXhrR9hQEtrgPbG?= =?us-ascii?Q?NN5vkqQXw+tqgtyQ7aoIPH51a6n8ENVWgnJydPRrpyVOQn7W50/kMUmHcf4l?= =?us-ascii?Q?c0XGxITTTKR/iArFG8X50dzy34WDRmmSItOVpIfRNJ+UfQ+yt7IDbzqD/HfL?= =?us-ascii?Q?arYcT/CBoMecHITQtr2/pSjoGWYztqmctpH8VnLY/kpyj4lWIMjkvicfqIB4?= =?us-ascii?Q?FM2dfsPLe4dTYFSGLNQUT1IkapmBfLZKSb1D5QmskKcxqVmvAfQwgSmG4TmL?= =?us-ascii?Q?HBKm9aS/peXooucSjHdMKIO1i5N2d1fm+lYNSqq9ia3rX9FzeT8g35rjj2sj?= =?us-ascii?Q?zXtM++W/cdl09ws6smINI4p4J2qdcvHGmaE5IhoPbie/U8yb9azmqteG+HQU?= =?us-ascii?Q?TbELTWLdPuEdSIRnPHW1pg7nrRTapub7toEzFB0Vz2uNl6WrENngKDGE4bdV?= =?us-ascii?Q?UyBBoBQH/sYyAWYYypwZ0Q+9oUihi1ckB+mCdDHhilv14arOTgGSpuufck+x?= =?us-ascii?Q?db5vNcC3TeNAjtTPCT4CcMtdzTH4tJ3kvoCXhfRBaigCNzSH+E3yKYq32jQe?= =?us-ascii?Q?qF4qkZzx09HkchFBVlcPFrQxxAuMvyAM30ai51ZQRraybM/4+G6NozRSn16y?= =?us-ascii?Q?mBkywTGxM6p2FuR9zvcgU/gjIK5kxdt58sksyb1XuBiYegAoQipcllUl8F0E?= =?us-ascii?Q?O59v/Oqsb5Qb006ZZXHASYZeu4xv1RzSkTCuxsknupBDkWV322vCbbwF9sse?= =?us-ascii?Q?P4xs0cKTs42pFa0/rvDWXeLyrZksVFGEcoKTfqoIf4WKQ+QMuw2h8Yes8bsL?= =?us-ascii?Q?06iyh9zTZ3vXLwObAL9M=3D?= X-Microsoft-Antispam-Message-Info: iej6YGkO71uSqq/jYDqXX4zCQ7gIzjLIb0R1kAI3R5V9RiubbDSyZbxxhvchOHY9uW8mobQWROiZcwsdVLl29nADrnZng3cHIz3QMArgHhAvaszYyyPpWVJIkqUOokPquLPV4JilYrutP3vZIqlBMBZ0+1UoUvjouv9CdPeXb62qjtaiey26deG5KQ0jjiTz X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2049; 6:Ao+OpGcDtooCEjS+NIy6vFLr2+tXP/DTPapHmtAvH1S4g29N2wpqnQRikUCBUSnDoz6F93ZuTUeCxPTz0Dp1sxAfvDXYSkmkNdQkC85fzrpYPkhrOKpkGjd255sl8yC3iDb8MMHjPPuSTX1VGAt5rCTpGGAyIqB5wnvGDykSFSd2ksM9s3GoDcZ5MrGb5pqtKBX3QK/WqU6qY2xbsX+bgRv6gCab+GuRb3ILaVXirdQdXanKNVuhz2E5KBHI1+R9tM+puqHh4XPdqvHuEW50Lfvhk4yKDivkkESaWnz0iAg6UXhHtU2RvBoGJK7K2dYWqf/ndEe0/dFALz4mPOGcwB3X7tbeJZ6O7DPb2ppzwpIODJlTHNELFBXVM5LqYLnaQtS/JrCuCch1eaJtrkiWJmq0oaPfdhrEeD0flt7Z5OVtiIVwxskUUb58LwB83in+zN6IZJy31gI9lfQkMdKDgw==; 5:SR0Ixe591BLRnLBv1ZePj/qtg2lb3U08Z7VuU0H4YEzccdmTR7H4omb6W2M1xIrMGEqLC4+PadhQsFif/KkLQ/K+PLTxeMnPlM7emb1d8uZ5dxSORszhaFBG0AjcedBEny86N7o9zHjHO+wSHVjNahWRmYcKPAXBAaA49hmEvoU=; 24:HM8bz9+KsiSYAtDnm6RIkvH54lOZGJfZJRJQCO/Syo0QGaL4EPoTY8FacENPHitXYtwjmFNKt/ijOuGihKUxF587ZkUbhZ09ZLez01eVHmQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB2049; 7:CcqD1a1itpAopM+NmV3nQ1X2+tlUsTj5SQIX66XQFwL+FsHx1RFriPoQjT78fCXBP9UTlOf9DcRG/MjuvjjFDKvMjG44GRsFLTx5d5i7mrLV60hh1WvFM/e0hEF+owt3hkDbSn/ebpJb+wijYIXISQXF0VEQPiot2+EG9c3TIVyofRuduqpM5FCCkc1UtfObEDYcdkk+ADxHgbabTGFMntubzOlsSiCIq92YSPdctue9i08+RKOAgG8F2nPM+Vfk X-MS-Office365-Filtering-Correlation-Id: 9ab78ac6-4f69-4204-314b-08d5b52d846e X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 21:49:03.9776 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ab78ac6-4f69-4204-314b-08d5b52d846e X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.15]; Helo=[P-EMFE01C-SAC.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0501MB2049 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-08_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=851 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805080203 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 21:49:09 -0000 Konstantin Belousov writes: >No, try to compile libc with e.g. clang 5 and see if it also fixes >libxo. See PR 227552 comment 20, where Dimitry Andric says: Hmm, now that we've identified .tbss as a contributor to the problem, it looks relevant that the r331838 version of libxo.so.0 (compiled with the clang 6.0.0 update) does NOT have a "section to segment mapping" for .tbss: ... Before clang-6, it was working fine. Thanks, Phil