task crashed with SIGSEGV in Context::dispatch()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
task (Ubuntu) |
Fix Released
|
High
|
Bryce Harrington | ||
Precise |
Fix Released
|
High
|
Bryce Harrington |
Bug Description
[Impact]
task crashes when doing `task edit` inside task shell.
[Development Fix]
The crash was fixed upstream. This fix has been backported to the 2.0.0 version and uploaded to quantal
[Stable Fix]
Since we're including essentially the same version of task in precise and quantal, the same patch can be included in quantal.
[Test Case]
How to reproduce:
| james@ornery:$ mkdir /tmp/x; cd /tmp/x
| james@ornery:
| james@ornery:
| task 2.0.0 shell
|
| Enter any task command (such as 'list'), or hit 'Enter'.
| There is no need to include the 'task' command itself.
| Enter 'quit' (or 'bye', 'exit') to end the session.
|
| task> add foo
| Using alternate .taskrc file .taskrc
| Created task 1.
| task> 1 edit
[ just quit the editor at this point ]
| Editing complete.
| No edits were detected.
| Using alternate .taskrc file .taskrc
| task> next
| A configuration file could not be found in .
|
| Would you like a sample .taskrc created, so taskwarrior can proceed? (yes/no) no
| Using alternate .taskrc file .taskrc
| Cannot proceed without rc file.
| Segmentation fault (core dumped)
Using a fully qualified path as the argument to 'rc' works around this
crash but breaks my use case, i.e. being able to cd into an arbitrary
directory and run a 't' alias which is 'task rc:.taskrc'.
[Regression Potential]
None expected, but the change includes modifications to pointers and thus things to watch for include segfaults and memory leaks. This fix has been present upstream for a while now without incident.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: task 2.0.0.release-
ProcVersionSign
Uname: Linux 3.2.0-22-generic x86_64
ApportVersion: 2.0.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Thu Apr 12 18:21:35 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/task
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcCmdline: task rc:.taskrc shell
ProcEnviron:
SHELL=/bin/bash
TERM=screen-
PATH=(custom, no user)
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
SegvAnalysis:
Segfault happened at: 0x4256ff <_ZN7Context8di
PC (0x004256ff) ok
source "(%rdi)" (0x00000000) not located in a known VMA region (needed readable region)!
destination "%rax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: task
StacktraceTop:
Context:
Context::run() ()
CmdShell:
Context:
Context::run() ()
Title: task crashed with SIGSEGV in Context::dispatch()
UpgradeStatus: Upgraded to precise on 2012-01-09 (93 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
visibility: | private → public |
tags: | removed: need-amd64-retrace |
Changed in task (Ubuntu): | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in task (Ubuntu Precise): | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Bryce Harrington (bryce) |
I've deleted the core dump as it contained private data.