liszt icon indicating copy to clipboard operation
liszt copied to clipboard

Seg Fault on note create or list

Open kmluce opened this issue 4 years ago • 6 comments

🐛 Describe the bug

I attempted to install and use lst, but it seg faults immediately on the -l or -a options. I've reproduced this on a mac running Catalina and one running Mojave, and when installed via brew and when installed via downloaded package.

⚠️ Current behavior

$ lst Liszt is an open-source note-taking software designed for personal use.

If you need help in general, type 'lst -help' or 'lst -h' If you need help with a specific command, type 'lst -h <name_of_command>', such as for help with adding memories ('lst -h -') or removing a note ('lst -h -rm') To view your version of Liszt, type 'lst -version' or 'lst -v'

Liszt uses the GNU General Public License v3, so you can edit, distribute, and otherwise meddle with any of the source code. The only thing you can't do is take this software and make it closed-source and try to sell it. Liszt was designed to be free for everyone, forever.

Checkout Transcendental Etudes by Franz Liszt! $ lst -l Segmentation fault: 11 $ lst -a lst error: command '-a' not recognized. Please try again. (hint: did you include the necessary arguments for this command? Run 'lst -h' to find out) $ lst -a foo Segmentation fault: 11

$ lldb lst -- -a foo (lldb) target create "lst" Current executable set to 'lst' (x86_64). (lldb) settings set -- target.run-args "-a" "foo" (lldb) r Process 76140 launched: '/usr/local/bin/lst' (x86_64) Process 76140 stopped

  • thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00007fff6e1bee52 libsystem_platform.dylib_platform_strlen + 18 libsystem_platform.dylib_platform_strlen: -> 0x7fff6e1bee52 <+18>: pcmpeqb (%rdi), %xmm0 0x7fff6e1bee56 <+22>: pmovmskb %xmm0, %esi 0x7fff6e1bee5a <+26>: andq $0xf, %rcx 0x7fff6e1bee5e <+30>: orq $-0x1, %rax Target 0: (lst) stopped.

✅ Expected behavior

I expected when I run lst -l, it will show an empty list of notes. And then when I run lst -a foo, it will add a note called foo.

💣 Steps to reproduce

$ brew tap liszt-music/liszt $ brew install lst $ lst -a

or alternatively: select pkg file in github, download pkg, open pkg $ /Library/Liszt/1.1.8/lst -a foo

📷 Screenshots

📱 Tech info

Darwin kathleen 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64

and

$ uname -a Darwin mudita 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 18 20:50:10 PDT 2020; root:xnu-4903.278.43~1/RELEASE_X86_64 x86_64

kmluce avatar Oct 01 '20 21:10 kmluce