|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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 ...


The same database,ctlib library and php script
works perfectly with php3.

This bug is here since PR1 ....

Here is an example script: 

$cur=sybase_query("select * from table",$db);

    echo "$row[0] $row[1]\n";



Add a Patch

Pull Requests

Add a Pull Request


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

And what do you mean by "PR1"?
 [2000-09-07 04:07 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
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
#1  0x40529c4c in ?? () from /usr/local/apache/libexec/
#2  0x404e4d00 in ?? () from /usr/local/apache/libexec/
#3  0x404e5173 in ?? () from /usr/local/apache/libexec/
#4  0x4045ab76 in ?? () from /usr/local/apache/libexec/
#5  0x404672e0 in ?? () from /usr/local/apache/libexec/
#6  0x40476652 in ?? () from /usr/local/apache/libexec/
#7  0x404732e9 in ?? () from /usr/local/apache/libexec/
#8  0x40473bab in ?? () from /usr/local/apache/libexec/
#9  0x40473bdc in ?? () from /usr/local/apache/libexec/
#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,
     init=0x804e8e0 <_init>, fini=0x809420c <_fini>, rtld_fini=0x4000a610
     stack_end=0xbffffc0c) at ../sysdeps/generic/libc-start.c:90

------ end of back trace ------------

 [2000-09-07 04:10 UTC]
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]
No feedback.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 02:01:31 2024 UTC