GothenburgBitFactory / GothenburgBitFactory/timewarrior
Segfaults: Can't modify entry left running overnight/can't continue using ID
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 117
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 5
Description
I recently brew installed timewarrior on macOS sonoma.
```
timew 1.7.1
Platform: Darwin
Compiler:
Version: Apple LLVM 15.0.0 (clang-1500.1.0.2.5)
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++17
Build Features
Built: Jan 16 2024 12:35:02
CMake: 3.28.1
Build type: Release
```
Redacted output of the situation looks like this:
```
$ timew summary :week
Wk Date Day Tags Start End Time Total
...
W20 2024-05-16 Thu @3 techdebt, ticket 9:25:00 10:01:40 0:36:40
@2 meetings 16:30:00 0:00:00 7:30:00 12:47:21
W20 2024-05-17 Fri @2 meetings 0:00:00 9:15:00 9:15:00
@1 ticket 9:15:00 - 1:22:19 10:37:19
```
timew help modify suggests I can fix it with the following command, but I get
```
$ timew modify end @2 2024-05-16T17:00:00
[1] 90947 segmentation fault timew modify end @2 2024-05-16T17:00:00
```
Also tried
```
$ timew shorten @2 30min
[1] 90963 segmentation fault timew shorten @2 30min
```
Also was recommended to edit a *.data file directly; however, I am just now finding that I can't locate where those files are stored.
Little help???
Contributor guide
Research direction
Reproduce the crash on macOS with the reported `timew modify end @2 2024-05-16T17:00:00` and `timew shorten @2 30min` commands using the supplied overnight entries. Start by tracing the failing command path and determine where the relevant `.data` files are stored. Done means both commands handle the entry without a segmentation fault.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100