Debian Bug report logs - #683476
php5-cgi: Broken on armel b/c multiple unaliged memory access issues

version graph

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

Reported by: shawn <shawn@jengr.tk>

Date: Wed, 1 Aug 2012 04:33:01 UTC

Severity: important

Tags: upstream

Found in version php5/5.4.4-2

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#683476; Package php5-cgi. (Wed, 01 Aug 2012 04:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to shawn <shawn@jengr.tk>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 01 Aug 2012 04:33:04 GMT) (full text, mbox, link).


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

From: shawn <shawn@jengr.tk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-cgi: Broken on armel b/c multiple unaliged memory access issues
Date: Wed, 01 Aug 2012 04:28:25 +0000
Package: php5-cgi
Version: 5.4.4-2
Severity: important
Tags: upstream

Dear Maintainer,

Broken on armel b/c multiple unaliged memory access issues

[4742113.672995] Alignment trap: php5-cgi (1556) PC=0x002b50e8 Instr=0xe5960020 Address=0x01000721 FSR 0x001
[4742348.453392] Alignment trap: php5-cgi (1774) PC=0x002b50e8 Instr=0xe5960020 Address=0x01000721 FSR 0x001
[4747421.332368] Alignment trap: php5-cgi (1846) PC=0x00352238 Instr=0xe5943000 Address=0x01000701 FSR 0x001

#1+#2 Zend/zend_hash.c:926 (zend_hash_find)
ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData)
{
        ulong h;
        uint nIndex;
        Bucket *p;

        IS_CONSISTENT(ht);

        h = zend_inline_hash_func(arKey, nKeyLength);
        nIndex = h & ht->nTableMask;

        p = ht->arBuckets[nIndex];
        while (p != NULL) {
                if (p->arKey == arKey || <-----###--------------
                        ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) {
                                *pData = p->pData;
                                return SUCCESS;
                }
                p = p->pNext;
        }
        return FAILURE;
}

#2 

#3 sapi/cgi/fastcgi.c:316 (fcgi_hash_get)
static char *fcgi_hash_get(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, unsigned int *val_len)
{
        unsigned int      idx = hash_value & FCGI_HASH_TABLE_MASK;
        fcgi_hash_bucket *p = h->hash_table[idx];

        while (p != NULL) {
                if (p->hash_value == hash_value && <----####----
                    p->var_len == var_len &&
                    memcmp(p->var, var, var_len) == 0) {
                    *val_len = p->val_len;
                    return p->val;
                }
                p = p->next;
        }
        return NULL;
}




-- System Information:
Debian Release: wheezy
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: armel (armv5tel)

Kernel: Linux 3.4.0-tomoyo-00006-gfd64aac (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-cgi depends on:
ii  libbz2-1.0        1.0.6-3
ii  libc6             2.13-33
ii  libcomerr2        1.42.4-3
ii  libdb5.1          5.1.29-5
ii  libgcc1           1:4.7.1-2
ii  libgssapi-krb5-2  1.10.1+dfsg-1em1
ii  libk5crypto3      1.10.1+dfsg-1em1
ii  libkrb5-3         1.10.1+dfsg-1em1
ii  libmagic1         5.11-2
ii  libonig2          5.9.1-1em1
ii  libpcre3          1:8.30-5em1
ii  libqdbm14         1.8.78-2em1
ii  libssl1.0.0       1.0.1c-3
ii  libxml2           2.8.0+dfsg1-4
ii  mime-support      3.52-1em1
ii  php5-common       5.4.4-2
ii  tzdata            2012c-1em1
ii  ucf               3.0025+nmu3em1
ii  zlib1g            1:1.2.7.dfsg-13

php5-cgi recommends no packages.

Versions of packages php5-cgi suggests:
ii  php-pear  5.4.4-2

-- no debconf information



Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Wed, 27 Jan 2016 11:51:21 GMT) (full text, mbox, link).


Notification sent to shawn <shawn@jengr.tk>:
Bug acknowledged by developer. (Wed, 27 Jan 2016 11:51:22 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: 683476-done@bugs.debian.org, 711254-done@bugs.debian.org
Subject: Closing the non-security bugs against PHP in Debian wheezy (old-stable)
Date: Wed, 27 Jan 2016 12:46:21 +0100
Version: php5/5.6.0+dfsg-1

Feel free to reopen the bugs, if you can reproduce those against current
Debian stable PHP version (5.6.17+).

Cheers,
-- 
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. (Thu, 25 Feb 2016 07:34:49 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 00:45:57 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.