drush.php crashed with SIGSEGV in malloc()

Bug #862771 reported by aristath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
drush (Ubuntu)
Invalid
Undecided
Unassigned
php-sqlite3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

no idea why

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: drush 4.4-2
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu2
Architecture: amd64
Date: Thu Sep 29 23:54:17 2011
ExecutablePath: /usr/share/drush/drush.php
InterpreterPath: /usr/local/bin/php
PackageArchitecture: all
ProcCmdline: php /usr/bin/drush dl backup_migrate
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.utf8
 LANGUAGE=en_US:en
SegvAnalysis:
 Segfault happened at: 0x7f2a93127e13: mov %rax,0x28(%rsp)
 PC (0x7f2a93127e13) ok
 source "%rax" ok
 destination "0x28(%rsp)" (0x7fffbe125ff8) not located in a known VMA region (needed writable region)!
 Stack memory exhausted (SP below stack segment)
SegvReason: writing unknown VMA
Signal: 11
SourcePackage: drush
StacktraceTop:
 ?? () from /lib/x86_64-linux-gnu/libc.so.6
 malloc () from /lib/x86_64-linux-gnu/libc.so.6
 sqlite3MallocRaw (n=<optimized out>, doMemManage=<optimized out>) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite/src/util.c:590
 sqlite3Malloc (n=232, doMemManage=<optimized out>) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite/src/util.c:658
 sqlite3WhereBegin (pParse=0x7fffbe126900, pTabList=0x1f18790, pWhere=0x1f19740, ppOrderBy=0x7fffbe126710) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite/src/where.c:1976
Title: drush.php crashed with SIGSEGV in malloc()
UpgradeStatus: Upgraded to oneiric on 2011-09-29 (0 days ago)
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin plugdev sambashare tape vboxusers video

Revision history for this message
aristath (aristath) wrote :
Revision history for this message
anarcat (anarcat) wrote :

I think the problem lies more within the PHP sqlite extension, if not sqlite itself - no PHP script should be able to crash the PHP interpreter like this.

We can see in the backtrace that Drush is attempting a totally legitimate SQL request - this should be failing:

#0 0x00007f2a93127e13 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f2a9312a77d in malloc () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2 0x00000000005d370e in sqlite3MallocRaw (n=<optimized out>, doMemManage=<optimized out>) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite/src/util.c:590
        p = 0x0
#3 0x00000000005d3915 in sqlite3Malloc (n=232, doMemManage=<optimized out>) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite/src/util.c:658
        p = <optimized out>
#4 0x00000000005df099 in sqlite3WhereBegin (pParse=0x7fffbe126900, pTabList=0x1f18790, pWhere=0x1f19740, ppOrderBy=0x7fffbe126710) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite/src/where.c:1976
[...]
#10 0x00000000005a2ad7 in sqlite_handle_preparer (dbh=0x1e4f0d0, sql=0x2bc20f0 "SELECT cid, data, created, expire, serialized FROM cache_bootstrap WHERE cid IN (:cids_0)", sql_len=89, stmt=<optimized out>, driver_options=<optimized out>) at /var/opt/php-5.2.17/ext/pdo_sqlite/sqlite_driver.c:175
[...]

Also - the backtrace seems weird to me, as it points to PHP 5.2.17 source code while the dependencies file you have included above says you are running 5.3.6 - can you explain this discrepency?

affects: sqlite → php-sqlite3 (Ubuntu)
Changed in drush (Ubuntu):
status: New → Invalid
Revision history for this message
aristath (aristath) wrote :

the mistake was mixed mariadb and mysql sources....

anarcat (anarcat)
Changed in php-sqlite3 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.