#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-27 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

seems to work at least on my 64bit maschine tested against 5.1.6 and
latest snapshot. Maybe someone can verify for 32bit maschines.


Previous Comments:


[2006-09-26 22:11:59] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.
0x000200e4eced 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

(gdb) f 0
(gdb) p word[w_idx]
(gdb) p toupper(word[w_idx])
(gdb) p isalpha(toupper(word[w_idx]))



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

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.
0x000200e4eced in isalpha () from /usr/lib/libc.so.12


Previous Comments:


[2006-09-26 18:33:44] [EMAIL PROTECTED]

# gdb sapi/cli/php
(gdb) r /path/to/test/script.php

(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



[2006-09-26 18:04:20] nikolas dot hagelstein at gmail dot com

sorry folks you have been right it seems as if the pkgsrc process
somehow stripes debug informations :|. Anyway here is what i got using
a native build process and the native sources (without the latest cvs
patch provided by iliaa)
Program received signal SIGSEGV, Segmentation fault.
0x004a00ff in metaphone (word=0x8127c0 "ö", word_len=2,
max_phonemes=0, phoned_word=0x7f7fcc70, traditional=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:195
195 for (; !isalpha(Curr_Letter); w_idx++) {
(gdb) bt
#0  0x004a00ff in metaphone (word=0x8127c0 "ö", word_len=2,
max_phonemes=0, phoned_word=0x7f7fcc70, traditional=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:195
#1  0x0049ff40 in zif_metaphone (ht=1, return_value=0x812840,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:46
#2  0x00561366 in zend_do_fcall_common_helper_SPEC (
execute_data=0x7f7fce20) at zend_vm_execute.h:200
#3  0x0056493d in ZEND_DO_FCALL_SPEC_CONST_HANDLER (
execute_data=0x7f7fce20) at zend_vm_execute.h:1640
#4  0x00560e6a in execute (op_array=0x783c40) at
zend_vm_execute.h:92
#5  0x0053ddf6 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/local/src/php-5.1.6/Zend/zend.c:1109
#6  0x004eed77 in php_execute_script
(primary_file=0x7f7fe7c0)
at /usr/local/src/php-5.1.6/main/main.c:1737
#7  0x005b1cd7 in main (argc=2, argv=0x7f7fe8c0)
at /usr/local/src/php-5.1.6/sapi/cgi/cgi_main.c:1612



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

(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?


Previous Comments:


[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



[2006-09-26 18:04:20] nikolas dot hagelstein at gmail dot com

sorry folks you have been right it seems as if the pkgsrc process
somehow stripes debug informations :|. Anyway here is what i got using
a native build process and the native sources (without the latest cvs
patch provided by iliaa)
Program received signal SIGSEGV, Segmentation fault.
0x004a00ff in metaphone (word=0x8127c0 "ö", word_len=2,
max_phonemes=0, phoned_word=0x7f7fcc70, traditional=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:195
195 for (; !isalpha(Curr_Letter); w_idx++) {
(gdb) bt
#0  0x004a00ff in metaphone (word=0x8127c0 "ö", word_len=2,
max_phonemes=0, phoned_word=0x7f7fcc70, traditional=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:195
#1  0x0049ff40 in zif_metaphone (ht=1, return_value=0x812840,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:46
#2  0x00561366 in zend_do_fcall_common_helper_SPEC (
execute_data=0x7f7fce20) at zend_vm_execute.h:200
#3  0x0056493d in ZEND_DO_FCALL_SPEC_CONST_HANDLER (
execute_data=0x7f7fce20) at zend_vm_execute.h:1640
#4  0x00560e6a in execute (op_array=0x783c40) at
zend_vm_execute.h:92
#5  0x0053ddf6 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/local/src/php-5.1.6/Zend/zend.c:1109
#6  0x004eed77 in php_execute_script
(primary_file=0x7f7fe7c0)
at /usr/local/src/php-5.1.6/main/main.c:1737
#7  0x005b1cd7 in main (argc=2, argv=0x7f7fe8c0)
at /usr/local/src/php-5.1.6/sapi/cgi/cgi_main.c:1612



[2006-09-26 17:28:04] [EMAIL PROTECTED]

Please do the following:
#1 fetch http://snaps.php.net/php5.2-200609261630.tar.bz2
#2 extract it
#3 cd into the directory
#4 ./configure --disable-all --enable-debug
#5 make
#6 sapi/cli/php your_test_file.php



[2006-09-26 17:07:51] nikolas dot hagelstein at gmail dot com

it is php -v returns (DEBUG) which indicates that it has been build
with enable-debug:
PHP 5.1.6 (cli) (built: Sep 26 2006 18:33:22) (DEBUG)



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

sorry folks you have been right it seems as if the pkgsrc process
somehow stripes debug informations :|. Anyway here is what i got using
a native build process and the native sources (without the latest cvs
patch provided by iliaa)
Program received signal SIGSEGV, Segmentation fault.
0x004a00ff in metaphone (word=0x8127c0 "ö", word_len=2,
max_phonemes=0, phoned_word=0x7f7fcc70, traditional=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:195
195 for (; !isalpha(Curr_Letter); w_idx++) {
(gdb) bt
#0  0x004a00ff in metaphone (word=0x8127c0 "ö", word_len=2,
max_phonemes=0, phoned_word=0x7f7fcc70, traditional=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:195
#1  0x0049ff40 in zif_metaphone (ht=1, return_value=0x812840,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /usr/local/src/php-5.1.6/ext/standard/metaphone.c:46
#2  0x00561366 in zend_do_fcall_common_helper_SPEC (
execute_data=0x7f7fce20) at zend_vm_execute.h:200
#3  0x0056493d in ZEND_DO_FCALL_SPEC_CONST_HANDLER (
execute_data=0x7f7fce20) at zend_vm_execute.h:1640
#4  0x00560e6a in execute (op_array=0x783c40) at
zend_vm_execute.h:92
#5  0x0053ddf6 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/local/src/php-5.1.6/Zend/zend.c:1109
#6  0x004eed77 in php_execute_script
(primary_file=0x7f7fe7c0)
at /usr/local/src/php-5.1.6/main/main.c:1737
#7  0x005b1cd7 in main (argc=2, argv=0x7f7fe8c0)
at /usr/local/src/php-5.1.6/sapi/cgi/cgi_main.c:1612


Previous Comments:


[2006-09-26 17:28:04] [EMAIL PROTECTED]

Please do the following:
#1 fetch http://snaps.php.net/php5.2-200609261630.tar.bz2
#2 extract it
#3 cd into the directory
#4 ./configure --disable-all --enable-debug
#5 make
#6 sapi/cli/php your_test_file.php



[2006-09-26 17:07:51] nikolas dot hagelstein at gmail dot com

it is php -v returns (DEBUG) which indicates that it has been build
with enable-debug:
PHP 5.1.6 (cli) (built: Sep 26 2006 18:33:22) (DEBUG)



[2006-09-26 17:06:29] [EMAIL PROTECTED]

..or your PHP binary is stripped.
Just get the sources, compile them with ./configure --enable-debug
--disable-all and use the sapi/cli/php binary.



[2006-09-26 17:02:49] [EMAIL PROTECTED]

Well, your PHP is built without --enable-debug, that's the fact.



[2006-09-26 17:00:46] nikolas dot hagelstein at gmail dot com

yes ...it is:
Starting program: /usr/pkg/bin/php
/var/www/www.chaosbutze.de/htdocs/test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0051bb0f in zif_metaphone ()
(gdb) bt
#0  0x0051bb0f in zif_metaphone ()
#1  0x0051b9e2 in zif_metaphone ()
#2  0x005bfa95 in execute ()
#3  0x005bf21c in execute ()
#4  0x005a2ef6 in zend_execute_scripts ()
#5  0x00562c09 in php_execute_script ()
#6  0x006133e9 in main ()
#7  0x00440aa8 in ___start ()

i even tried -e but without any success...



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

it is php -v returns (DEBUG) which indicates that it has been build
with enable-debug:
PHP 5.1.6 (cli) (built: Sep 26 2006 18:33:22) (DEBUG)


Previous Comments:


[2006-09-26 17:06:29] [EMAIL PROTECTED]

..or your PHP binary is stripped.
Just get the sources, compile them with ./configure --enable-debug
--disable-all and use the sapi/cli/php binary.



[2006-09-26 17:02:49] [EMAIL PROTECTED]

Well, your PHP is built without --enable-debug, that's the fact.



[2006-09-26 17:00:46] nikolas dot hagelstein at gmail dot com

yes ...it is:
Starting program: /usr/pkg/bin/php
/var/www/www.chaosbutze.de/htdocs/test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0051bb0f in zif_metaphone ()
(gdb) bt
#0  0x0051bb0f in zif_metaphone ()
#1  0x0051b9e2 in zif_metaphone ()
#2  0x005bfa95 in execute ()
#3  0x005bf21c in execute ()
#4  0x005a2ef6 in zend_execute_scripts ()
#5  0x00562c09 in php_execute_script ()
#6  0x006133e9 in main ()
#7  0x00440aa8 in ___start ()

i even tried -e but without any success...



[2006-09-26 16:57:21] [EMAIL PROTECTED]

And the backtrace is EXACTLY the same?
Just #0  0x0050c86c in zif_metaphone () ?



[2006-09-26 16:53:05] nikolas dot hagelstein at gmail dot com

Just a typo withhin my comment debug is enabled see beyond

PHP 5.1.6 (cli) (built: Sep 26 2006 18:33:22) (DEBUG)



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

yes ...it is:
Starting program: /usr/pkg/bin/php
/var/www/www.chaosbutze.de/htdocs/test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0051bb0f in zif_metaphone ()
(gdb) bt
#0  0x0051bb0f in zif_metaphone ()
#1  0x0051b9e2 in zif_metaphone ()
#2  0x005bfa95 in execute ()
#3  0x005bf21c in execute ()
#4  0x005a2ef6 in zend_execute_scripts ()
#5  0x00562c09 in php_execute_script ()
#6  0x006133e9 in main ()
#7  0x00440aa8 in ___start ()

i even tried -e but without any success...


Previous Comments:


[2006-09-26 16:57:21] [EMAIL PROTECTED]

And the backtrace is EXACTLY the same?
Just #0  0x0050c86c in zif_metaphone () ?



[2006-09-26 16:53:05] nikolas dot hagelstein at gmail dot com

Just a typo withhin my comment debug is enabled see beyond

PHP 5.1.6 (cli) (built: Sep 26 2006 18:33:22) (DEBUG)



[2006-09-26 16:48:12] [EMAIL PROTECTED]

--enabled-debug != --enable-debug



[2006-09-26 16:38:21] nikolas dot hagelstein at gmail dot com

recompiled using --enabled-debug -> same output



[2006-09-26 16:27:57] [EMAIL PROTECTED]

With --enable-debug we would get a lot more useful information.



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

Just a typo withhin my comment debug is enabled see beyond

PHP 5.1.6 (cli) (built: Sep 26 2006 18:33:22) (DEBUG)


Previous Comments:


[2006-09-26 16:48:12] [EMAIL PROTECTED]

--enabled-debug != --enable-debug



[2006-09-26 16:38:21] nikolas dot hagelstein at gmail dot com

recompiled using --enabled-debug -> same output



[2006-09-26 16:27:57] [EMAIL PROTECTED]

With --enable-debug we would get a lot more useful information.



[2006-09-26 16:23:48] nikolas dot hagelstein at gmail dot com

Ok, i just copied the cvs metaphone.c to my 5.1.6 source tree and did a
rebuild. Still segfault, same backtrace :

Program received signal SIGSEGV, Segmentation fault.
0x0050c86c in zif_metaphone ()
(gdb) bt
#0  0x0050c86c in zif_metaphone ()
#1  0x0050c762 in zif_metaphone ()
#2  0x0059f309 in execute ()
#3  0x0059eba0 in execute ()
#4  0x00585886 in zend_execute_scripts ()
#5  0x0054bfe9 in php_execute_script ()
#6  0x005eab04 in main ()
#7  0x004407a8 in ___start ()



[2006-09-26 16:04:18] [EMAIL PROTECTED]

>"Syntax error: Unterminated quoted string"
Please elaborate.



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

recompiled using --enabled-debug -> same output


Previous Comments:


[2006-09-26 16:27:57] [EMAIL PROTECTED]

With --enable-debug we would get a lot more useful information.



[2006-09-26 16:23:48] nikolas dot hagelstein at gmail dot com

Ok, i just copied the cvs metaphone.c to my 5.1.6 source tree and did a
rebuild. Still segfault, same backtrace :

Program received signal SIGSEGV, Segmentation fault.
0x0050c86c in zif_metaphone ()
(gdb) bt
#0  0x0050c86c in zif_metaphone ()
#1  0x0050c762 in zif_metaphone ()
#2  0x0059f309 in execute ()
#3  0x0059eba0 in execute ()
#4  0x00585886 in zend_execute_scripts ()
#5  0x0054bfe9 in php_execute_script ()
#6  0x005eab04 in main ()
#7  0x004407a8 in ___start ()



[2006-09-26 16:04:18] [EMAIL PROTECTED]

>"Syntax error: Unterminated quoted string"
Please elaborate.



[2006-09-26 15:56:37] nikolas dot hagelstein at gmail dot com

I checked out 5.2 from cvs but i am not able to build it on my
maschine.
"Syntax error: Unterminated quoted string"

Any other way to check if the the 64bit fix works?



[2006-09-26 15:41:22] [EMAIL PROTECTED]

Can you please try the latest CVS, it has a 64bit fix that may 
fix the crash you are experiencing.



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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

Ok, i just copied the cvs metaphone.c to my 5.1.6 source tree and did a
rebuild. Still segfault, same backtrace :

Program received signal SIGSEGV, Segmentation fault.
0x0050c86c in zif_metaphone ()
(gdb) bt
#0  0x0050c86c in zif_metaphone ()
#1  0x0050c762 in zif_metaphone ()
#2  0x0059f309 in execute ()
#3  0x0059eba0 in execute ()
#4  0x00585886 in zend_execute_scripts ()
#5  0x0054bfe9 in php_execute_script ()
#6  0x005eab04 in main ()
#7  0x004407a8 in ___start ()


Previous Comments:


[2006-09-26 16:04:18] [EMAIL PROTECTED]

>"Syntax error: Unterminated quoted string"
Please elaborate.



[2006-09-26 15:56:37] nikolas dot hagelstein at gmail dot com

I checked out 5.2 from cvs but i am not able to build it on my
maschine.
"Syntax error: Unterminated quoted string"

Any other way to check if the the 64bit fix works?



[2006-09-26 15:41:22] [EMAIL PROTECTED]

Can you please try the latest CVS, it has a 64bit fix that may 
fix the crash you are experiencing.



[2006-09-26 15:35:34] nikolas dot hagelstein at gmail dot com

So it is eigther a system specific issue (i was able to reproduce it on
2 maschines) or you did not used an utf8 file ;)



[2006-09-26 15:32:42] [EMAIL PROTECTED]

Works perfectly fine: string(0) ""




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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

I checked out 5.2 from cvs but i am not able to build it on my
maschine.
"Syntax error: Unterminated quoted string"

Any other way to check if the the 64bit fix works?


Previous Comments:


[2006-09-26 15:41:22] [EMAIL PROTECTED]

Can you please try the latest CVS, it has a 64bit fix that may 
fix the crash you are experiencing.



[2006-09-26 15:35:34] nikolas dot hagelstein at gmail dot com

So it is eigther a system specific issue (i was able to reproduce it on
2 maschines) or you did not used an utf8 file ;)



[2006-09-26 15:32:42] [EMAIL PROTECTED]

Works perfectly fine: string(0) ""




[2006-09-26 15:16:57] nikolas dot hagelstein at gmail dot com

I can not try that since i am not able to submit real utf8 chars 
through my shell.

test.php

php test.php

results in a segmentation fault test.php needs to be an UTF8 file.

file -i test.php
test.php: text/plain; charset=utf-8



[2006-09-26 15:09:28] [EMAIL PROTECTED]

./sapi/cli/php -r
'var_dump(metaphone("русский
язык UTF8"));'
string(3) "UTF"




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


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

I can not try that since i am not able to submit real utf8 chars 
through my shell.

test.php

php test.php

results in a segmentation fault test.php needs to be an UTF8 file.

file -i test.php
test.php: text/plain; charset=utf-8


Previous Comments:


[2006-09-26 15:09:28] [EMAIL PROTECTED]

./sapi/cli/php -r
'var_dump(metaphone("русский
язык UTF8"));'
string(3) "UTF"




[2006-09-26 15:06:14] nikolas dot hagelstein at gmail dot com

Starting program: /usr/pkg/bin/php test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0050c86b in zif_metaphone ()
(gdb) bt
#0  0x0050c86b in zif_metaphone ()
#1  0x0050c761 in zif_metaphone ()
#2  0x0059f489 in execute ()
#3  0x0059ed20 in execute ()
#4  0x00585a06 in zend_execute_scripts ()
#5  0x0054c169 in php_execute_script ()
#6  0x005eac84 in main ()
#7  0x004407a8 in ___start ()
(gdb)



[2006-09-26 14:09:57] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.





[2006-09-26 14:01:12] nikolas dot hagelstein at gmail dot com

Description:

Passing utf8 data to metaphone results in a segmentation fault.

Reproduce code:
---







-- 
Edit this bug report at http://bugs.php.net/?id=38961&edit=1


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

Starting program: /usr/pkg/bin/php test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0050c86b in zif_metaphone ()
(gdb) bt
#0  0x0050c86b in zif_metaphone ()
#1  0x0050c761 in zif_metaphone ()
#2  0x0059f489 in execute ()
#3  0x0059ed20 in execute ()
#4  0x00585a06 in zend_execute_scripts ()
#5  0x0054c169 in php_execute_script ()
#6  0x005eac84 in main ()
#7  0x004407a8 in ___start ()
(gdb)


Previous Comments:


[2006-09-26 14:09:57] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.





[2006-09-26 14:01:12] nikolas dot hagelstein at gmail dot com

Description:

Passing utf8 data to metaphone results in a segmentation fault.

Reproduce code:
---







-- 
Edit this bug report at http://bugs.php.net/?id=38961&edit=1


#38961 [Fbk->Opn]: Metaphone results in segmentation fault

2006-09-26 Thread nikolas dot hagelstein at gmail dot com
 ID:   38961
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:  nikolas dot hagelstein at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Netbsd 3.0.1 AMD64
 PHP Version:  5.1.6
 New Comment:

So it is eigther a system specific issue (i was able to reproduce it on
2 maschines) or you did not used an utf8 file ;)


Previous Comments:


[2006-09-26 15:32:42] [EMAIL PROTECTED]

Works perfectly fine: string(0) ""




[2006-09-26 15:16:57] nikolas dot hagelstein at gmail dot com

I can not try that since i am not able to submit real utf8 chars 
through my shell.

test.php

php test.php

results in a segmentation fault test.php needs to be an UTF8 file.

file -i test.php
test.php: text/plain; charset=utf-8



[2006-09-26 15:09:28] [EMAIL PROTECTED]

./sapi/cli/php -r
'var_dump(metaphone("русский
язык UTF8"));'
string(3) "UTF"




[2006-09-26 15:06:14] nikolas dot hagelstein at gmail dot com

Starting program: /usr/pkg/bin/php test.php
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0050c86b in zif_metaphone ()
(gdb) bt
#0  0x0050c86b in zif_metaphone ()
#1  0x0050c761 in zif_metaphone ()
#2  0x0059f489 in execute ()
#3  0x0059ed20 in execute ()
#4  0x00585a06 in zend_execute_scripts ()
#5  0x0054c169 in php_execute_script ()
#6  0x005eac84 in main ()
#7  0x004407a8 in ___start ()
(gdb)



[2006-09-26 14:09:57] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.





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