From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10931 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Reviving planned ldso changes Date: Sat, 14 Jan 2017 15:30:50 -0600 Message-ID: <587A988A.50105@Wilcox-Tech.com> References: <20170103054351.GA8459@brightrain.aerifal.cx> <20170104060640.GM1555@brightrain.aerifal.cx> <20170104062203.GN1555@brightrain.aerifal.cx> <20170104193627.GO1555@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wCsA5SWaXu9Gsme09gmQdttw2bdlLOWa2" X-Trace: blaine.gmane.org 1484429497 2233 195.159.176.226 (14 Jan 2017 21:31:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2017 21:31:37 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 To: musl@lists.openwall.com Original-X-From: musl-return-10944-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jan 14 22:31:32 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cSVut-00076b-FH for gllmg-musl@m.gmane.org; Sat, 14 Jan 2017 22:31:15 +0100 Original-Received: (qmail 28395 invoked by uid 550); 14 Jan 2017 21:31:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28362 invoked from network); 14 Jan 2017 21:31:15 -0000 X-Enigmail-Draft-Status: N1110 In-Reply-To: <20170104193627.GO1555@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10931 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wCsA5SWaXu9Gsme09gmQdttw2bdlLOWa2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 04/01/17 13:36, Rich Felker wrote: > Here's a v2 of the patch with the above issues fixed, and some > comments that hopefully make it make sense. I still think there's more > logic needed to allow concurrent ctors from unrelated dlopen in > multiple threads, though. >=20 > Rich >=20 Applied to this to Ad=E9lie's musl package in a dev overlay and rebooted = a box with this patch applied. What a fantastic little show! iv_tls_user_ptr: called on unregistered iv_tls_user /etc/init.d/syslog-ng: line 34: 2560 Aborted syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}" * ERROR: syslog-ng failed to start When X tried to start up, further fireworks: /usr/bin/startkde: line 384: 2638 Segmentation fault kwrapper5 /usr/bin/ksmserver $KDEWM $KSMSERVEROPTIONS Starting program: /usr/bin/kwrapper5 /usr/bin/ksmserver process 3281 is executing new program: /usr/bin/ksmserver [New LWP 3287] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff009938b in operator=3D=3D (s1=3D..., s2=3D...) at tools/qstrin= g.cpp:2686 2686 tools/qstring.cpp: No such file or directory. (gdb) bt #0 0x00007ffff009938b in operator=3D=3D (s1=3D..., s2=3D...) at tools/qstring.cpp:2686 #1 0x00007fffe2af2ae4 in operator!=3D (s2=3D..., s1=3D...) at /usr/include/qt5/QtCore/qstring.h:632 #2 KHintsSettings::KHintsSettings (this=3D0x7fffe65829c0, kdeglobals=3D.= =2E.) at /usr/src/kde-plasma/plasma-integration-5.7.5/work/plasma-integration-5.7.= 5/src/platformtheme/khintssettings.cpp:70 Where khintssettings.cpp contains: 68 const QString looknfeel =3D cg.readEntry("LookAndFeelPackage", defaultLookAndFeelPackage); 70 if (looknfeel !=3D defaultLookAndFeelPackage) { And defaultLookAndFeelPackage is defined earlier in the source file as a constant: static const QString defaultLookAndFeelPackage =3D QStringLiteral("org.kde.breeze.desktop"); We can see that defaultLookAndFeelPackage was not initialised correctly: (gdb) printqs5static looknfeel $9 =3D (Qt5 QString)0xffffdde0 length=3D22: "org.kde.breeze.desktop" (gdb) printqs5static defaultLookAndFeelPackage $10 =3D (Qt5 QString)0xe2d0be90 length=3DCannot access memory at address = 0x4 It therefore seems to me that this patch still needs some refining. --arw --=20 A. Wilcox (awilfox) Open-source programmer (C, C++, Python) https://code.foxkit.us/u/awilfox/ --wCsA5SWaXu9Gsme09gmQdttw2bdlLOWa2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYepiKAAoJEMspy1GSK50UvBoP/jQDZ50NqLAivNSFkAggkXgn BX16uXVI6sHjKw4tnBVYRQIyCTVfdwZqy9pj7plRnSuUdEQ4nniRN2qrVA3QEvzw cFb7QzCu+ludGVaklo/+HKmhTBbriRup5tQm+F57VjRO7RBTB8ibkSjsqmTJkg2V eQ35pqq/+UCw+JbwCqTOs0DLOH/33uhWA9R7V+cVYFXqObU7o0+mjyertxuaUnyx vhIx6ZLtVv3AwuZW83q0V0HNUPjml1HEOOQaQ32tCTf63sHkTmrHqnc+XEHwu/Wq O/OTc4eSVjbLkqGbGOFlPI+8mBl7ynGkueFBn6QFg1ty+1B3ZBZeC8FawGjamLbl /a2n1j58cHHd2I4I+VX2f697rnDixnGpCosyi71ipGkBG/uXNXvnshVGjJ4ciQcf F/XcZKgx2UPdwLCAXIudWbDOxTkjJldxOJ7b45Y1M2pBuNP7EsGuoAusjWcH9YbS H/R5WkV6nq5kRfo6BuXa4rgn7FNYZCX+OZsPq7TZljqYVQy4Q+ZAbKIL5AmoiQ9B c8IrwpAJVueR8Z0BjXy3EHH2D+uRHkKatWim8RafyC8htfk3YO+wb+BT/MGiReR9 jci4Ius92eotNOqfO2JH3L+fJEZZiwZxhhMgVU31hbeg0dobq7nms51Y0R6WWNqG xI72OybiB4Wup6XsZW0D =f413 -----END PGP SIGNATURE----- --wCsA5SWaXu9Gsme09gmQdttw2bdlLOWa2--