From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 31 12:48:16 2011 Received: (at submit) by debbugs.gnu.org; 31 Mar 2011 16:48:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5L2c-0005WN-3m for submit@debbugs.gnu.org; Thu, 31 Mar 2011 12:48:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5IZL-0001tm-54 for submit@debbugs.gnu.org; Thu, 31 Mar 2011 10:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5IZB-0006VM-1x for submit@debbugs.gnu.org; Thu, 31 Mar 2011 10:09:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:40216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5IZA-0006VH-V5 for submit@debbugs.gnu.org; Thu, 31 Mar 2011 10:09:41 -0400 Received: from [140.186.70.92] (port=56676 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5IZ9-0006pE-ED for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2011 10:09:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5IZ7-0006Un-T4 for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2011 10:09:39 -0400 Received: from valhalla.dre.vanderbilt.edu ([129.59.129.253]:35683 helo=smtp.dre.vanderbilt.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5IZ7-0006U7-MC for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2011 10:09:37 -0400 Received: from [101.38.172.19] (adsl-86-11-173.tys.bellsouth.net [98.86.11.173]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.dre.vanderbilt.edu (Postfix) with ESMTP id 8945EFC045 for ; Thu, 31 Mar 2011 09:09:35 -0500 (CDT) From: "William R. Otte" Content-Type: multipart/signed; boundary="Apple-Mail=_B344B71A-8E28-40FD-9BE0-10103F51F8CE"; protocol="application/pkcs7-signature"; micalg=sha1 Subject: Compile error with Xcode 4.1 in unexec Date: Thu, 31 Mar 2011 10:09:34 -0400 Message-Id: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1213) X-Mailer: Apple Mail (2.1213) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 31 Mar 2011 12:48:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --Apple-Mail=_B344B71A-8E28-40FD-9BE0-10103F51F8CE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi -=20 I've been trying to build emacs-23 branch from bzr using Xcode 4.1 (not, = not 4.0.1) with either included compiler. While the patch for bug 8223 = resolved one issue that I'm having, I subsequently encounter another = error in unexec, found attached below.=20 I'm happy to help debug this, as 4.1 may not be readily available to all = involved - but will require some guidance from someone familiar with the = code. thanks, /-Will =20 Dumping under the name emacs --- List of All Regions --- address size prot maxp --- List of Regions to be Dumped --- address size prot maxp --- Header Information --- Magic =3D 0xfeedfacf CPUType =3D 16777223 CPUSubType =3D -2147483645 FileType =3D 0x2 NCmds =3D 50 SizeOfCmds =3D 4208 Flags =3D 0x00200085 Highest address of load commands in input file: 0x5dd000 Lowest offset of all sections in __TEXT segment: 0x20c0 --- List of Load Commands in Input File --- # cmd cmdsize name address size 0 LC_SEGMENT_64 72 __PAGEZERO 0 0x100000000 1 LC_SEGMENT_64 632 __TEXT 0x100000000 0x202000 __text 0x1000020c0 0x1b6c2c __stubs 0x1001b8cec 0x1248 __stub_helper 0x1001b9f34 0x1e88 __cstring 0x1001bbdc0 0x172db __const 0x1001d30a0 0x534 __unwind_info 0x1001d35d4 0x20f4 __eh_frame 0x1001d56c8 0x2c930 2 LC_SEGMENT_64 712 __DATA 0x100202000 0x311000 __program_vars 0x100202000 0x28 __got 0x100202028 0x70 __nl_symbol_ptr 0x100202098 0x10 __la_symbol_ptr 0x1002020a8 0x1860 __data 0x100203920 0x2a5ee8 __const 0x1004a9820 0x1ff0 __common 0x1004ab820 0x10ce1 __bss 0x1004bc520 0x563b8 3 LC_SEGMENT_64 72 __LINKEDIT 0x100513000 0xca000 4 LC_DYLD_INFO_ONLY 48 5 LC_SYMTAB 24 6 LC_DYSYMTAB 80 7 LC_LOAD_DYLINKER 32 8 LC_UUID 24 9 unknown 16 10 LC_UNIXTHREAD 184 11 LC_LOAD_DYLIB 64 12 LC_LOAD_DYLIB 64 13 LC_LOAD_DYLIB 64 14 LC_LOAD_DYLIB 72 15 LC_LOAD_DYLIB 56 16 LC_LOAD_DYLIB 56 17 LC_LOAD_DYLIB 64 18 LC_LOAD_DYLIB 56 19 LC_LOAD_DYLIB 56 20 LC_LOAD_DYLIB 56 21 LC_LOAD_DYLIB 64 22 LC_LOAD_DYLIB 56 23 LC_LOAD_DYLIB 72 24 LC_LOAD_DYLIB 64 25 LC_LOAD_DYLIB 64 26 LC_LOAD_DYLIB 56 27 LC_LOAD_DYLIB 56 28 LC_LOAD_DYLIB 56 29 LC_LOAD_DYLIB 64 30 LC_LOAD_DYLIB 64 31 LC_LOAD_DYLIB 56 32 LC_LOAD_DYLIB 64 33 LC_LOAD_DYLIB 64 34 LC_LOAD_DYLIB 64 35 LC_LOAD_DYLIB 64 36 LC_LOAD_DYLIB 64 37 LC_LOAD_DYLIB 64 38 LC_LOAD_DYLIB 56 39 LC_LOAD_DYLIB 56 40 LC_LOAD_DYLIB 56 41 LC_LOAD_DYLIB 56 42 LC_LOAD_DYLIB 56 43 LC_LOAD_DYLIB 56 44 LC_LOAD_DYLIB 56 45 LC_LOAD_DYLIB 56 46 LC_LOAD_DYLIB 56 47 LC_LOAD_DYLIB 64 48 LC_LOAD_DYLIB 64 49 unknown 16 0x7feafc1fc080 (sz: 0x3f2d/ 0x3f30) 0x7feafc100000 (sz: 0xfc07f/ 0xfc080) 0x7feafaefc080 (sz: 0x3f2c/ 0x3f30) 0x7feafae00000 (sz: 0xfc07f/ 0xfc080) 0x7feafc0fc080 (sz: 0x3f2c/ 0x3f30) 0x7feafc000000 (sz: 0xfc080/ 0xfc080) 0x7feafadfc080 (sz: 0x3f2d/ 0x3f30) 0x7feafad00000 (sz: 0xfc080/ 0xfc080) 0x7feafcff8000 (sz: 0x316c/ 0x7fa8) 0x7feafc800000 (sz: 0x313ffe/0x7f8000) 0x7feafbff8000 (sz: 0x7f9f/ 0x7fa8) 0x7feafb800000 (sz: 0x7f7fff/0x7f8000) 0x110803000 (sz: 0/ 0x1000) --- Load Commands written to Output File --- Writing segment __PAGEZERO @ 0 ( 0/0x100000000 @ = 0) Writing segment __TEXT @ 0 (0x202000/0x202000 @ = 0x100000000) Writing segment __DATA @ 0x202000 (0x311000/0x311000 @ = 0x100202000) section __program_vars at 0x202000 - 0x202028 (sz: 0x28) section __got at 0x202028 - 0x202098 (sz: 0x70) section __nl_symbol_ptr at 0x202098 - 0x2020a8 (sz: 0x10) section __la_symbol_ptr at 0x2020a8 - 0x203908 (sz: 0x1860) unexec: cannot write section __data make[2]: *** [bootstrap-emacs] Error 1= --Apple-Mail=_B344B71A-8E28-40FD-9BE0-10103F51F8CE Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIF7jCCBeow ggPSoAMCAQICAwnU5zANBgkqhkiG9w0BAQUFADB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQL ExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3Jp dHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0xMTAyMTgxODMwMTNaFw0x MzAyMTcxODMwMTNaMIGxMR4wHAYDVQQDExVXaWxsaWFtIFJvdW50cmVlIE90dGUxJDAiBgkqhkiG 9w0BCQEWFXcub3R0ZUB2YW5kZXJiaWx0LmVkdTEnMCUGCSqGSIb3DQEJARYYd290dGVAZHJlLnZh bmRlcmJpbHQuZWR1MSIwIAYJKoZIhvcNAQkBFhN3aWxsLm90dGVAZ21haWwuY29tMRwwGgYJKoZI hvcNAQkBFg13Lm90dGVAbWUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx+T/ 08r5MjosJ8+B2lZpjmbBPz+dUwbaSA7fr8AIxeoRxxHlROSfE+HyKoPfM+o73sllg/AAJ2zrWsfF wML6EB8k9CkBYv4300yDMc3YM61+E8Nu0M1GUTRiW5dMgLPNPL2LavNrx30qQmEE+56G4NkU3el+ O+4CtzFrg/jkDZKRV4bb4J4nilyuWIAaGu0rk5e7mRSk3581bFDztwqlr58w3htuEq/pR6o+5m+l LRQpGqDCdb0touIx77oN4XT6LQXxYBsA53ND7u+lPAl58BJAjubgNgQBWMEN32PVNc9iDkLd86We agR33iRtCSaYhWhJkBGo44Q33pcVwU5N4wIDAQABo4IBQDCCATwwDAYDVR0TAQH/BAIwADBWBglg hkgBhvhCAQ0ESRZHVG8gZ2V0IHlvdXIgb3duIGNlcnRpZmljYXRlIGZvciBGUkVFIGhlYWQgb3Zl ciB0byBodHRwOi8vd3d3LkNBY2VydC5vcmcwQAYDVR0lBDkwNwYIKwYBBQUHAwQGCCsGAQUFBwMC BgorBgEEAYI3CgMEBgorBgEEAYI3CgMDBglghkgBhvhCBAEwMgYIKwYBBQUHAQEEJjAkMCIGCCsG AQUFBzABhhZodHRwOi8vb2NzcC5jYWNlcnQub3JnMF4GA1UdEQRXMFWBFXcub3R0ZUB2YW5kZXJi aWx0LmVkdYEYd290dGVAZHJlLnZhbmRlcmJpbHQuZWR1gRN3aWxsLm90dGVAZ21haWwuY29tgQ13 Lm90dGVAbWUuY29tMA0GCSqGSIb3DQEBBQUAA4ICAQAX8Wydq7OBtj5UHeJNoqcrDBM+N81Mlov0 FYgRnGgAFRErjsGTnw+5go7yoxuz4UyWDVjLIxzRaLV9kGlzUSJoyT/iRkWdOoyJph0GLy4m5yA0 pe8wjIlQWmVorxapQCXLtJ3J4q/kszBJyKhWG0dPuOS5Dzh7jw41ATGMpWOu4GVTrpJ2cOtn3TG9 EzW+tvJMt21ywjdDpVk+qrlCMR/GHjyvuttzcXFZmUjwTpJHkEeMWuLT3XfXOXhfkH4dzn/UN3Dv SpNSOFpKZ+v7FjDfO8HNgA1pHtCpo4c4mFWpAED/rHg4x4txfOLwZ/wagM/XWzcMV4Z+wPDUhv8S ZMDZlTx0NB8UsBZfZ3ZUEvp2dmescEMoq5tDz7JKHO1gc2D3/5M9Q1hzfk9HTI3y9PCuldQqj+NV Cy69ba9mDJ+/h5MrQpefVbrcgVN3bqM/utAQ+w8eDqTxN94Os5XZFV+ixtn2fCR0o1aH8R+WEAO3 FkJEWAWWZXtBN0i+qwqMvcUBxLdvUWb3K4wrSDaC2+f2rPHPjIBZvYcbnS4fiFH9RiCW7O/hrh2K 5BzcLBIwwsAjQA05wiruG1JwldhN4I7BAKyMRKZNjMqvVrjalclUvuSjyco7/PMvAwxqzrOyX0dS HWy33HIjmiIYvOTB3HG5hm3Ju1ZMzkvoIZZAEZdx7zGCAzMwggMvAgEBMIGAMHkxEDAOBgNVBAoT B1Jvb3QgQ0ExHjAcBgNVBAsTFWh0dHA6Ly93d3cuY2FjZXJ0Lm9yZzEiMCAGA1UEAxMZQ0EgQ2Vy dCBTaWduaW5nIEF1dGhvcml0eTEhMB8GCSqGSIb3DQEJARYSc3VwcG9ydEBjYWNlcnQub3JnAgMJ 1OcwCQYFKw4DAhoFAKCCAYcwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUx DxcNMTEwMzMxMTQwOTM1WjAjBgkqhkiG9w0BCQQxFgQUFWZKkI6o/oZmKHSp8i4eZ0klYRAwgZEG CSsGAQQBgjcQBDGBgzCBgDB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQLExVodHRwOi8vd3d3 LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG 9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZwIDCdTnMIGTBgsqhkiG9w0BCRACCzGBg6CBgDB5MRAw DgYDVQQKEwdSb290IENBMR4wHAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMT GUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0 Lm9yZwIDCdTnMA0GCSqGSIb3DQEBAQUABIIBAF5TW2NLvh+Of3KmcVamVPDYmxStaKUx4eBdiYRz Oy/ZFmN5qs8iGMKwNSSbZmFaw0XfyOwfTHWVtLQm0jd1ELARlLXiKHeS1iB+6zFpjHI6kMY+Wpyr TSmQIkk03DFBGRseDNVtqf8PgU8tqGCqQULdvWX12uBza960g5nIpF/o/ee8EjQ27wlz9mDigAWa XHuRMf+Nukeri4bRPxtHITkUedwZFDEeBQ4TmzYslaTtzLxZQQtkK/gi0qGeVg+ITPUW7fcSoxkC w1QfE57qX50C1py5gxxpGPzZ/bOhKm+8TeOMWblFIrZZ1M72jN1MVsWvUCkuwCy3rXZ9xLxAhlIA AAAAAAA= --Apple-Mail=_B344B71A-8E28-40FD-9BE0-10103F51F8CE-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 12:02:19 2011 Received: (at 8395) by debbugs.gnu.org; 5 Jul 2011 16:02:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe84n-0003xv-DG for submit@debbugs.gnu.org; Tue, 05 Jul 2011 12:02:19 -0400 Received: from howl.play-bow.org ([78.32.75.15]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe6sv-0000ab-3p for 8395@debbugs.gnu.org; Tue, 05 Jul 2011 10:45:58 -0400 Received: from bark.play-bow.org (bark.play-bow.org [78.32.75.3]) (Authenticated sender: halley) by howl.play-bow.org (Postfix) with ESMTPSA id 22ADF12DF77E for <8395@debbugs.gnu.org>; Tue, 5 Jul 2011 15:45:50 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=play-bow.org; s=201002; t=1309877150; bh=mWwfQKVq2zIKHyTfr8fEA9zJ2ySqJJ8eqk/MqZx5Eyw=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=T5tbPawRtNiEtNqBqsic7z27FKejol3GA5OxsUnuWAbLFvUtRe8f7thmjosS36SNA M9U8dm6SSLTFjP7I/s+oSfCdn0FK4xJbPCUwb/G/MbIxSiHfP3YH7kcl2CY27YSRVs CvQSQJ7AyT7s8D5cymWr4+m5eWZNnsy/5TmoQB9c= From: Bob Halley Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: ASLR Issue? Date: Tue, 5 Jul 2011 15:45:49 +0100 Message-Id: <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> To: 8395@debbugs.gnu.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8395 X-Mailman-Approved-At: Tue, 05 Jul 2011 12:02:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) I too see this problem trying to build Aquamacs' emacs-24-based branch = on Lion GM with Xcode 4.1 preview 7. The problem is *not* an unknown = section name. I added some debugging printfs, and this is what I see. = Basically things seem to be going OK until we try to write __data, where = we get EFAULT when we try to write() it. I don't know why sectp->addr = is giving EFAULT; perhaps ASLR? If I discover more, I will add to the ticket. As an aside, could emacs switch to an external core image like other = lisps use instead of continuing to use the fragile unexec mechanism? --- Load Commands written to Output File --- Writing segment __PAGEZERO @ 0 ( 0/0x100000000 @ = 0) write 72 sz =3D 72 Writing segment __TEXT @ 0 (0x1ed000/0x1ed000 @ = 0x100000000) write 712 sz =3D 712 Writing segment __DATA @ 0x1ed000 (0x458000/0x458000 @ = 0x1001ed000) write 80 sz =3D 80 section __program_vars at 0x1ed000 - 0x1ed028 (sz: 0x28) write 80 sz =3D 80 section __nl_symbol_ptr at 0x1ed028 - 0x1ed038 (sz: 0x10) write 80 sz =3D 80 section __got at 0x1ed038 - 0x1ed208 (sz: 0x1d0) write 80 sz =3D 80 section __la_symbol_ptr at 0x1ed208 - 0x1eda90 (sz: 0x888) write 80 sz =3D 80 section __objc_classlist at 0x1eda90 - 0x1edb00 (sz: 0x70) write 80 sz =3D 80 section __objc_protolist at 0x1edb00 - 0x1edb10 (sz: 0x10) write 80 sz =3D 80 section __objc_imageinfo at 0x1edb10 - 0x1edb18 (sz: 0x8) write 80 sz =3D 80 section __objc_const at 0x1edb18 - 0x1efef8 (sz: 0x23e0) write 80 sz =3D 80 section __objc_selrefs at 0x1efef8 - 0x1f1030 (sz: 0x1138) write 80 sz =3D 80 section __objc_msgrefs at 0x1f1030 - 0x1f1120 (sz: 0xf0) write 80 sz =3D 80 section __objc_classrefs at 0x1f1120 - 0x1f1338 (sz: 0x218) write 80 sz =3D 80 section __objc_superrefs at 0x1f1338 - 0x1f13a0 (sz: 0x68) write 80 sz =3D 80 section __objc_data at 0x1f13a0 - 0x1f1800 (sz: 0x460) sectp->addr =3D 1001f1800 write 4019480 sz =3D -1 errno =3D 14 Bad address unexec: cannot write 1 section __data From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 15:11:03 2011 Received: (at control) by debbugs.gnu.org; 5 Jul 2011 19:11:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeB1S-0001Pq-Vi for submit@debbugs.gnu.org; Tue, 05 Jul 2011 15:11:03 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeB1R-0001PN-N3 for control@debbugs.gnu.org; Tue, 05 Jul 2011 15:11:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AskHAOxgE05FxIxr/2dsb2JhbABTmROOdniIesJWhjYEnlyELA X-IronPort-AV: E=Sophos;i="4.65,481,1304308800"; d="scan'208";a="120563465" Received: from 69-196-140-107.dsl.teksavvy.com (HELO pastel.home) ([69.196.140.107]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 05 Jul 2011 15:10:56 -0400 Received: by pastel.home (Postfix, from userid 20848) id 6EB29592B2; Tue, 5 Jul 2011 15:10:55 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: bug#8395: ASLR Issue? Message-ID: References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> Date: Tue, 05 Jul 2011 15:10:55 -0400 In-Reply-To: <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> (Bob Halley's message of "Tue, 5 Jul 2011 15:45:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) reassign 8395 emacs,ns severity 8395 important thanks >>>>> "Bob" == Bob Halley writes: > I too see this problem trying to build Aquamacs' emacs-24-based branch on > Lion GM with Xcode 4.1 preview 7. The problem is *not* an unknown section > name. I added some debugging printfs, and this is what I see. > Basically things seem to be going OK until we try to write __data, where we > get EFAULT when we try to write() it. I don't know why sectp->addr is > giving EFAULT; perhaps ASLR? > If I discover more, I will add to the ticket. > As an aside, could emacs switch to an external core image like other lisps > use instead of continuing to use the fragile unexec mechanism? > --- Load Commands written to Output File --- > Writing segment __PAGEZERO @ 0 ( 0/0x100000000 @ 0) > write 72 > sz = 72 > Writing segment __TEXT @ 0 (0x1ed000/0x1ed000 @ 0x100000000) > write 712 > sz = 712 > Writing segment __DATA @ 0x1ed000 (0x458000/0x458000 @ 0x1001ed000) > write 80 > sz = 80 > section __program_vars at 0x1ed000 - 0x1ed028 (sz: 0x28) > write 80 > sz = 80 > section __nl_symbol_ptr at 0x1ed028 - 0x1ed038 (sz: 0x10) > write 80 > sz = 80 > section __got at 0x1ed038 - 0x1ed208 (sz: 0x1d0) > write 80 > sz = 80 > section __la_symbol_ptr at 0x1ed208 - 0x1eda90 (sz: 0x888) > write 80 > sz = 80 > section __objc_classlist at 0x1eda90 - 0x1edb00 (sz: 0x70) > write 80 > sz = 80 > section __objc_protolist at 0x1edb00 - 0x1edb10 (sz: 0x10) > write 80 > sz = 80 > section __objc_imageinfo at 0x1edb10 - 0x1edb18 (sz: 0x8) > write 80 > sz = 80 > section __objc_const at 0x1edb18 - 0x1efef8 (sz: 0x23e0) > write 80 > sz = 80 > section __objc_selrefs at 0x1efef8 - 0x1f1030 (sz: 0x1138) > write 80 > sz = 80 > section __objc_msgrefs at 0x1f1030 - 0x1f1120 (sz: 0xf0) > write 80 > sz = 80 > section __objc_classrefs at 0x1f1120 - 0x1f1338 (sz: 0x218) > write 80 > sz = 80 > section __objc_superrefs at 0x1f1338 - 0x1f13a0 (sz: 0x68) > write 80 > sz = 80 > section __objc_data at 0x1f13a0 - 0x1f1800 (sz: 0x460) sectp-> addr = 1001f1800 > write 4019480 > sz = -1 > errno = 14 Bad address > unexec: cannot write 1 section __data From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 03:42:02 2011 Received: (at 8395) by debbugs.gnu.org; 6 Jul 2011 07:42:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeMkD-0004h7-Rr for submit@debbugs.gnu.org; Wed, 06 Jul 2011 03:42:02 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeMk9-0004gn-V8 for 8395@debbugs.gnu.org; Wed, 06 Jul 2011 03:41:59 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id DFE94C0557; Wed, 6 Jul 2011 16:41:48 +0900 (JST) Date: Wed, 06 Jul 2011 16:41:48 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Bob Halley Subject: Re: bug#8395: ASLR Issue? In-Reply-To: <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8395 Cc: 8395@debbugs.gnu.org, "William R. Otte" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) >>>>> On Tue, 5 Jul 2011 15:45:49 +0100, Bob Halley said: > I too see this problem trying to build Aquamacs' emacs-24-based > branch on Lion GM with Xcode 4.1 preview 7. The problem is *not* an > unknown section name. I added some debugging printfs, and this is > what I see. Basically things seem to be going OK until we try to > write __data, where we get EFAULT when we try to write() it. I > don't know why sectp->addr is giving EFAULT; perhaps ASLR? If I > discover more, I will add to the ticket. Could you try the patch below? (I can't test it myself.) As far as I tested, gcc -fno-pie *.o does not give an error on older versions (though gcc -fno-pie *.c does in cc1). So we can go without additional configure-time checks if this modification works on Xcode 4.1 and/or Lion. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp For trunk: === modified file 'configure.in' *** configure.in 2011-07-05 08:21:38 +0000 --- configure.in 2011-07-06 06:13:33 +0000 *************** *** 3349,3355 **** libs_nsgui= headerpad_extra=690 fi ! LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" ## This is here because src/Makefile.in did some extra fiddling around ## with LD_SWITCH_SYSTEM. The cpp logic was: --- 3349,3355 ---- libs_nsgui= headerpad_extra=690 fi ! LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" ## This is here because src/Makefile.in did some extra fiddling around ## with LD_SWITCH_SYSTEM. The cpp logic was: For emacs-23 branch: === modified file 'src/s/darwin.h' *** src/s/darwin.h 2011-01-02 23:50:46 +0000 --- src/s/darwin.h 2011-07-06 06:07:50 +0000 *************** *** 181,187 **** end of the header for adding load commands. Needed for dumping. 0x690 is the total size of 30 segment load commands (at 56 each); under Cocoa 31 commands are required. */ ! #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA #define C_SWITCH_SYSTEM_TEMACS -Dtemacs --- 181,187 ---- end of the header for adding load commands. Needed for dumping. 0x690 is the total size of 30 segment load commands (at 56 each); under Cocoa 31 commands are required. */ ! #define LD_SWITCH_SYSTEM_TEMACS -fno-pie -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA #define C_SWITCH_SYSTEM_TEMACS -Dtemacs From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 18:58:04 2011 Received: (at 8395) by debbugs.gnu.org; 7 Jul 2011 22:58:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QexWG-0007fT-4o for submit@debbugs.gnu.org; Thu, 07 Jul 2011 18:58:04 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QexWD-0007es-BR for 8395@debbugs.gnu.org; Thu, 07 Jul 2011 18:58:03 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 8502FC0557; Fri, 8 Jul 2011 07:57:51 +0900 (JST) Date: Fri, 08 Jul 2011 07:57:51 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Bob Halley Subject: Re: bug#8395: ASLR Issue? In-Reply-To: References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8395 Cc: 8395@debbugs.gnu.org, "William R. Otte" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) (Please keep the bugtracker address) >>>>> On Thu, 7 Jul 2011 06:17:52 -0700, Bob Halley said: >> Could you try the patch below? (I can't test it myself.) > The patch allows temacs to link and the emacs (and aquamacs) build > process succeeds. The application, however, doesn't work correctly. > It starts up but the windows it puts up have no title bar, and don't > seem to display content either. E.g. you can do C-x C-f, enter a > filename, and it seems to succeed but you can't see anything. This may or may not be a separate issue. Could you show the result of `$ otool -h src/temacs src/emacs' at the build tree? Also, please try X11 or tty-only builds if possible. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 10 11:20:03 2011 Received: (at 8395) by debbugs.gnu.org; 10 Jul 2011 15:20:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfvnd-0003Vq-NM for submit@debbugs.gnu.org; Sun, 10 Jul 2011 11:20:02 -0400 Received: from howl.play-bow.org ([78.32.75.15]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfvnb-0003Va-Ba for 8395@debbugs.gnu.org; Sun, 10 Jul 2011 11:20:00 -0400 Received: from [10.77.83.118] (72-254-84-143.client.stsn.net [72.254.84.143]) (Authenticated sender: halley) by howl.play-bow.org (Postfix) with ESMTPSA id CC9C812E8EF7 for <8395@debbugs.gnu.org>; Sun, 10 Jul 2011 16:19:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=play-bow.org; s=201002; t=1310311192; bh=9yG0CyZs6jNHROYoaf0B8yOjmQxoxNzkWWwk2cVEXBE=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date: Content-Transfer-Encoding:Message-Id:References:To; b=EfiRoC/P2W1BOoRnRd70b7c6jqjgmsSaUOXTSdK/R+ImY9NuebPIXstS7NZbTrYQ/ CCM6k0FKTQ+m3aunpTWyq4+0SLmjOvWEUCggJT4s8eXGF1zo/3/mv8PjT4Sr8rcoy9 V9RgN1AOncEXZGSaF7dqZh4tw9r4L1KHwOa+b0zo= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: bug#8395: ASLR Issue? From: Bob Halley In-Reply-To: Date: Sun, 10 Jul 2011 08:19:47 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <9AA37F17-F5FA-48C1-9AE9-779A59EAC4C3@play-bow.org> References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> To: 8395@debbugs.gnu.org X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8395 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) =09 On 7 Jul 2011, at 15:57, YAMAMOTO Mitsuharu wrote: > This may or may not be a separate issue. Could you show the result of > `$ otool -h src/temacs src/emacs' at the build tree? src/temacs: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds = flags 0xfeedfacf 16777223 3 0x80 2 23 3696 = 0x00000085 src/emacs: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds = flags 0xfeedfacf 16777223 3 0x80 2 31 4272 = 0x00000085 I've done a few tests which suggest the problems with the missing title = bar etc. that I reported are a separate issue. I did a build targeted = to 10.6 instead of 10.7 after removing the -fno-pie, and I had no = problems unexecing, but the title bar was still gone. I also tried running src/emacs directly (a 10.7 build with -fno-pie). = It printed this to the console: 2011-07-10 08:04:33.093 emacs[61589:707] ERROR: Can't have a toolbar in = a window with as it's borderview > Also, please try > X11 or tty-only builds if possible. I'll try that later; I'll have to pull plain emacs 24 code as this = doesn't seem to work with the Aquamacs code base. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 10 20:13:49 2011 Received: (at 8395) by debbugs.gnu.org; 11 Jul 2011 00:13:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg48C-00039Q-Q8 for submit@debbugs.gnu.org; Sun, 10 Jul 2011 20:13:48 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg48A-00039D-CZ for 8395@debbugs.gnu.org; Sun, 10 Jul 2011 20:13:48 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 96401C0557; Mon, 11 Jul 2011 09:13:37 +0900 (JST) Date: Mon, 11 Jul 2011 09:13:37 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Bob Halley Subject: Re: bug#8395: ASLR Issue? In-Reply-To: <9AA37F17-F5FA-48C1-9AE9-779A59EAC4C3@play-bow.org> References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> <9AA37F17-F5FA-48C1-9AE9-779A59EAC4C3@play-bow.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8395 Cc: 8395@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) >>>>> On Sun, 10 Jul 2011 08:19:47 -0700, Bob Halley said: > On 7 Jul 2011, at 15:57, YAMAMOTO Mitsuharu wrote: >> This may or may not be a separate issue. Could you show the result of >> `$ otool -h src/temacs src/emacs' at the build tree? > src/temacs: > Mach header > magic cputype cpusubtype caps filetype ncmds sizeofcmds flags > 0xfeedfacf 16777223 3 0x80 2 23 3696 0x00000085 > src/emacs: > Mach header > magic cputype cpusubtype caps filetype ncmds sizeofcmds flags > 0xfeedfacf 16777223 3 0x80 2 31 4272 0x00000085 Thanks. As MH_PIE (0x200000) is not set in flags, the -fno-pie option seems to work as intended (i.e., to suppress address randomization). >> Also, please try X11 or tty-only builds if possible. > I'll try that later; I'll have to pull plain emacs 24 code as this > doesn't seem to work with the Aquamacs code base. Thanks again. If the change I posted turns out to work with X11 or tty-only builds, I'll commit it. Of course, if Lion is released early, I'll try those builds myself. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 10:12:20 2011 Received: (at 8395) by debbugs.gnu.org; 11 Jul 2011 14:12:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgHDg-0000Da-2B for submit@debbugs.gnu.org; Mon, 11 Jul 2011 10:12:20 -0400 Received: from howl.play-bow.org ([78.32.75.15]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgHDd-0000DN-N2 for 8395@debbugs.gnu.org; Mon, 11 Jul 2011 10:12:18 -0400 Received: from [10.77.83.118] (72-254-57-187.client.stsn.net [72.254.57.187]) (Authenticated sender: halley) by howl.play-bow.org (Postfix) with ESMTPSA id 5890112EAA99; Mon, 11 Jul 2011 15:12:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=play-bow.org; s=201002; t=1310393531; bh=1KsxsjIqszjVdKncpoqw0BSyU3jr3wHe/XrXkKZR9C4=; h=Subject:Mime-Version:Content-Type:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=KLk2JhV9eixw2uRW7OMvKfTX3DxPCIx2MmE/e4znTmQZPuN8m0ieUUeXqNDlso0a2 0bVxJkW3O64OZ50I1kBfh6fMnt/sV2kx1w6jsu0C6WkmP6AjUwEABv70oejOBdSCUi dxkRto4aFqrgoydOZrMNd/yon37RZ8JLvUCiOWFE= Subject: Re: bug#8395: ASLR Issue? Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii From: Bob Halley In-Reply-To: Date: Mon, 11 Jul 2011 07:11:59 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <0C9D8FFF-C7F8-487B-9E69-46AEF1EEC542@play-bow.org> References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> <9AA37F17-F5FA-48C1-9AE9-779A59EAC4C3@play-bow.org> To: YAMAMOTO Mitsuharu X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8395 Cc: 8395@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 10 Jul 2011, at 17:13, YAMAMOTO Mitsuharu wrote: >=20 > Thanks again. If the change I posted turns out to work with X11 or > tty-only builds, I'll commit it. Of course, if Lion is released > early, I'll try those builds myself. I downloaded the Emacs 23.3 tarball, and added the __got fix to = unexmacosx.c. I then built and verified that without your patch the build fails. I then applied your patch to src/s/darwin.h. I did 3 builds starting from a "make distclean" state: a tty-only build, = an X11 build, and a cocoa build. I verified with otool that the PIE = attribute was not present on any of the emacs executables. The build worked fine both as a tty-only build and as an X11 build. The = cocoa build runs, but the window it makes has no title bar and is badly = positioned (the top line or so is cut off by the menu bar). /Bob From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 14:15:24 2011 Received: (at 8395) by debbugs.gnu.org; 11 Jul 2011 18:15:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgL0u-0000GX-Mm for submit@debbugs.gnu.org; Mon, 11 Jul 2011 14:15:24 -0400 Received: from howl.play-bow.org ([78.32.75.15]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgL0s-0000GK-AV for 8395@debbugs.gnu.org; Mon, 11 Jul 2011 14:15:23 -0400 Received: from bark.ddns.nominum.com (bark.ddns.nominum.com [64.89.225.23]) (Authenticated sender: halley) by howl.play-bow.org (Postfix) with ESMTPSA id 891E012EAF49 for <8395@debbugs.gnu.org>; Mon, 11 Jul 2011 19:15:15 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=play-bow.org; s=201002; t=1310408115; bh=OWzYB9Zf4OQsGyb+wbZN2U7jW6VOfb/JfgUrUojah6I=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=IPyyP9Z26csdVIqvYBgaHiwdssKUZDZyB1vibd4LwtNHI4zgCPJZ/Zte/CF4PmPfs Bx/gW5WsWnlLqdqwGWS20o7TVE5ObFXNsPXKIYRzrsv9O2X3628LE2Sl2Gi4cPGuDC iAilkZtMIkcMb0A3rVEZy0t43tv3YSGQge5RMQLA= From: Bob Halley Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Title bar issue Date: Mon, 11 Jul 2011 11:15:11 -0700 Message-Id: <323F8246-B6BF-405E-B010-C2F618599B4E@play-bow.org> To: 8395@debbugs.gnu.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8395 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) The title bar problem is definitely a separate issue. David Reitter = will be committing a fix I've made and tested for that issue.= From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 19:22:57 2011 Received: (at 8395) by debbugs.gnu.org; 11 Jul 2011 23:22:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgPoX-0008Fe-1M for submit@debbugs.gnu.org; Mon, 11 Jul 2011 19:22:57 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgPoT-0008FQ-IZ for 8395@debbugs.gnu.org; Mon, 11 Jul 2011 19:22:55 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 1DE76C0557; Tue, 12 Jul 2011 08:22:46 +0900 (JST) Date: Tue, 12 Jul 2011 08:22:46 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Bob Halley Subject: Re: bug#8395: ASLR Issue? In-Reply-To: <0C9D8FFF-C7F8-487B-9E69-46AEF1EEC542@play-bow.org> References: <6CD2FB60-80D6-40C4-92A9-F5BAB9AA4173@dre.vanderbilt.edu> <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org> <9AA37F17-F5FA-48C1-9AE9-779A59EAC4C3@play-bow.org> <0C9D8FFF-C7F8-487B-9E69-46AEF1EEC542@play-bow.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8395 Cc: 8395@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) >>>>> On Mon, 11 Jul 2011 07:11:59 -0700, Bob Halley said: > I downloaded the Emacs 23.3 tarball, and added the __got fix to > unexmacosx.c. > I then built and verified that without your patch the build fails. > I then applied your patch to src/s/darwin.h. > I did 3 builds starting from a "make distclean" state: a tty-only > build, an X11 build, and a cocoa build. I verified with otool that > the PIE attribute was not present on any of the emacs executables. > The build worked fine both as a tty-only build and as an X11 build. > The cocoa build runs, but the window it makes has no title bar and > is badly positioned (the top line or so is cut off by the menu bar). Thanks for the detailed report. I've just committed the patch to trunk and the emacs-23 branch. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 19:26:09 2011 Received: (at 8395-done) by debbugs.gnu.org; 11 Jul 2011 23:26:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgPrc-0008Ko-QO for submit@debbugs.gnu.org; Mon, 11 Jul 2011 19:26:09 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgPrZ-0008KL-PP for 8395-done@debbugs.gnu.org; Mon, 11 Jul 2011 19:26:07 -0400 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id B1F70C0557 for <8395-done@debbugs.gnu.org>; Tue, 12 Jul 2011 08:25:59 +0900 (JST) Date: Tue, 12 Jul 2011 08:25:59 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: 8395-done@debbugs.gnu.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 8395-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.4 (/) Closed with the following changes: For trunk: 2011-07-11 YAMAMOTO Mitsuharu * configure.in (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie on Darwin so as to suppress address randomization (Bug#8395). For emacs-23 branch: 2011-07-11 YAMAMOTO Mitsuharu * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie so as to suppress address randomization (Bug#8395). From unknown Wed Jun 25 03:56:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Aug 2011 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator