#38961 [Opn->Csd]: Metaphone results in segmentation fault
From: tony2001@php.net Date: Wed, 27 Sep 2006 08:32:27 +0000 Subject: #38961 [Opn->Csd]: Metaphone results in segmentation fault References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-102796@lists.php.net to get a copy of this message
ID: 38961
Updated by: tony2001@php.net
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Netbsd 3.0.1 AMD64
PHP Version: 5.1.6
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-09-27 08:17:31] nikolas dot hagelstein at gmail dot com
seems to work at least on my 64bit maschine tested against 5.1.6 and
latest snapshot. Maybe someone can verify for 32bit maschines.
------------------------------------------------------------------------
[2006-09-26 22:11:59] tony2001@php.net
Please apply this to the snapshot:
http://tony2001.phpclub.net/dev/tmp/bug38961.diff
Does this patch fix it for you?
------------------------------------------------------------------------
[2006-09-26 20:30:30] nikolas dot hagelstein at gmail dot com
(gdb) p word[w_idx]
$1 = -61 'Ã'
in my native mind this should not result in a negative number. This
seems to be related to wider datatypes on 64 bit maschines possible a
compiler flag issue ...
------------------------------------------------------------------------
[2006-09-26 20:19:01] tony2001@php.net
I've reported it to NetBSD people, lets see what they say about it.
------------------------------------------------------------------------
[2006-09-26 18:34:13] nikolas dot hagelstein at gmail dot com
ah got it i had to run php -e
(gdb) p word[w_idx]
$1 = -61 'Ã'
(gdb) p toupper(word[w_idx])
$2 = 28518
(gdb) p isalpha(toupper(word[w_idx]))
Program received signal SIGSEGV, Segmentation fault.
0x0000000200e4eced in isalpha () from /usr/lib/libc.so.12
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38961
--
Edit this bug report at http://bugs.php.net/?id=38961&edit=1
Thread (33 messages)
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Sus]: Metaphone results in segmentation fault
- #38961 [Sus]: Metaphone results in segmentation fault
- #38961 [Sus->Fbk]: Metaphone results in segmentation fault
- #38961 [Fbk->Opn]: Metaphone results in segmentation fault
- #38961 [Opn->Csd]: Metaphone results in segmentation fault
| « previous | php.bugs (#102796) | next » |
|---|