Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2012 14:52:23 +0300
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        Reko Turja <reko.turja@liukuma.net>
Cc:        ports@freebsd.org
Subject:   Re: lang/php53 dumps core
Message-ID:  <500E8C77.7070007@gmail.com>
In-Reply-To: <7B3BABE27CA240788EFEB3F3333094E5@Rivendell>
References:  <500D5385.9030407@gmail.com> <500D5E03.2000306@yandex.ru><500D61A5.1050600@gmail.com> <500D62C5.4020004@freebsd.org><500D6679.1010708@gmail.com> <500D6B7B.5040701@gmail.com> <7B3BABE27CA240788EFEB3F3333094E5@Rivendell>

next in thread | previous in thread | raw e-mail | index | archive | help
Reko Turja wrote:
> From: Volodymyr Kostyrko
>> Rebuilding whole PHP without clang/gcc4.6 (my local settings) dumps
>> core with this backtrace:
>
>> ...
>
> Maybe something like this in /etc/make.conf
>
> ..if ${.CURDIR:M*php53*}
> WITH_DEBUG=YES
> ..endif
>
> ..if ${.CURDIR:M*php5-redis*}
> WITH_DEBUG=YES
> ..endif
>
> And rebuild php+extensions.
>
> then load the corefile to gdb.

The bad thing about this is that if I rebuild everything WITH_DEBUG. 
There's no more coredumps, everything works, except for enormous size of 
leaks detected and written to log:

/tmp/ports/usr/ports/lang/php53/work/php-5.3.15/main/php_variables.c(53) 
:  Freeing 0x80247BF08 (946 bytes), script=-
Last leak repeated 1 time
=== Total 2 memory leaks detected ===

[Tue Jul 24 14:44:23 2012]  Script:  '-'
/tmp/ports/usr/ports/security/php-suhosin/work/suhosin-0.9.33/suhosin.c(971) 
:  Freeing 0x8024783C8 (68 bytes), script=-
Last leak repeated 1 time
=== Total 2 memory leaks detected ===

[Tue Jul 24 14:39:59 2012]  Script:  '-'
/tmp/ports/usr/ports/lang/php53/work/php-5.3.15/ext/standard/base64.c(69) : 
  Freeing 0x80B617348 (153 bytes), script=-
/tmp/ports/usr/ports/lang/php53/work/php-5.3.15/Zend/zend_alloc.c(2734) 
: Actual location (location was relayed)
[Tue Jul 24 14:39:59 2012]  Script:  '-'
/tmp/ports/usr/ports/security/php-suhosin/work/suhosin-0.9.33/suhosin.c(971) 
:  Freeing 0x80B537ED8 (14 bytes), script=-
Last leak repeated 4 times
=== Total 6 memory leaks detected ===

-- 
Sphinx of black quartz judge my vow.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?500E8C77.7070007>