[MacPorts] #31717: postgresql91 segfaults on OS X 10.7 when built with Xcode 4.2

MacPorts noreply at macports.org
Sat Oct 22 15:37:10 PDT 2011


#31717: postgresql91 segfaults on OS X 10.7 when built with Xcode 4.2
-------------------------------+--------------------------------------------
 Reporter:  francis@…          |       Owner:  mww@…           
     Type:  defect             |      Status:  new             
 Priority:  Normal             |   Milestone:                  
Component:  ports              |     Version:  2.0.3           
 Keywords:  haspatch           |        Port:  postgresql91    
-------------------------------+--------------------------------------------
Changes (by ryandesign@…):

  * keywords:  => haspatch
  * owner:  macports-tickets@… => mww@…
 * cc: mww@… (removed)


Old description:

> Steps to reproduce:
> 1) On OS X 10.7.1 or 10.7.2 install Xcode 4.2
> 2) port install postgresql91-server and follow the instructions that it
> prints to initdb
> 3) createdb francis ('francis' is my username)
> 4) psql91
> 5) at the psql prompt, enter "\dt" (describe tables). psql91 segfaults at
> this point
>
> How to fix:
> Build with apple-gcc-4.2 (not LLVM/clang, which is the system default
> compiler in Xcode 4.2).

New description:

 == Steps to reproduce: ==
  1. On OS X 10.7.1 or 10.7.2 install Xcode 4.2
  2. port install postgresql91-server and follow the instructions that it
 prints to initdb
  3. createdb francis ('francis' is my username)
  4. psql91
  5. at the psql prompt, enter "\dt" (describe tables). psql91 segfaults at
 this point

 == How to fix: ==
 Build with apple-gcc-4.2 (not LLVM/clang, which is the system default
 compiler in Xcode 4.2).

--

Comment:

 The default compiler on Xcode 4.2 is clang. Please try llvm-gcc-4.2; if
 that works, we want to use that, not apple-gcc-4.2.

 If really only apple-gcc-4.2 works, then more code is needed than what you
 added in the patch; see wiki:PortfileRecipes#compiler

 What about the older postgresql ports? Are they affected too?

-- 
Ticket URL: <https://trac.macports.org/ticket/31717#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list