Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 209606
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PHP Bugs <php-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christian Hoffmann <hoffie@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 209606 depends on: Show dependency tree
Bug 209606 blocks: 209148
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-02-10 22:02 0000
=dev-lang/php-5.2.5_p20080206 makes cacti's poller.php crash while
=dev-lang/php-5.2.5(-r1) worked fine. Vanilla is broken as well => see $URL.
Wating for upstream fix/comments...

Might be related to bug 209501 (which seems to be sparc-related, while this bug
has been reproduced on x86 only until now).

------- Comment #1 From Urs Joss 2008-02-11 08:56:16 0000 -------
Same here

------- Comment #2 From Jakub Moc (RETIRED) 2008-02-11 13:02:25 0000 -------
*** Bug 209649 has been marked as a duplicate of this bug. ***

------- Comment #3 From Christian Hoffmann 2008-02-11 14:33:05 0000 -------
Is anyone of you able to trigger that bug easily (i.e. a script of 10 lines or
so)?
Is anyone having this problem with an application which does *not* use MySQL?

Could you please try
  php -r 'echo mysql_connect('localhost', 'root', 'password', true, 128);'
and see if it segfaults?

If it wasn't broken on vanilla as well I'd say I have messed up our mysql
charset stuff, but apparently it's really reproducible on vanilla. I'm trying
the same thing in a x86 chroot now (as I've not been able to reproduce it on
amd64).

Thanks to tokyoahead in #gentoo-php who really helped by providing that example
line and doing some additional debugging. =)

------- Comment #4 From Hans Rakers 2008-02-11 14:48:29 0000 -------
Try that with Zend Optimizer 3.3.0a installed and it will insta-crash as i
reported in http://bugs.gentoo.org/show_bug.cgi?id=209649#c1

------- Comment #5 From Urs Joss 2008-02-11 14:50:20 0000 -------
(In reply to comment #3)
> Could you please try
>   php -r 'echo mysql_connect('localhost', 'root', 'password', true, 128);'
> and see if it segfaults?

Christian, I can confirm that this line (of course with the adjusted PW) fails
as wel on my box.

HTH, regards, 
Urs

------- Comment #6 From Guy Martin 2008-02-11 16:17:06 0000 -------
It crash as well with 20080210 vanilla snapshot. Updated bug title and upstream
bug.

------- Comment #7 From Christian Hoffmann 2008-02-11 23:21:45 0000 -------
Updated the upstream bug with some new results.
$AFFECTED_USERS, do you have USE=pic? I'm suspecting it's that causing the
breakage.
Posting emerge -pv php and the arch (x86?) would not hurt.

------- Comment #8 From Urs Joss 2008-02-12 06:46:54 0000 -------
Shortened output of eix -e php
[D] dev-lang/php
     Available versions:
        (4)     [M]4.4.8_pre20070816 [M]~4.4.8
        (5)     5.2.4_pre200708051230-r2 5.2.5-r1 [M]5.2.5_p20080206
     Installed versions:  5.2.5_p20080206(5)(07:58:34 2008-02-08)(apache2 bzip2
cgi cli ctype doc exif fastbuild ftp gd-external iconv mysql nls pcre pic posix
readline session simplexml soap spell spl ssl tokenizer truetype unicode xml
xsl zip zlib [...])

=> Yes, pic is set. I'll try to recompile w/o pic and post the results later

------- Comment #9 From Urs Joss 2008-02-12 07:04:42 0000 -------
Ok, I can confirm that php-5.2.5_p20080206 compiled w/o pic on x86 does not
result in a segfault when running
php -r 'echo mysql_connect('localhost', 'root', 'password', true, 128);'

------- Comment #10 From Jakub Moc (RETIRED) 2008-02-12 11:04:15 0000 -------
Please, test this patch if you are can reproduce the issue...

http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?r1=1.213.2.6.2.20&r2=1.213.2.6.2.21&diff_format=u

------- Comment #11 From Guy Martin 2008-02-12 11:59:20 0000 -------
Works for me.

------- Comment #12 From Jakub Moc (RETIRED) 2008-02-12 12:08:16 0000 -------
Here's an ebuild for easier testing...

http://overlays.gentoo.org/svn/proj/php/testing/dev-lang/php/

------- Comment #13 From Urs Joss 2008-02-12 12:22:15 0000 -------
Works for me as well. Thanks

------- Comment #14 From Hans Rakers 2008-02-12 12:59:49 0000 -------
Works. Tested with the 5.2.5_p20080206-r2 ebuild from the php-testing overlay.

Also verified working with Zend Optimizer 3.3.0a and Suhosin 0.9.22.

------- Comment #15 From Christian Hoffmann 2008-02-12 16:47:44 0000 -------
Thank you!
php-5.2.5_p20080206-r2, including the fix, is in CVS now (ebuild-wise it's not
the same as in the overlay as it has some src_test optimizations, but the
installed result is the same).

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug