New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30090 (closed defect: duplicate)

Opened 23 months ago

Last modified 14 months ago

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: jwa@…, stevenschlansker@…, smparkes@…, marc@…, juliamae@…, mh@…, julian@…, antony.stubbs@…, dports@…
Port: postgresql90, postgresql91

Description

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

Attachments

crash.log (15.4 KB) - added by j.states@… 23 months ago.
crash.log

Change History

Changed 23 months ago by j.states@…

crash.log

comment:1 Changed 23 months ago by j.states@…

  • Cc j.states@… added

Cc Me!

comment:2 Changed 23 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to mww@…
  • Cc jwa@… added; j.states@… removed
  • Port set to postgresql90, postgresql91
  • Summary changed from Postgresql 9 and 9.1b2 segment fault 11 with OS X 10.7 to postgresql90, 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 23 months ago by jwa@…

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

comment:4 Changed 23 months ago by snc@…

  • Keywords lion added

comment:5 Changed 20 months ago by kevin@…

  • Cc kevin@… added

Cc Me!

comment:6 Changed 20 months ago by stevenschlansker@…

  • Cc stevenschlansker@… added

Cc Me!

comment:7 Changed 20 months 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 20 months ago by jmr@…

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

comment:9 Changed 19 months 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 19 months 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 19 months ago by kevin@…

  • Cc kevin@… removed

Cc Me!

comment:12 Changed 19 months ago by smparkes@…

  • Cc smparkes@… added

Cc Me!

comment:13 Changed 19 months ago by marc@…

  • Cc marc@… added

Cc Me!

comment:14 Changed 19 months ago by juliamae@…

  • Cc juliamae@… added

Cc Me!

comment:15 Changed 18 months ago by mh@…

  • Cc mh@… added

Cc Me!

comment:16 Changed 18 months ago by julian@…

  • Cc julian@… added

Cc Me!

comment:17 Changed 18 months ago by antony.stubbs@…

  • Cc antony.stubbs@… added

Cc Me!

comment:18 Changed 14 months 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 14 months ago by dports@…

  • Cc dports@… added

Cc Me!

comment:20 Changed 14 months ago by dports@…

  • Status changed from new to closed
  • Resolution set to duplicate

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.