Backtrace of bug #6582 (ctlib)
| From: | Salim Gasmi | Date: | Thu, 07 Sep 2000 08:03:20 +0000 |
| Subject: | Backtrace of bug #6582 (ctlib) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32505@lists.php.net to get a copy of this message | ||
At 22:22 06/09/00 +0000, you wrote:
ID: 6582
Updated by: joey
Reported By: salim@sdv.fr
Status: Feedback
Bug Type: Sybase-ct (ctlib) related
Assigned To:
Comments:
Can you provide a back trace?
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 ------------
Previous Comments:
[2000-09-06 11:41:37] salim@sdv.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 first alpha release of php4.
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);
---------------------------------------------------------------------------
***************************************************
Gasmi Salim - System & Network administrator
SdV Plurimedia <http://www.sdv.fr>
PGP Key available at: http://www.gasmi.net/pgp.txt
---Share what you know. Learn what you don't.---
***************************************************