drush.php crashed with SIGSEGV in malloc()
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
ProcVersionSign
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/
InterpreterPath: /usr/local/bin/php
PackageArchitec
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_
malloc () from /lib/x86_
sqlite3MallocRaw (n=<optimized out>, doMemManage=
sqlite3Malloc (n=232, doMemManage=
sqlite3WhereBegin (pParse=
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
Changed in php-sqlite3 (Ubuntu): | |
status: | New → Invalid |
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 64-linux- gnu/libc. so.6 <optimized out>) at /var/opt/ php-5.2. 17/ext/ pdo_sqlite/ sqlite/ src/util. c:590 <optimized out>) at /var/opt/ php-5.2. 17/ext/ pdo_sqlite/ sqlite/ src/util. c:658 0x7fffbe126900, pTabList=0x1f18790, pWhere=0x1f19740, ppOrderBy= 0x7fffbe126710) at /var/opt/ php-5.2. 17/ext/ pdo_sqlite/ sqlite/ src/where. c:1976 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
No symbol table info available.
#1 0x00007f2a9312a77d in malloc () from /lib/x86_
No symbol table info available.
#2 0x00000000005d370e in sqlite3MallocRaw (n=<optimized out>, doMemManage=
p = 0x0
#3 0x00000000005d3915 in sqlite3Malloc (n=232, doMemManage=
p = <optimized out>
#4 0x00000000005df099 in sqlite3WhereBegin (pParse=
[...]
#10 0x00000000005a2ad7 in sqlite_
[...]
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?