[php-maint] Bug#616323: segfaults when serving HTTP requests (including non-PHP ones) on kfreebsd-i386

Petr Salinger Petr.Salinger at seznam.cz
Fri Mar 4 13:16:57 UTC 2011


reassign 616323 apr 1.4.2-6
notfound 616323 1.2.11-1
severity 616323 serious
tags 616323 - moreinfo help
affects 616323 php5 apache2
--

> Please could you try to rebuild php5 with "PHP5_COMPAT=yes" in debian/rules ?
It does help.

On both kfreebsd-i386 and kfreebsd-amd64:

#define __INO_T_TYPE            __U32_TYPE
#define __INO64_T_TYPE          __UQUAD_TYPE

#define __OFF_T_TYPE            __SQUAD_TYPE
#define __OFF64_T_TYPE          __SQUAD_TYPE

#define __RLIM_T_TYPE           __SQUAD_TYPE
#define __RLIM64_T_TYPE         __SQUAD_TYPE

#define __BLKCNT_T_TYPE         __SQUAD_TYPE
#define __BLKCNT64_T_TYPE       __SQUAD_TYPE

#define __FSBLKCNT_T_TYPE       __ULONGWORD_TYPE
#define __FSBLKCNT64_T_TYPE     __UQUAD_TYPE

#define __FSFILCNT_T_TYPE       __ULONGWORD_TYPE
#define __FSFILCNT64_T_TYPE     __UQUAD_TYPE

Therefore ino_t is not the same as ino64_t on both platforms.

The fix should be in apr, it really should advertise their
ino_t as unsigned 32-bit type on both kfreebsd-*.

I.e. /usr/include/apr-1.0/apr.h should contain

"typedef unsigned int apr_ino_t" as used to (at least) until 1.2.12-1,
when 020_lfs_ino_t.dpatch got dropped.

After rebuild of php5 against such header, apache responds.

Petr





More information about the pkg-php-maint mailing list