|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-06 11:41 UTC] salim at sdv dot fr
When Using sybase_num_rows(), the process crashes
randomly .
In the apache error log, I have the following line :
[Wed Sep 6 15:36:11 2000] [notice] child pid 13671 exit signal Segmentation fault (11)
This occur each time I loop on a cursor..
This occurs randomly between row #10 and #300 ...
Notas:
The same database,ctlib library and php script
works perfectly with php3.
This bug is here since PR1 ....
Here is an example script:
$db=sybase_connect('server','user','pass');
$cur=sybase_query("select * from table",$db);
$total=sybase_num_rows($cur);
while($row=sybase_fetch_row($cur))
{
echo "$row[0] $row[1]\n";
}
sybase_close($db);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
User replied: Yes, here follow the back trace (Thanks to Zak for the howto :) ) -------- back trace start --------- Program received signal SIGSEGV, Segmentation fault. 0x4022e354 in php_mime_split (buf=0x8119130 "8~\021\b", cnt=6, boundary=0xa <Address 0xa out of bounds>, array_ptr=0x40529c4c) at rfc1867.c:103 103 ptr = loc + 1; (gdb) bt #0 0x4022e354 in php_mime_split (buf=0x8119130 "8~\021\b", cnt=6, boundary=0xa <Address 0xa out of bounds>, array_ptr=0x40529c4c) at rfc1867.c:103 #1 0x40529c4c in ?? () from /usr/local/apache/libexec/libphp4.so #2 0x404e4d00 in ?? () from /usr/local/apache/libexec/libphp4.so #3 0x404e5173 in ?? () from /usr/local/apache/libexec/libphp4.so #4 0x4045ab76 in ?? () from /usr/local/apache/libexec/libphp4.so #5 0x404672e0 in ?? () from /usr/local/apache/libexec/libphp4.so #6 0x40476652 in ?? () from /usr/local/apache/libexec/libphp4.so #7 0x404732e9 in ?? () from /usr/local/apache/libexec/libphp4.so #8 0x40473bab in ?? () from /usr/local/apache/libexec/libphp4.so #9 0x40473bdc in ?? () from /usr/local/apache/libexec/libphp4.so #10 0x8054353 in ap_invoke_handler () #11 0x8067889 in process_request_internal () #12 0x80678ec in ap_process_request () #13 0x805f18e in child_main () #14 0x805f31c in make_child () #15 0x805f479 in startup_children () #16 0x805faa6 in standalone_main () #17 0x8060233 in main () #18 0x400b71eb in __libc_start_main (main=0x805feec <main>, argc=2, argv=0xbffffc14, init=0x804e8e0 <_init>, fini=0x809420c <_fini>, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffc0c) at ../sysdeps/generic/libc-start.c:90 ------ end of back trace ------------