BUG #8588: Need work arounds for Apple unaligned access

From: noloader(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8588: Need work arounds for Apple unaligned access
Date: 2013-11-11 18:03:27
Message-ID: E1Vfvpf-00057K-6i@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 8588
Logged by: Jeffrey Walton
Email address: noloader(at)gmail(dot)com
PostgreSQL version: 9.3.1
Operating system: OS X 10.8.5
Description:

Running `make check` under Clang 3.3's sanitizers results in a termination
on Mac OS X.

The termination is due to an Apple bug. The bug is misaligned fields in a
data structure. You can see some of the details here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024523.html. I've
also experienced it with other data structures.

**********

$ make check
...

make[3]: Nothing to be done for `submake-errcodes'.
rm -rf ./testtablespace
mkdir ./testtablespace
../../../src/test/regress/pg_regress --inputdir=. --temp-install=./tmp_check
--top-builddir=../../.. --dlpath=. --schedule=./parallel_schedule
dirmod.c:388:20: runtime error: member access within misaligned address
0x62100001a55c for type 'struct dirent', which requires 8 byte alignment
0x62100001a55c: note: pointer points here
00 00 00 00 e9 b9 04 01 00 00 00 00 04 00 00 00 ef b9 04 01 24 00 0b 00
08 63 6f 70 79 2e 73 6f
^
dirmod.c:388:54: runtime error: member access within misaligned address
0x62100001a55c for type 'struct dirent', which requires 8 byte alignment
0x62100001a55c: note: pointer points here
00 00 00 00 e9 b9 04 01 00 00 00 00 04 00 00 00 ef b9 04 01 24 00 0b 00
08 63 6f 70 79 2e 73 6f
^
dirmod.c:396:42: runtime error: member access within misaligned address
0x62100001a55c for type 'struct dirent', which requires 8 byte alignment
0x62100001a55c: note: pointer points here
00 00 00 00 e9 b9 04 01 00 00 00 00 04 00 00 00 ef b9 04 01 24 00 0b 00
08 63 6f 70 79 2e 73 6f
^
pg_regress: could not set core size: disallowed by hard limit
============== creating temporary installation ==============
============== initializing database system ==============

pg_regress: initdb failed
Examine
/Users/jwalton/Desktop/postgresql-9.3.1/src/test/regress/log/initdb.log for
the reason.
Command was:
"/Users/jwalton/Desktop/postgresql-9.3.1/src/test/regress/./tmp_check/install//usr/local/pgsql/bin/initdb"
-D
"/Users/jwalton/Desktop/postgresql-9.3.1/src/test/regress/./tmp_check/data"
-L
"/Users/jwalton/Desktop/postgresql-9.3.1/src/test/regress/./tmp_check/install//usr/local/pgsql/share"
--noclean --nosync >
"/Users/jwalton/Desktop/postgresql-9.3.1/src/test/regress/log/initdb.log"
2>&1
make[1]: *** [check] Error 2
make: *** [check] Error 2

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-11-11 18:37:56 Re: Spaces before newlines in view definitions in 9.3
Previous Message stephane.wustner 2013-11-11 17:19:56 BUG #8587: quantile segfaults when quantile out of [0;1] range