On Thu, Dec 17, 2009 at 1:12 PM, Brett @Google <[email protected]>wrote:

> Hello,
>
> I am having trouble with Segfaults on Solaris Sparc, it seems like the
> sporadic error that some people have coming up during testing, but not
> others.
>
> Oddly, this only happens for me on an older not-patched box
> myunhappyserver, and NOT a more recently patched box myhappyserver (same
> slapd/bdb binaries and libraries)
>

this has turned out to be a "Sun" issue or user error, depending on your
opinion, and only for the sun studio 12 compiler:

I was using : CFLAGS="-fast -xtarget=ultraT1 -xarch=sparcvis2 -xcode=pic32
-g -xs -O"

for some reason, using -O (which translates -x03) maybe conflicted /
overrided the sun "macro" option -fast, which implies -x05 and quite a few
other options.

The following is now working ok (no segfaults) : CFLAGS="-fast
-xtarget=ultraT1 -xarch=sparcvis2 -xcode=pic32 -m64"

also prefixed "-fast -m64" to LDFLAGS as per sun docs, so this might also
have helped.

(the omission of -g -xs are coincidental, they are only options to turn on
debugging)

Cheers
Brett

Reply via email to