task crashed with SIGSEGV in fseek()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
task (Ubuntu) |
Fix Released
|
High
|
Bryce Harrington | ||
Natty |
Invalid
|
High
|
Bryce Harrington |
Bug Description
[Impact]
Crash that occurs when using task to track completed tasks associated with a project. Since that is a normal activity for users, this issue is important.
[Development Branch]
This crash was found and fixed in task 1.9.4 (see upstream bug #555). We are going to be shipping this version in oneiric. I've confirmed this bug does not reproduce on oneiric.
[Stable Branch]
Patch cherrypicked and added to task, uploaded to natty-proposed as 1.9.3-1ubuntu1.
[Test Case]
$ task log pro:india-dinner Prepare Indian food
Output should be as follows:
Logged task.
The project 'india-dinner' has changed. Project 'india-dinner' is 0% complete (0 of 0 tasks remaining).
Bugged version segfaults
[Regression Potential]
None really. The patch simply delays when the task database is unlocked for a couple statements, which is a very modest change. The patch has been included in 1.9.4 for some time without further issue (reviewed the 1.9.4 changelog for other project-related bugs and there have been no other fixes related to this).
[Original Report]
Running task as "task shell". Entered command
log +india +test project:
and it SEGV'd
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: task 1.9.3-1
ProcVersionSign
Uname: Linux 2.6.38-6-generic i686
Architecture: i386
Date: Sat Mar 12 13:03:53 2011
ExecutablePath: /usr/bin/task
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110302)
ProcCmdline: task shell
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
LANGUAGE=en_US:en
SegvAnalysis:
Segfault happened at: 0x21e8bd <fseek+29>: mov (%esi),%eax
PC (0x0021e8bd) ok
source "(%esi)" (0x00000000) not located in a known VMA region (needed readable region)!
destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: task
StacktraceTop:
fseek () from /lib/libc.so.6
?? ()
?? ()
?? ()
?? ()
Title: task crashed with SIGSEGV in fseek()
UpgradeStatus: Upgraded to natty on 2011-03-10 (1 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
Changed in task (Ubuntu): | |
assignee: | nobody → Bryce Harrington (bryce) |
status: | New → In Progress |
description: | updated |
description: | updated |
StacktraceTop:
fseek () from /lib/libc.so.6
TDB::loadCompleted (this=0x816f968, tasks=..., filter=...) at TDB.cpp:394
TDB::load (this=0x816f968, tasks=..., filter=...) at TDB.cpp:271
onProjectChange (task=..., scope=true) at report.cpp:2884
handleLog (outs=...) at command.cpp:203