[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-09-25 Thread DarkNova
I traced the problem to a bug in ext/pdo/pdo_sql_parser.c that must have
been introduced somewhere around 5.2.6. I started working on a fix but
then thought to replace that file with one from a newer version of PHP.
I tried replacing with the one from 5.2.10.dfsg.1-2ubuntu4 and the bug
had already been fixed in that version. It looks like a fix was
submitted almost a year ago in bug: http://bugs.php.net/bug.php?id=44251

I've attached a diff of the changes between 5.2.6.dfsg.1-3ubuntu4.2 and
5.2.10.dfsg.1-2ubuntu4 in case you want them, but you may consider this
already fixed since it is at least fixed in 5.2.10 which will come out
in Karmic. Using the Karmic package works fine for me, but it would
probably be nice if it was backported to Jaunty for other people. Thanks
for your help,

Nick


** Bug watch added: bugs.php.net/ #44251
   http://bugs.php.net/bug.php?id=44251

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-09-25 Thread DarkNova

** Attachment added: Diff for ext/pdo/pdo_sql_parser.c
   
http://launchpadlibrarian.net/32455577/5.2.6.dfsg.1-3ubuntu4.2-5.2.10.dfsg.1-2ubuntu4-diff

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-09-22 Thread DarkNova
I have been analyzing the differences between my Jaunty server which has
the segmentation fault problem, and a Jaunty virtual machine which works
fine. I've determined the key difference:

The problem machine has package php5-mysql (version
5.2.6.dfsg.1-3ubuntu4.2) installed. To eliminate the segmentation fault,
I installed a different (apparently older) version of pdo and pdo_mysql
by doing sudo pecl install pdo_mysql which overwrote Ubuntu's
installed pdo and pdo_mysql libraries.

These modified libraries are found at /usr/lib/php5/20060613/pdo.so and
/usr/lib/php5/20060613/pdo_mysql.so.

Key file version differences:

pdo.c: BAD: 1.57.2.17.2.10.GOOD: 1.57.2.17
pdo_dbh.c: BAD: 1.82.2.31.2.22.GOOD: 1.82.2.30
pdo_sql_parser.c: BAD: 1.35.2.6.2.15 ...GOOD: 1.35.2.6
pdo_sql_parser.re: BAD: 1.28.2.4.2.12...GOOD: 1.28.2.4
pdo_sqlstate.c: BAD: 1.7.2.1.2.2..GOOD: 1.7.2.1
pdo_stmt.c: BAD: 1.118.2.38.2.34GOOD: 1.118.2.38
php_pdo_driver.h: BAD: 1.66.2.11.2.8...GOOD: 1.66.2.11
php_pdo.h: BAD: 1.7.2.5.2.4...GOOD: 1.7.2.5

mysql_driver.c: BAD: 1.59.2.13.2.6...GOOD: 1.59.2.13
mysql_statement.c: BAD: 1.48.2.14.2.7...GOOD: 1.48.2.14

So the file versions are very close so there wasn't much changed between
them. It looks like the newer version either had a bug introduced that
causes this segmentation fault, or it is also possible that the way the
Ubuntu package was compiled is causing a problem I suppose? I don't know
much about the internals of this library so is there someone who is
familiar with the internals of PDO comment? Thanks.

Nick


** Tags added: php5-mysql

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-09-22 Thread DarkNova
I just built the pdo.so and pdo_mysql.so library files from the Ubuntu
source package by doing apt-get -b source php5-mysql and then copying
those 2 .so files to /usr/lib/php5/20060613 and restarted Apache. The
segmentation fault happened in the same way. This seems to indicate that
there was a bug introduced with this newer version and the problem
probably wasn't with the way the package was compiled.

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-09-21 Thread DarkNova
I was able to get the test libmysqlclient15off package properly
installed and I tested with it and confirmed that that did fix the case
reported in bug 524366, BUT unfortunately it did not fix my bug as I've
reported here. It happens in the exact same way. So if it is actually
caused by the same bug as
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/343870 then that fix
doesn't work on my bug, otherwise it is a different bug. Since that bug
was related to a race condition that affected multiple cores, I disabled
all but one core using the maxcpus kernel boot option and the bug
still occurred.

** This bug is no longer a duplicate of bug 343870
   php-cli segmentation fault with mysql extension

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-09-18 Thread DarkNova
Hello Ondrej,

Thanks for the response. Yes, that line was from package php5-xdebug. I
had tried using that package to help track down the bug. I uninstalled
it and the crash still occurs in the same way, only the stacktrace now
doesn't include the xdebug part of course.

The bug is reproducible in that I created a simple test case which
causes the crash about 90% of the time. I'm not sure why the other 10%
of the time the crash does not occur.

Yesterday I created a Jaunty Server virtual machine and tried my test
and the crash did not occur under the virtual machine. I am currently
trying to figure out what, if any, differences there are between my
physical computer and the virtual machine, other than my physical
machine is running Jaunty (plain) and the other is Jaunty Server. All
the PHP and Apache packages are the same version. Thanks.

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 343870] Re: php-cli segmentation fault with mysql extension

2009-09-18 Thread DarkNova
I am experiencing this bug in Jaunty.

I would like to try installing the Debian upstream replacement for
libmysqlclient15off as referenced in the bug:

http://ftp.fr.debian.org/debian/pool/main/m/mysql-
dfsg-5.0/libmysqlclient15off_5.0.51a-24+lenny2+spu1_amd64.deb

I tried installing this with dpkg, but later Ubuntu's package manager
upgraded some packages and subsequently went on to delete mysql, apache,
and a bunch of packages that depend on mysql from my computer!
Apparently since the version number for the newly install
libmysqlclient15off was 5.0.51a-24+lenny2+spu1 and the current Ubuntu
version is 5.1.30really5.0.75-0ubuntu10.2 it thought it needed to remove
the one I installed and upgrade it. I'm not sure why it also deleted all
these other packages without telling me first.

Does anyone know how to properly install this version of
libmysqlclient15off so I can test to see if it fixes the bug without
messing up Ubuntu? Thanks.

-- 
php-cli segmentation fault with mysql extension
https://bugs.launchpad.net/bugs/343870
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 418220] Re: apache2 crashed with SIGSEGV in pdo_parse_params()

2009-08-24 Thread DarkNova

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/30744577/Dependencies.txt

** Attachment added: ProcMaps.txt
   http://launchpadlibrarian.net/30744578/ProcMaps.txt

** Attachment added: ProcStatus.txt
   http://launchpadlibrarian.net/30744579/ProcStatus.txt

** Attachment added: Stacktrace.txt
   http://launchpadlibrarian.net/30744580/Stacktrace.txt

** Attachment added: ThreadStacktrace.txt
   http://launchpadlibrarian.net/30744581/ThreadStacktrace.txt

-- 
apache2 crashed with SIGSEGV in pdo_parse_params()
https://bugs.launchpad.net/bugs/418220
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs