pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Matthias Schmitt <freak002@mmp.lu>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Darwin: make check fails with "child process exited with exit code 134"
Date: Mon, 28 Oct 2013 17:58:28 +0100
Message-ID: <20131028165828.GA20248@awork2.anarazel.de> (raw)
In-Reply-To: <5509.1382978343@sss.pgh.pa.us>
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>
	<4945.1382977376@sss.pgh.pa.us>
	<20131028162652.GB14980@awork2.anarazel.de>
	<5509.1382978343@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2013-10-28 12:39:03 -0400, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > On 2013-10-28 12:22:56 -0400, Tom Lane wrote:
> >> What I find curious is that I can't
> >> reproduce this problem on an OS X Mavericks machine here.  You must
> >> be using some nondefault compiler switches --- care to tell us what?
> 
> > Did you maybe compile using gcc or at least the gcc compatible frontend
> > instead of clang?
> 
> Well, I have
> 
> CC = gcc
> 
> which is what configure will pick by default, but I see
> 
> $ gcc -v
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
> Target: x86_64-apple-darwin13.0.0
> Thread model: posix
> 
> so it's some variant of LLVM/clang.  In any case, Matthias claimed it
> didn't make a difference which compiler he picked, and I'm pushing
> back on that assertion.

A quick search reveals that we're not the only ones suffering from this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=55696
http://lists.gnu.org/archive/html/bug-bash/2013-07/msg00011.html

There's a reference around to the code in question:
http://www.opensource.apple.com/source/Libc/Libc-997.1.1/secure/strcpy_chk.c
And it seems to be enabled by:

#if defined (__GNUC__) && _FORTIFY_SOURCE > 0 && !defined (__cplusplus)
/* Security checking functions.  */
#include <secure/_string.h>
#endif
in
http://www.opensource.apple.com/source/Libc/Libc-997.1.1/include/string.h

So, if I understand it correctly, this only happens if _FORTIFY_SOURCE
is enabled. Not sure what does that on Matthias but not your machine.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (14+ messages)  latest in thread

Message-ID: <20131028165828.GA20248@awork2.anarazel.de>
Permalink:  ../20131028165828.GA20248@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20131028165828.GA20248@awork2.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, tgl@sss.pgh.pa.us, freak002@mmp.lu
  Subject: Re: Darwin: make check fails with "child process exited with exit code 134"
  In-Reply-To: <20131028165828.GA20248@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> <4945.1382977376@sss.pgh.pa.us> <20131028162652.GB14980@awork2.anarazel.de> <5509.1382978343@sss.pgh.pa.us> <20131028165828.GA20248@awork2.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox