Debian Bug report logs - #787638
php5-curl: php segfaults immediately with php5-curl installed

version graph

Package: libcurl3-gnutls; Maintainer for libcurl3-gnutls is Alessandro Ghedini <ghedo@debian.org>; Source for libcurl3-gnutls is src:curl (PTS, buildd, popcon).

Affects: php5-curl

Reported by: Nick Black <nick.black@sprezzatech.com>

Date: Wed, 3 Jun 2015 16:45:01 UTC

Severity: grave

Found in versions libcurl3-gnutls/7.42.1-2, php5/5.6.9+dfsg-1

Fixed in versions libcurl3-gnutls/7.42.1-2+b1, 7.42.1-2+b1

Done: Alessandro Ghedini <ghedo@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, dank@qemfd.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#787638; Package php5-curl. (Wed, 03 Jun 2015 16:45:05 GMT) (full text, mbox, link).


Acknowledgement sent to Nick Black <nick.black@sprezzatech.com>:
New Bug report received and forwarded. Copy sent to dank@qemfd.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 03 Jun 2015 16:45:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Nick Black <nick.black@sprezzatech.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-curl: php segfaults immediately with php5-curl installed
Date: Wed, 03 Jun 2015 09:41:35 -0700
Package: php5-curl
Version: 5.6.9+dfsg-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

This morning, I upgraded my unstable i386-on-x86_64 installation. This
pulled in new gnutls 3.3.15-5, and also gcc-5-base 5.1.1-9 and python3.4
(i doubt these last two are relevant). Full aptitude logs are below.
Following this upgrade, I started receiving notifications that php jobs
run from cron were failing. Indeed, running the "php" binary (linked
through alternatives to /usr/bin/php5) segfaulted. I ran an ltrace on
the binary, and determined it was segfaulting while dlopen()ing curl.so
from /usr/lib/php5/20131226/. I removed php5-curl, and the issue went away.

Reinstalling php5-curl reproduces the behavior immediately:

[vps](0) $ php
Segmentation fault
[vps](139) $ ltrace php 2>&1 | tail
strlen("/usr/lib/php5/20131226")                 = 22
memcpy(0xf505813c, "/usr/lib/php5/20131226", 22) = 0xf505813c
__ctype_b_loc()                                  = 0xf50946ac
memcpy(0xf5058152, "/", 1)                       = 0xf5058152
__ctype_b_loc()                                  = 0xf50946ac
strlen("curl.so")                                = 7
memcpy(0xf5058153, "curl.so", 7)                 = 0xf5058153
dlopen("/usr/lib/php5/20131226/curl.so", 266 <no return ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[vps](0) $ 

Again, this started following an update that directly affected no php
packages. Here's the aptitude logs:

==============================================
Aptitude 0.6.11: log report
Wed, Jun  3 2015 08:41:06 -0700

IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.

Will install 36 packages, and remove 0 packages.
5,082 kB of disk space will be used
===============================================================================
[INSTALL, DEPENDENCIES] libhogweed4:i386
[UPGRADE] gcc-5-base:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] gnupg-agent:i386 2.0.27-2 -> 2.0.28-1
[UPGRADE] gnupg2:i386 2.0.27-2 -> 2.0.28-1
[UPGRADE] gnutls-bin:i386 3.3.15-2 -> 3.3.15-5
[UPGRADE] lib64atomic1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] lib64cilkrts5:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] lib64gcc1:i386 1:5.1.1-8 -> 1:5.1.1-9
[UPGRADE] lib64gomp1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] lib64itm1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] lib64quadmath0:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] lib64stdc++6:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] lib64ubsan0:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libatomic1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libcilkrts5:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libgcc1:i386 1:5.1.1-8 -> 1:5.1.1-9
[UPGRADE] libgfortran3:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libgnutls-deb0-28:i386 3.3.15-2 -> 3.3.15-5
[UPGRADE] libgomp1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libitm1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libpython3.4-minimal:i386 3.4.3-6 -> 3.4.3-7
[UPGRADE] libpython3.4-stdlib:i386 3.4.3-6 -> 3.4.3-7
[UPGRADE] libquadmath0:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libstdc++6:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libubsan0:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32atomic1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32cilkrts5:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32gcc1:i386 1:5.1.1-8 -> 1:5.1.1-9
[UPGRADE] libx32gomp1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32itm1:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32quadmath0:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32stdc++6:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] libx32ubsan0:i386 5.1.1-8 -> 5.1.1-9
[UPGRADE] python3.4:i386 3.4.3-6 -> 3.4.3-7
[UPGRADE] python3.4-minimal:i386 3.4.3-6 -> 3.4.3-7
[UPGRADE] ufraw-batch:i386 0.20-2 -> 0.20-3
===============================================================================

Log complete.
==============================================

Note the upgrade of various core libraries, though not libc6. I am using
libcurl3-gnutls (as opposed to libcurl3-openssl), and figure the
libgnutls update might have broken things here.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 3.18.5-x86_64-linode52 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages php5-curl depends on:
ii  dpkg                           1.18.1
ii  libc6                          2.19-18
ii  libcurl3                       7.42.1-2
ii  php5-common [phpapi-20131226]  5.6.9+dfsg-1
ii  ucf                            3.0030

php5-curl recommends no packages.

php5-curl suggests no packages.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#787638; Package php5-curl. (Wed, 03 Jun 2015 17:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Nick Black <nick.black@sprezzatech.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 03 Jun 2015 17:54:03 GMT) (full text, mbox, link).


Message #10 received at 787638@bugs.debian.org (full text, mbox, reply):

From: Nick Black <nick.black@sprezzatech.com>
To: 787638@bugs.debian.org
Subject: Re: Bug#787638: Acknowledgement (php5-curl: php segfaults immediately with php5-curl installed)
Date: Wed, 3 Jun 2015 13:45:15 -0400
looks like this got resolved with the 7.42.1-2+b1 libcurl3-gnutls update
that just rolled down. i can verify this update fixed things for me.

-- 
nick black -=- http://www.nick-black.com
to make an apple pie from scratch, you need first invent a universe.



Reply sent to Thijs Kinkhorst <thijs@debian.org>:
You have taken responsibility. (Sun, 07 Jun 2015 13:15:06 GMT) (full text, mbox, link).


Notification sent to Nick Black <nick.black@sprezzatech.com>:
Bug acknowledged by developer. (Sun, 07 Jun 2015 13:15:07 GMT) (full text, mbox, link).


Message #15 received at 787638-done@bugs.debian.org (full text, mbox, reply):

From: Thijs Kinkhorst <thijs@debian.org>
To: 787638-done@bugs.debian.org
Subject: Re: [php-maint] Bug#787638: Acknowledgement (php5-curl: php segfaults immediately with php5-curl installed)
Date: Sun, 7 Jun 2015 15:13:50 +0200
Op woensdag 3 juni 2015 19:45:15 schreef Nick Black:
> looks like this got resolved with the 7.42.1-2+b1 libcurl3-gnutls update
> that just rolled down. i can verify this update fixed things for me.

Thanks, closing the bug.


Cheers,
Thijs



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#787638; Package php5-curl. (Sun, 07 Jun 2015 13:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 07 Jun 2015 13:30:03 GMT) (full text, mbox, link).


Message #20 received at 787638@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: Nick Black <nick.black@sprezzatech.com>, 787638@bugs.debian.org
Cc: Alessandro Ghedini <ghedo@debian.org>
Subject: Re: [php-maint] Bug#787638: Acknowledgement (php5-curl: php segfaults immediately with php5-curl installed)
Date: Sun, 07 Jun 2015 15:27:09 +0200
Control: reassign -1 libcurl3-gnutls
Control: affects -1 php5-curl
Control: found -1 libcurl3-gnutls/7.42.1-2
Control: fixed -1 libcurl3-gnutls/7.42.1-2+b1

Reassigning to libcurl3-gnutls for further investigation (if needed) by
src:curl maintainer.

Cheers,
Ondrej

On Wed, Jun 3, 2015, at 19:45, Nick Black wrote:
> looks like this got resolved with the 7.42.1-2+b1 libcurl3-gnutls update
> that just rolled down. i can verify this update fixed things for me.
> 
> -- 
> nick black -=- http://www.nick-black.com
> to make an apple pie from scratch, you need first invent a universe.
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Bug reassigned from package 'php5-curl' to 'libcurl3-gnutls'. Request was from Ondřej Surý <ondrej@sury.org> to 787638-submit@bugs.debian.org. (Sun, 07 Jun 2015 13:30:03 GMT) (full text, mbox, link).


No longer marked as found in versions php5/5.6.9+dfsg-1. Request was from Ondřej Surý <ondrej@sury.org> to 787638-submit@bugs.debian.org. (Sun, 07 Jun 2015 13:30:04 GMT) (full text, mbox, link).


Added indication that 787638 affects php5-curl Request was from Ondřej Surý <ondrej@sury.org> to 787638-submit@bugs.debian.org. (Sun, 07 Jun 2015 13:30:05 GMT) (full text, mbox, link).


Marked as found in versions libcurl3-gnutls/7.42.1-2 and reopened. Request was from Ondřej Surý <ondrej@sury.org> to 787638-submit@bugs.debian.org. (Sun, 07 Jun 2015 13:30:06 GMT) (full text, mbox, link).


Marked as fixed in versions libcurl3-gnutls/7.42.1-2+b1. Request was from Ondřej Surý <ondrej@sury.org> to 787638-submit@bugs.debian.org. (Sun, 07 Jun 2015 13:30:07 GMT) (full text, mbox, link).


Reply sent to Alessandro Ghedini <ghedo@debian.org>:
You have taken responsibility. (Sun, 07 Jun 2015 15:57:08 GMT) (full text, mbox, link).


Notification sent to Nick Black <nick.black@sprezzatech.com>:
Bug acknowledged by developer. (Sun, 07 Jun 2015 15:57:08 GMT) (full text, mbox, link).


Message #35 received at 787638-done@bugs.debian.org (full text, mbox, reply):

From: Alessandro Ghedini <ghedo@debian.org>
To: Ondřej Surý <ondrej@sury.org>
Cc: Nick Black <nick.black@sprezzatech.com>, 787638-done@bugs.debian.org
Subject: Re: [php-maint] Bug#787638: Acknowledgement (php5-curl: php segfaults immediately with php5-curl installed)
Date: Sun, 7 Jun 2015 17:52:40 +0200
[Message part 1 (text/plain, inline)]
Version: 7.42.1-2+b1

On dom, giu 07, 2015 at 03:27:09 +0200, Ondřej Surý wrote:
> Control: reassign -1 libcurl3-gnutls
> Control: affects -1 php5-curl
> Control: found -1 libcurl3-gnutls/7.42.1-2
> Control: fixed -1 libcurl3-gnutls/7.42.1-2+b1
> 
> Reassigning to libcurl3-gnutls for further investigation (if needed) by
> src:curl maintainer.

Properly closing this.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Alessandro Ghedini <ghedo@debian.org>:
Bug#787638; Package libcurl3-gnutls. (Fri, 26 Jun 2015 14:03:08 GMT) (full text, mbox, link).


Acknowledgement sent to Bruno Muller <bruno@inertiacreeps.net>:
Extra info received and forwarded to list. Copy sent to Alessandro Ghedini <ghedo@debian.org>. (Fri, 26 Jun 2015 14:03:09 GMT) (full text, mbox, link).


Message #40 received at 787638@bugs.debian.org (full text, mbox, reply):

From: Bruno Muller <bruno@inertiacreeps.net>
To: Debian Bug Tracking System <787638@bugs.debian.org>
Subject: Re: php5-curl: php segfaults immediately with php5-curl installed
Date: Fri, 26 Jun 2015 15:36:33 +0200
Package: php5-curl
Version: 5.6.9+dfsg-1
Followup-For: Bug #787638

Dear Maintainer,

I confirm this bug: I have exactly the same problem on this machine.

-- Package-specific info:
==== Additional PHP 5 information ====

++++ PHP 5 SAPI (php5query -S): ++++
apache2
cli
cgi

++++ PHP 5 Extensions (php5query -M -v): ++++
intl (Enabled for apache2 by maintainer script)
intl (Enabled for cli by maintainer script)
intl (Enabled for cgi by maintainer script)
readline (Enabled for apache2 by maintainer script)
readline (Enabled for cli by maintainer script)
readline (Enabled for cgi by maintainer script)
pdo_mysql (Enabled for apache2 by maintainer script)
pdo_mysql (Enabled for cli by maintainer script)
pdo_mysql (Enabled for cgi by maintainer script)
pdo_sqlite (Enabled for apache2 by maintainer script)
pdo_sqlite (Enabled for cli by maintainer script)
pdo_sqlite (Enabled for cgi by maintainer script)
mysql (Enabled for apache2 by maintainer script)
mysql (Enabled for cli by maintainer script)
mysql (Enabled for cgi by maintainer script)
mysqli (Enabled for apache2 by maintainer script)
mysqli (Enabled for cli by maintainer script)
mysqli (Enabled for cgi by maintainer script)
imagick (Enabled for apache2 by maintainer script)
imagick (Enabled for cli by maintainer script)
imagick (Enabled for cgi by maintainer script)
oauth (Enabled for apache2 by maintainer script)
oauth (Enabled for cli by maintainer script)
oauth (Enabled for cgi by maintainer script)
imap (Enabled for apache2 by maintainer script)
imap (Enabled for cli by maintainer script)
imap (Enabled for cgi by maintainer script)
pspell (Enabled for apache2 by maintainer script)
pspell (Enabled for cli by maintainer script)
pspell (Enabled for cgi by maintainer script)
curl (Enabled for apache2 by maintainer script)
curl (Enabled for cli by maintainer script)
curl (Enabled for cgi by maintainer script)
gd (Enabled for apache2 by maintainer script)
gd (Enabled for cli by maintainer script)
gd (Enabled for cgi by maintainer script)
mcrypt (Enabled for apache2 by maintainer script)
mcrypt (Enabled for cli by maintainer script)
mcrypt (Enabled for cgi by maintainer script)
pdo (Enabled for apache2 by maintainer script)
pdo (Enabled for cli by maintainer script)
pdo (Enabled for cgi by maintainer script)
apcu (Enabled for apache2 by maintainer script)
apcu (Enabled for cli by maintainer script)
apcu (Enabled for cgi by maintainer script)
json (Enabled for apache2 by maintainer script)
json (Enabled for cli by maintainer script)
json (Enabled for cgi by maintainer script)
opcache (Enabled for apache2 by maintainer script)
opcache (Enabled for cli by maintainer script)
opcache (Enabled for cgi by maintainer script)
sqlite3 (Enabled for apache2 by maintainer script)
sqlite3 (Enabled for cli by maintainer script)
sqlite3 (Enabled for cgi by maintainer script)
ldap (Enabled for apache2 by maintainer script)
ldap (Enabled for cli by maintainer script)
ldap (Enabled for cgi by maintainer script)

++++ Configuration files: ++++
**** /etc/php5/mods-available/curl.ini ****
extension=curl.so


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 4.0.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages php5-curl depends on:
ii  libc6                          2.19-18
ii  libcurl3                       7.43.0-1
ii  php5-common [phpapi-20131226]  5.6.9+dfsg-1
ii  ucf                            3.0030

php5-curl recommends no packages.

php5-curl suggests no packages.

Versions of packages php5-common depends on:
ii  libc6   2.19-18
ii  lsof    4.86+dfsg-1
ii  psmisc  22.21-2
ii  sed     4.2.2-6
ii  ucf     3.0030

Versions of packages php5-common suggests:
ii  php5-apcu [php5-user-cache]  4.0.7-1

Versions of packages php5-cli depends on:
ii  libbz2-1.0        1.0.6-8
ii  libc6             2.19-18
ii  libcomerr2        1.42.13-1
ii  libdb5.3          5.3.28-9
ii  libedit2          3.1-20150325-1
ii  libgssapi-krb5-2  1.13.2+dfsg-2
ii  libk5crypto3      1.13.2+dfsg-2
ii  libkrb5-3         1.13.2+dfsg-2
ii  libmagic1         1:5.22+15-2
ii  libonig2          5.9.6-1
ii  libpcre3          2:8.35-6
ii  libqdbm14         1.8.78-5+b3
ii  libssl1.0.0       1.0.2c-1
ii  libxml2           2.9.2+dfsg1-3
ii  mime-support      3.58
ii  php5-common       5.6.9+dfsg-1
ii  php5-json         1.3.6-1
ii  tzdata            2015e-1
ii  ucf               3.0030
ii  zlib1g            1:1.2.8.dfsg-2+b1

Versions of packages php5-cli recommends:
ii  php5-readline  5.6.9+dfsg-1

Versions of packages php5-cli suggests:
ii  php-pear  5.6.9+dfsg-1

Versions of packages libapache2-mod-php5 depends on:
ii  apache2                             2.4.12-2
ii  apache2-bin [apache2-api-20120211]  2.4.12-2
ii  libbz2-1.0                          1.0.6-8
ii  libc6                               2.19-18
ii  libcomerr2                          1.42.13-1
ii  libdb5.3                            5.3.28-9
ii  libgssapi-krb5-2                    1.13.2+dfsg-2
ii  libk5crypto3                        1.13.2+dfsg-2
ii  libkrb5-3                           1.13.2+dfsg-2
ii  libmagic1                           1:5.22+15-2
ii  libonig2                            5.9.6-1
ii  libpcre3                            2:8.35-6
ii  libqdbm14                           1.8.78-5+b3
ii  libssl1.0.0                         1.0.2c-1
ii  libstdc++6                          5.1.1-12
ii  libxml2                             2.9.2+dfsg1-3
ii  mime-support                        3.58
ii  php5-cli                            5.6.9+dfsg-1
ii  php5-common                         5.6.9+dfsg-1
ii  php5-json                           1.3.6-1
ii  tzdata                              2015e-1
ii  ucf                                 3.0030
ii  zlib1g                              1:1.2.8.dfsg-2+b1

Versions of packages libapache2-mod-php5 suggests:
ii  php-pear  5.6.9+dfsg-1

Versions of packages php5-cgi depends on:
ii  libbz2-1.0        1.0.6-8
ii  libc6             2.19-18
ii  libcomerr2        1.42.13-1
ii  libdb5.3          5.3.28-9
ii  libgssapi-krb5-2  1.13.2+dfsg-2
ii  libk5crypto3      1.13.2+dfsg-2
ii  libkrb5-3         1.13.2+dfsg-2
ii  libmagic1         1:5.22+15-2
ii  libonig2          5.9.6-1
ii  libpcre3          2:8.35-6
ii  libqdbm14         1.8.78-5+b3
ii  libssl1.0.0       1.0.2c-1
ii  libxml2           2.9.2+dfsg1-3
ii  mime-support      3.58
ii  php5-cli          5.6.9+dfsg-1
ii  php5-common       5.6.9+dfsg-1
ii  php5-json         1.3.6-1
ii  tzdata            2015e-1
ii  ucf               3.0030
ii  zlib1g            1:1.2.8.dfsg-2+b1

Versions of packages php5-cgi suggests:
ii  php-pear  5.6.9+dfsg-1

-- no debconf information



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 25 Jul 2015 07:28:16 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 00:25:16 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.