Opened 12 years ago

Last modified 11 years ago

#31717 closed defect

postgresql91 segfaults on OS X 10.7 when built with Xcode 4.2 — at Version 1

Reported by: francis@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: jwa@…
Port: postgresql91

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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).

Change History (3)

Changed 12 years ago by francis@…

Proposed fix

Changed 12 years ago by francis@…

Crash log

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added; mww@… removed
Description: modified (diff)
Keywords: haspatch added
Owner: changed from macports-tickets@… to mww@…

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?

Note: See TracTickets for help on using tickets.