Debian Bug report logs - #626363
php5-cli: Segmentation fault and zend_mm_heap corrupted while executing piwik update script

version graph

Package: php5-cli; Maintainer for php5-cli is (unknown);

Reported by: dusty <dusty@phorus.nibbles.it>

Date: Wed, 11 May 2011 10:36:01 UTC

Severity: important

Tags: moreinfo

Found in version php5/5.3.3-7+squeeze1

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#626363; Package php5-cli. (Wed, 11 May 2011 10:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to dusty <dusty@phorus.nibbles.it>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 11 May 2011 10:36:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: dusty <dusty@phorus.nibbles.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-cli: Segmentation fault and zend_mm_heap corrupted while executing piwik update script
Date: Wed, 11 May 2011 12:26:20 +0200
Package: php5-cli
Version: 5.3.3-7+squeeze1
Severity: important

I have a fairly large piwik setup and when the cron job executes the script to update stats, most of the times I get errors of this kind:
/www/misc/cron/archive.sh: line 73: 23673 Segmentation fault      $CMD zend_mm_heap corrupted


-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (400, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#626363; Package php5-cli. (Wed, 11 May 2011 10:48:06 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 11 May 2011 10:48:06 GMT) (full text, mbox, link).


Message #10 received at 626363@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: dusty <dusty@phorus.nibbles.it>, 626363@bugs.debian.org
Cc: control <control@bugs.debian.org>
Subject: Re: [php-maint] Bug#626363: php5-cli: Segmentation fault and zend_mm_heap corrupted while executing piwik update script
Date: Wed, 11 May 2011 12:45:34 +0200
tags 626363 +moreinfo
thank you

Hi,

please install php5-dbg and provide backtrace:

http://bugs.php.net/bugs-generating-backtrace.php

and possible a isolated (small) test case.

O.

On Wed, May 11, 2011 at 12:26, dusty <dusty@phorus.nibbles.it> wrote:
> Package: php5-cli
> Version: 5.3.3-7+squeeze1
> Severity: important
>
> I have a fairly large piwik setup and when the cron job executes the script to update stats, most of the times I get errors of this kind:
> /www/misc/cron/archive.sh: line 73: 23673 Segmentation fault      $CMD zend_mm_heap corrupted
>
>
> -- System Information:
> Debian Release: 6.0.1
>  APT prefers stable-updates
>  APT policy: (500, 'stable-updates'), (500, 'stable'), (400, 'testing'), (50, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.32-5-amd64 (SMP w/12 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>



-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Added tag(s) moreinfo. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 11 May 2011 10:48:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#626363; Package php5-cli. (Thu, 12 May 2011 10:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to dusty <dusty@phorus.nibbles.it>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 12 May 2011 10:00:07 GMT) (full text, mbox, link).


Message #17 received at 626363@bugs.debian.org (full text, mbox, reply):

From: dusty <dusty@phorus.nibbles.it>
To: Debian Bug Tracking System <626363@bugs.debian.org>
Subject: Re: Segmentation fault and zend_mm_heap corrupted while executing piwik update script
Date: Thu, 12 May 2011 11:52:42 +0200
Package: php5-cli
Version: 5.3.3-7+squeeze1
Severity: normal


Here is the backtrace:

Program terminated with signal 11, Segmentation fault.
#0  0x00000000006a11d9 in gc_zval_possible_root (zv=0x2735978) at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_gc.c:143
143     /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_gc.c: No such file or directory.
        in /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_gc.c
(gdb) bt
#0  0x00000000006a11d9 in gc_zval_possible_root (zv=0x2735978) at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_gc.c:143
#1  0x000000000068fb08 in zend_hash_destroy (ht=0x2701620) at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_hash.c:726
#2  0x00000000006a4959 in zend_object_std_dtor (object=0x273bbb8)
    at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_objects.c:45
#3  0x00000000006a4979 in zend_objects_free_object_storage (object=0x273bbb8)
    at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_objects.c:128
#4  0x00000000006a7e7c in zend_objects_store_free_object_storage (objects=0xd81418)
    at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_objects_API.c:92
#5  0x0000000000676a85 in shutdown_executor () at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend_execute_API.c:302
#6  0x0000000000683402 in zend_deactivate () at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/Zend/zend.c:962
#7  0x000000000062ecc5 in php_request_shutdown (dummy=0x2735978) at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/main/main.c:1649
#8  0x00000000007127e4 in main (argc=-134979576, argv=0x7f637e1ec4f0)
    at /build/buildd-php5_5.3.3-7+squeeze1-amd64-ihNnkV/php5-5.3.3/sapi/cli/php_cli.c:1377

I'm sorry I thing it would be very difficult to provide a test case because I've a large DB and the problem only arise with large data.

HTH




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#626363; Package php5-cli. (Sat, 25 Aug 2012 13:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sean Dubois <seander13@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 25 Aug 2012 13:00:03 GMT) (full text, mbox, link).


Message #22 received at 626363@bugs.debian.org (full text, mbox, reply):

From: Sean Dubois <seander13@gmail.com>
To: 626363@bugs.debian.org
Subject: Re: Segmentation fault and zend_mm_heap corrupted while executing piwik update script
Date: Sat, 25 Aug 2012 08:58:17 -0400
Hi Dusty,

   Thank your for the backtrace. Unfortunately I don't see any calls
to execute();  See https://bugs.php.net/bugs-generating-backtrace.php
"Locating which function call caused a segfault"

   I am not intimately familiar with your specific issue so I looked
into it a bit more.
http://stackoverflow.com/questions/2247977/what-does-zend-mm-heap-corrupted-mean

   If the cron job you are running is something that you wrote
yourself you may want to look into profiling/benchmarking your script
to find out if maybe you are having a memory issue (See Stackoverflow
post 4)
   I am really suspicious that your blowing a stack somewhere. Since
you are working with a very large data set this could be a hint.

   I would suggest reusing any objects in your code, also looking at
freeing objects after you are done with them instead of letting the
garbage collector take care of them. If you can come up with a test
case I would
   be more than happy to help you so more. Right now I don't have much
to go off of.

   Thanks]



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#626363; Package php5-cli. (Wed, 09 Oct 2013 11:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to William Dauchy <wdauchy@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 09 Oct 2013 11:51:04 GMT) (full text, mbox, link).


Message #27 received at 626363@bugs.debian.org (full text, mbox, reply):

From: William Dauchy <wdauchy@gmail.com>
To: 626363@bugs.debian.org
Subject: php5-cli: Segmentation fault and zend_mm_heap corrupted while executing piwik update script
Date: Wed, 9 Oct 2013 13:48:43 +0200
Hello,

Do you still have the same issue with 5.4 version on wheezy?

Thanks,
-- 
William



Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 04 Jul 2014 11:36:08 GMT) (full text, mbox, link).


Notification sent to dusty <dusty@phorus.nibbles.it>:
Bug acknowledged by developer. (Fri, 04 Jul 2014 11:36:09 GMT) (full text, mbox, link).


Message #32 received at 626363-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 626363-done@bugs.debian.org
Subject: No reply from submitter
Date: Fri, 04 Jul 2014 13:33:31 +0200
No reply from OP, so closing the bug as it happened only in oldstable.

O.
-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 02 Aug 2014 07:31:16 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:29:16 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.