BUG #8588: Need work arounds for Apple unaligned access - Mailing list pgsql-bugs

From noloader@gmail.com
Subject BUG #8588: Need work arounds for Apple unaligned access
Date
Msg-id E1Vfvpf-00057K-6i@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #8588: Need work arounds for Apple unaligned access  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      8588
Logged by:          Jeffrey Walton
Email address:      noloader@gmail.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: BUG #8444: ERROR: table name "tblb" specified more than once in subquery
Next
From: Tom Lane
Date:
Subject: Re: Spaces before newlines in view definitions in 9.3