** Description changed:

+ [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:/tmp/x$ echo "data.location=/tmp/x/.task" > .taskrc
  | james@ornery:/tmp/x$ task rc:.taskrc shell
  | 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    
+ | 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-0ubuntu2
  ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
  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-256color-bce
-  PATH=(custom, no user)
-  LANG=en_GB.UTF-8
-  LANGUAGE=en_GB:en
+  SHELL=/bin/bash
+  TERM=screen-256color-bce
+  PATH=(custom, no user)
+  LANG=en_GB.UTF-8
+  LANGUAGE=en_GB:en
  SegvAnalysis:
-  Segfault happened at: 0x4256ff <_ZN7Context8dispatchERSs+575>:       mov    
(%rdi),%rax
-  PC (0x004256ff) ok
-  source "(%rdi)" (0x00000000) not located in a known VMA region (needed 
readable region)!
-  destination "%rax" ok
+  Segfault happened at: 0x4256ff <_ZN7Context8dispatchERSs+575>:       mov    
(%rdi),%rax
+  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::dispatch(std::string&) ()
-  Context::run() ()
-  CmdShell::execute(std::string&) ()
-  Context::dispatch(std::string&) ()
-  Context::run() ()
+  Context::dispatch(std::string&) ()
+  Context::run() ()
+  CmdShell::execute(std::string&) ()
+  Context::dispatch(std::string&) ()
+  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

** Changed in: task (Ubuntu Precise)
       Status: New => Fix Committed

** Changed in: task (Ubuntu Precise)
   Importance: Undecided => High

** Changed in: task (Ubuntu Precise)
     Assignee: (unassigned) => Bryce Harrington (bryce)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/980093

Title:
  task crashed with SIGSEGV in Context::dispatch()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/task/+bug/980093/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to