php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47770 PDO_SQLITE: pdo::query() segmentation fault
Submitted: 2009-03-25 07:12 UTC Modified: 2009-12-22 01:00 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: shj at xenosi dot de Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.2.9 OS: Gentoo Linux 64bit
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-03-25 07:12 UTC] shj at xenosi dot de
Description:
------------
1. this is segmentation fault.
return new class($pdo->class->query($this->query));

2. this is ok.
$stmt = $pdo->class->query($this->query);
return new class($stmt);


Reproduce code:
---------------
http://codepad.org/wJ5O5TvG
this is bug example.
run this code on your machine.

thank you.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-25 10:21 UTC] kalle@php.net
I'm unable to reproduce this with your script if I replace:
$stmt = $this->class->query($this->query);
return new SHJPDOStatement($stmt);

with:
return new SHJPDOStatement($this->class->query($this->query));


I get no crash, anything in my server log, etc. using Windows 32bit, can you generate a backtrace as described here:
http://bugs.php.net/bugs-generating-backtrace.php
 [2009-03-25 12:39 UTC] shj at xenosi dot de
like this?

Starting program: /usr/bin/php /down/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)
(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)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(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)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
(no debugging symbols found)
Cannot find new threads: generic error
(gdb) 
(gdb) bt
#0  0x00007f34747b755a in ?? () from /lib64/ld-linux-x86-64.so.2
#1  0x00007f34747b2856 in ?? () from /lib64/ld-linux-x86-64.so.2
#2  0x00007f34747b6d7b in ?? () from /lib64/ld-linux-x86-64.so.2
#3  0x00007f3472ed4f9b in ?? () from /lib/libdl.so.2
#4  0x00007f34747b2856 in ?? () from /lib64/ld-linux-x86-64.so.2
#5  0x00007f3472ed530c in ?? () from /lib/libdl.so.2
#6  0x00007f3472ed4f01 in dlopen () from /lib/libdl.so.2
#7  0x0000000000524907 in php_dl ()
#8  0x000000000058dd83 in ?? ()
#9  0x00000000005c038e in zend_llist_apply ()
#10 0x000000000058dd4a in php_ini_register_extensions ()
#11 0x0000000000587d06 in php_module_startup ()
#12 0x000000000063e0fd in ?? ()
#13 0x000000000063e8d2 in main ()
 [2009-03-25 22:55 UTC] sunhwanj at gmail dot com
I wasn't able to reproduce the error either in the following systems:

mac os x 10.5.6, php 5.2.6
linux 2.6.18, php 5.1.6
 [2009-04-30 10:49 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-12-15 00:56 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-12-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 21:01:33 2024 UTC