Ticket #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: | 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
Change History
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: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: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:20 Changed 14 months ago by dports@…
- Status changed from new to closed
- Resolution set to duplicate


crash.log