Skip to content

Crash when quitting interactive mode #3880

@lavendthomas

Description

@lavendthomas

Expected Behavior

In interactive mode, calling quit or pressing Ctrl-D should quit the program without throwing errors.

Current Behavior

If no other command is entered between opening the database and calling quit, there is no problem.
If you enter any other command before calling quit, it crashes instead of exiting cleanly.

Example:

$ keepassxc-cli open database.kdbx
My Database> ls
My Database> quit
QObject::startTimer: Timers can only be used with threads started with QThread
fish : Task , 'keepassxc-cli open database.kdbx' ended with SIGSEGV signal

Note: the last line was translated from French:

fish : Tâche , 'keepassxc-cli open database.kdbx' terminée par le signal SIGSEGV (Erreur de frontière d'adresse)

Steps to Reproduce

  1. keepassxc-cli open database.kdbx
  2. My Database>ls or another command
  3. My Database>quit or press Ctrl-D

Debug Info

KeePassXC - Version 2.5.1
Revision: 0fd8836

Qt 5.12.5
Debugging mode is disabled.

Operating system: Fedora 31 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 5.3.11-300.fc31.x86_64

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:
libgcrypt 1.8.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions