OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Problems with 2.2.10 on HP-UX 11.23/IA

From: Albert Chin (postfix-usersmlists.thewrittenword.com)
Date: Tue May 16 2006 - 09:10:50 CDT


On Tue, May 16, 2006 at 09:45:27AM -0400, Victor Duchovni wrote:
> On Tue, May 16, 2006 at 08:26:53AM -0500, Albert Chin wrote:
>
> > Postfix faults with the following on HP-UX 11.23/IA (from mail.log):
> > May 15 23:22:04 azuma postfix/master[29204]: warning: process
> > /tmp/postfix/libexec/smtpd pid 29207 killed by signal 10
> >
> > $ gmake makefiles CC=cc DEBUG="-g" OPT="" \
> > CCARGS="-DDEF_COMMAND_DIR=\\\"/tmp/postfix/sbin\\\" \
> > -DDEF_CONFIG_DIR=\\\"/tmp/postfix/etc\\\" \
> > ...
>
> Unrelated note, see "INSTALL" for a more reasonable syntax that uses
> single quotes to make this less hairy.

Ok, thanks.

> > On this platform,
> > typedef __float80 jmp_buf[320/4];
>
> What is the data type of a __float80? What are its alignment
> requirements?

__float80 is a native type.

> > On HP-UX/IA, __ia64__ is not defined. Rather, __ia64 is defined. I
> > tried a build by modifying src/util/sys_defs.h from:
> > #ifndef ALIGN_TYPE
> > # ifdef __ia64__
> > # define ALIGN_TYPE long double
> > # else
> > # define ALIGN_TYPE double
> > # endif
> > #endif
> > to:
> > #ifndef ALIGN_TYPE
> > # if defined(__ia64__) || defined(__ia64)
> > # define ALIGN_TYPE long double
> > # else
> > # define ALIGN_TYPE double
> > # endif
> > #endif
>
> Is a long double actually longer than a double with this compiler?

Yes. sizeof(double) == 8, sizeof(long double) == 16,
sizeof(__float80) == 16.

> > However, the signal 10 error from postfix/master did not go away.
> >
> > So, seems something in mymalloc() is causing the problem. Anyone have
> > ideas?
> >
>
> No, properly aligned, mymalloc() should be fine.

Yeah. I'll try to figure out the correct alignment.

--
albert chin (chinathewrittenword.com)