GothenburgBitFactory / taskwarrior

Taskwarrior - Command line Task Management
https://taskwarrior.org
MIT License
4.29k stars 285 forks source link

Segmantation fault on every command #2054

Closed MarcelPa closed 6 years ago

MarcelPa commented 6 years ago

I got a problem with taskwarrior recently, it will segfault on every command I try. I had a fairly similar problem some days ago with Electron apps (namely camunda-modeler), which has been resolved with the most recent glibc update. I am on Arch Linux: Linux mi0061n 4.14.62-1-lts #1 SMP Thu Aug 9 20:50:08 CEST 2018 x86_64 GNU/Linux

I do not fully understand the backtrace, hence I have no idea whether this issue is related to taskwarrior directly. I tried to build the development version (2.6.0 branch), which worked for showing / adding / deleting tasks, but not for syncing. Syncing would also segfault, referring to an error with gnutls libraries (as far as I understood the backtrace).

ddeimeke commented 6 years ago

Do you see the same issues with Taskwarrior 2.5.1, which is the recent stable version?

In my opinion it is a race condition, maybe GNUTLS is not updated with the most recent glibc?

MarcelPa commented 6 years ago

The issue I described occur on Taskwarrior 2.5.1, the version that I get when I install it using pacman on Archlinux from the (official) community repositories.

After digging around for some time now, I figured out to check the bugtracker from the package in Archlinux, I found this bug: https://bugs.archlinux.org/task/59649?project=5&string=task

Apperently, the p11-kit version that is within the testing repositories right now (which I were using) has something to do with it. Long story short, I disabled the testing repositories, which downgraded my p11-kit version to 0.23.12-1, taskwarrior works like a charm now.

I should have checked the package bugtracker earlier, I am sorry. But maybe my solution helps someone else or raises awareness on a problem to come.

Thanks for the quick response @ddeimeke :-)

jord-bh commented 6 years ago

Thanks @MarcelPa, I hit the same problem and was only able to find the reason due to this issue.