Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#30090 closed defect (duplicate)

postgresql90, postgresql91: segment fault 11 with OS X 10.7

Reported by: j.states@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: lion Cc: jyrkiwahlstedt, stevenschlansker@…, smparkes@…, kemar (Marc Hertzog), juliamae@…, icemac (Michael Howitz), jmehnle (Julian Mehnle), antony.stubbs@…, drkp (Dan Ports)
Port: postgresql90, postgresql91

Description

Installing PostgreSQL through port will work, but it falls when you invoke psql. I've attached the crash.log

Attachments (1)

crash.log (15.4 KB) - added by j.states@… 13 years ago.
crash.log

Download all attachments as: .zip

Change History (21)

Changed 13 years ago by j.states@…

Attachment: crash.log added

crash.log

comment:1 Changed 13 years ago by j.states@…

Cc: j.states@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added; j.states@… removed
Owner: changed from macports-tickets@… to mww@…
Port: postgresql90 postgresql91 added
Summary: Postgresql 9 and 9.1b2 segment fault 11 with OS X 10.7postgresql90, postgresql91: segment fault 11 with OS X 10.7

As ticket reporter you do not need to Cc yourself. You should however Cc the ports' maintainers and indicate the affected ports in the Summary and Port fields.

comment:3 Changed 13 years ago by jyrkiwahlstedt

10.7, Lion, is still under NDA, so we'll have to wait for a few days to discuss that here...

comment:4 Changed 13 years ago by nerdling (Jeremy Lavergne)

Keywords: lion added

comment:5 Changed 13 years ago by kevin@…

Cc: kevin@… added

Cc Me!

comment:6 Changed 12 years ago by stevenschlansker@…

Cc: stevenschlansker@… added

Cc Me!

comment:7 Changed 12 years ago by stevenschlansker@…

Rebuilding with the macports-gcc-4.4 compiler (by adding the line "configure.compiler macports-gcc-4.4 to the Portfile") seems to fix this problem.

comment:8 Changed 12 years ago by jmroot (Joshua Root)

This is probably the same miscompilation of ncurses by Xcode 4.2 prereleases as seen in #29771.

comment:9 Changed 12 years ago by calvin@…

Cc me.

So will the Portfile be updated to enforce "configure.compiler macports-gcc-4.4 to the Portfile"? Or will there be another fix?

comment:10 Changed 12 years ago by calvin@…

In case anyone else has run into problems, I managed to solve this problem by using my own Portfile locally and enforcing llvm-gcc-4.2 as the compiler. llvm-gcc-4.2 compiled postgresql no longer gives me a "segmentation fault: 11" error.

I left my detailed notes on stackoverflow here in case anyone needs them - http://stackoverflow.com/questions/7883751/segmentation-fault-11-zcat-pipe-into-postgresql-9-0-5-lion

Cheers.

comment:11 Changed 12 years ago by kevin@…

Cc: kevin@… removed

Cc Me!

comment:12 Changed 12 years ago by smparkes@…

Cc: smparkes@… added

Cc Me!

comment:13 Changed 12 years ago by kemar (Marc Hertzog)

Cc: marc@… added

Cc Me!

comment:14 Changed 12 years ago by juliamae@…

Cc: juliamae@… added

Cc Me!

comment:15 Changed 12 years ago by icemac (Michael Howitz)

Cc: mh@… added

Cc Me!

comment:16 Changed 12 years ago by jmehnle (Julian Mehnle)

Cc: julian@… added

Cc Me!

comment:17 Changed 12 years ago by antony.stubbs@…

Cc: antony.stubbs@… added

Cc Me!

comment:18 Changed 12 years ago by jason@…

The following works, after upgrading to Xcode 4.3 this still failed when build with clang

 sudo port install postgresql90 configure.compiler=llvm-gcc-4.2

llvm

llvm-gcc-4.2 --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Clang

clang --version
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix

comment:19 Changed 12 years ago by drkp (Dan Ports)

Cc: dports@… added

Cc Me!

comment:20 Changed 12 years ago by drkp (Dan Ports)

Resolution: duplicate
Status: newclosed

This is also being tracked at #31717, so let's follow it there.

Note that -- the last comment notwithstanding -- this should have been fixed in Xcode 4.3 and reenabled in r91339.

Note: See TracTickets for help on using tickets.