Subject: One core dump while building openoffice2
To: Kouichirou Hiratsuka <hira@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: pkgsrc-users
Date: 04/12/2007 08:41:27
Hi,

I just noticed that there is a core dump when I build openoffice2 on NetBSD-current/i386.
That core dump was found by the daily cron job:

OOF680_m14/sal/typesconfig/typesconfig.core

From gdb:

(gdb) bt
#0  0x08048da6 in SetAtAddress ()
#1  0x08048e61 in check ()
#2  0x08048e86 in CheckSetAccess ()
#3  0x08048fce in InfoMemoryAccess ()
#4  0x08049222 in main ()

I see no errors in my build output and this is the typesconfig related
output from the log:

Making: ../unxbsdi3.pro/bin/typesconfig
unx
cat ../unxbsdi3.pro/misc/typesconfig.typesconfig_1.cmd
c++ -z combreloc -z defs -Wl,-rpath,'$ORIGIN' -L/work.i386/OOF680_m14/solver/680/unxbsdi3.pro/lib -Wl,-export-dynamic -L../unxbsdi3.pro/lib -L/usr/pkg/lib/firefox ../unxbsdi3.pro/obj/typescon
fig.o \
-lpthread -lm -lc -lgcc_s -lstdc++ -Wl,-Bdynamic -lstlport_gcc -lgcc_s -lstdc++ -o ../unxbsdi3.pro/bin/typesconfig
-rwxr-xr-x  1 bernd  wheel  10207 Apr 11 23:23 ../unxbsdi3.pro/bin/typesconfig
-------------
mkdir ../unxbsdi3.pro/inc/sal
../unxbsdi3.pro/bin/typesconfig ../unxbsdi3.pro/inc/sal/typesizes.h
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
Access long on 2-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
Access long on 2-Aligned Address : OK
Access long on 1-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
Access long on 2-Aligned Address : OK
Access long on 1-Aligned Address : OK
Access double on 8-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
Access long on 2-Aligned Address : OK
Access long on 1-Aligned Address : OK
Access double on 8-Aligned Address : OK
Access double on 4-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
Access long on 2-Aligned Address : OK
Access long on 1-Aligned Address : OK
Access double on 8-Aligned Address : OK
Access double on 4-Aligned Address : OK
Access double on 2-Aligned Address : OK
char            = signed char
short           = signed short
int             = signed int
long            = signed long
long long               = signed long long
sizeof(short)           = 2
sizeof(int)             = 4
sizeof(long)            = 4
sizeof(long long)               = 8
sizeof(float)           = 4
sizeof(double)          = 8
sizeof(void *)          = 4
LITTLEENDIAN (Intel, x86-64, PowerPC(LE))
cannot read address 0x0
cannot write address 0x0
can read address 0xbfbfb938
can write address 0xbfbfb938
Access short on 8-Aligned Address : OK
Access short on 4-Aligned Address : OK
Access short on 2-Aligned Address : OK
Access short on 1-Aligned Address : OK
Access int on 8-Aligned Address : OK
Access int on 4-Aligned Address : OK
Access int on 2-Aligned Address : OK
Access int on 1-Aligned Address : OK
Access long on 8-Aligned Address : OK
Access long on 4-Aligned Address : OK
Access long on 2-Aligned Address : OK
Access long on 1-Aligned Address : OK
Access double on 8-Aligned Address : OK
Access double on 4-Aligned Address : OK
Access double on 2-Aligned Address : OK
Access double on 1-Aligned Address : OK
/home/avi/work.i386/OOF680_m14/sal/osl/all


[The build continues normaly and everything seems to be ok]


typesizes.h has the following content:

/* This file is autogenerated from the 'typesconfig' program
 * in the sal module
 */

#define SAL_TYPES_ALIGNMENT2    1
#define SAL_TYPES_ALIGNMENT4    1
#define SAL_TYPES_ALIGNMENT8    1
#define SAL_TYPES_SIZEOFSHORT   2
#define SAL_TYPES_SIZEOFINT     4
#define SAL_TYPES_SIZEOFLONG    4
#define SAL_TYPES_SIZEOFLONGLONG        8
#define SAL_TYPES_SIZEOFPOINTER 4

Bernd