Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VapPr-00063o-SS for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Oct 2013 16:11:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VapPr-0003gf-BC for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Oct 2013 16:11:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VapPp-0003ep-Cc for pgsql-hackers@postgresql.org; Mon, 28 Oct 2013 16:11:41 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VapPm-0003ww-C8 for pgsql-hackers@postgresql.org; Mon, 28 Oct 2013 16:11:41 +0000 Received: from anarazel.de (p5DDC7390.dip0.t-ipconnect.de [93.220.115.144]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0M2puc-1Vqhpz0EAY-00subb; Mon, 28 Oct 2013 17:11:33 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 6A3F6102004; Mon, 28 Oct 2013 17:11:32 +0100 (CET) Date: Mon, 28 Oct 2013 17:11:32 +0100 From: Andres Freund To: pgsql-hackers@postgresql.org, Matthias Schmitt Subject: OSX doesn't accept identical source/target for strcpy() anymore Message-ID: <20131028161132.GA14980@awork2.anarazel.de> References: <5A871654-B250-4837-99DB-EB6D44E64E65@mmp.lu> <20131028144225.GG5577@awork2.anarazel.de> <55D64809-F305-41A9-946B-8EAFF88FBE3B@mmp.lu> <20131028153750.GH5577@awork2.anarazel.de> <934199A3-FF2F-4E5E-A8FF-E6F621B6F64D@mmp.lu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <934199A3-FF2F-4E5E-A8FF-E6F621B6F64D@mmp.lu> X-Provags-ID: V02:K0:MzfgbJMJM1ztO+v1JPrsZw/jE6Y6AyjlxVZPaPMm2oR Ri1YzoyCisx6m9KzE78siAdgGKc7lydGpQC04XIJG4Yy7HWDeP dyANn/5ILpRWM1RFylIT3rOMLuiR1hxxDqWe/crRDcRpKQ+Gm+ Y2EZl2o6LQtj3cgYt+t04SCDEdjguQMysXRsXJhy4em4mMWweE Upsphe6+x7M4NCl5cJd3yJIMD+3jqr0TyX/JvLDa3DcdU5DnFB mG+WRXryctUROWt/M8bJ04TQWeWq7k90VSza0nqeBRg9u0J9X0 zXbWtNMGUabJy4MC31Ak8JUO7zQrt1gdecNr0qXyI9GD/YWRrM YyhbiK4B9z7quknaleVRxsBMF3qq5AeO9loIx9WvC X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, On -bugs it was reported that initdb of 9.3 failed with a assertion. On 2013-10-28 16:52:13 +0100, Matthias Schmitt wrote: > > In that case, could you enable coredumps and get a backtrace from that > > coredump? I unfortunately have zero clue about OSX, so I can't really > > help you with that. > > Yes, you are right. I totally forgot about the crash logs in OS X. Here it is: Ah, ok. I see the problem... > Process: postgres [68949] > Path: /Users/*/postgres > Identifier: postgres > Version: 0 > Code Type: X86-64 (Native) > Parent Process: sh [68948] > Responsible: Terminal [411] > User ID: 502 > > Date/Time: 2013-10-28 16:46:28.188 +0100 > OS Version: Mac OS X 10.9 (13A603) > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > 0 libsystem_kernel.dylib 0x00007fff93e00866 __pthread_kill + 10 > 1 libsystem_pthread.dylib 0x00007fff92c7335c pthread_kill + 92 > 2 libsystem_c.dylib 0x00007fff8c5a5bba abort + 125 > 3 libsystem_c.dylib 0x00007fff8c5a5d31 abort_report_np + 181 > 4 libsystem_c.dylib 0x00007fff8c5c98c5 __chk_fail + 48 > 5 libsystem_c.dylib 0x00007fff8c5c98d5 __chk_fail_overlap + 16 > 6 libsystem_c.dylib 0x00007fff8c5c9906 __chk_overlap + 49 > 7 libsystem_c.dylib 0x00007fff8c5c9a59 __strncpy_chk + 78 > 8 postgres 0x000000010b4c9045 namestrcpy + 86 > 9 postgres 0x000000010b1901f2 TupleDescInitEntry + 99 It seems the newest version of OSX is more strict about strcpy than previous ones. So the issue is likely the upgraded OS version. Which means we're going to see this more frequently now. There have been previous discussions about fixing strcpy calls with identical source/destination (same for memcpy) but it was deemed not worth the effort. I don't really see an alternative to fixing it now. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers