php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6582 sybase_fetch_row crashes
Submitted: 2000-09-06 11:41 UTC Modified: 2000-10-02 23:08 UTC
From: salim at sdv dot fr Assigned:
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 4.0.2 OS: Linux RH 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: salim at sdv dot fr
New email:
PHP Version: OS:

 

 [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);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-06 18:22 UTC] joey@php.net
Can you provide a back trace?

And what do you mean by "PR1"?
 [2000-09-07 04:07 UTC] joey@php.net
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 ------------

 [2000-09-07 04:10 UTC] joey@php.net
Sorry. I really meant to post that link, just never
got around to it...

There's something you're not telling us, or something
missing here. The crash is not in Sybase code...

Also, please post replies to the web page, not to the
mailing list.
 [2000-10-02 23:08 UTC] sniper@php.net
No feedback.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC