ID: 38961
Updated by: [EMAIL PROTECTED]
Reported By: nikolas dot hagelstein at gmail dot com
-Status: Open
+Status: Suspended
Bug Type: Reproducible crash
Operating System: Netbsd 3.0.1 AMD64
PHP Version: 5.1.6
New Comment:
I've reported it to NetBSD people, lets see what they say about it.
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2006-09-26 18:33:44] [EMAIL PROTECTED]
# gdb sapi/cli/php
(gdb) r /path/to/test/script.php
<here will be segfault>
(gdb) f 0
(gdb) p word[w_idx]
(gdb) p toupper(word[w_idx])
(gdb) p isalpha(toupper(word[w_idx]))
------------------------------------------------------------------------
[2006-09-26 18:26:08] nikolas dot hagelstein at gmail dot com
(gdb) p word[w_idx]
No symbol table is loaded. Use the "file" command.
seems as if i have to load a symbol table or something, any hints?
------------------------------------------------------------------------
[2006-09-26 18:18:22] [EMAIL PROTECTED]
Looks like your libc is broken.
Please type this in gdb after "bt":
f 0
p word[w_idx]
p toupper(word[w_idx])
p isalpha(toupper(word[w_idx]))
and paste the output here
------------------------------------------------------------------------
[2006-09-26 18:17:17] nikolas dot hagelstein at gmail dot com
segfault on 5.1.6 and php5.2-200609261630 same backtrace
------------------------------------------------------------------------
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