Uploaded image for project: 'Support'
  1. Support
  2. SUPPORT-292

Calling "ods-enforcer backup" crashes the enforcer

    XMLWordPrintable

    Details

    • Type: Support
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Debian sid

      Description

      When calling "ods-enforcer backup" without any further arguments, the enforcer daemon crashes. It looks like this was introduced inĀ 2.1.13 (which I can't select as version above).

      Looks like this happens due to ods_check_command() being called with argv[1] = NULL here: enforcer/src/hsmkey/backup_hsmkeys_cmd.c:232

      (gdb) bt
      #0 0x00007f029ce5e19c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
      #1 0x0000562dd75b0cb7 in ods_check_command (cmd=0x0, scmd=scmd@entry=0x562dd75b3b49 "prepare") at ../../common/cmdhandler.c:627
      #2 0x0000562dd756785a in run (context=<optimized out>, argc=<optimized out>, argv=0x7f02800069d0) at ../../../enforcer/src/hsmkey/backup_hsmkeys_cmd.c:232
      #3 0x0000562dd75b012d in cmdhandler_perform_command (context=<optimized out>, arg=0x7f028affc570 "backup") at ../../common/cmdhandler.c:198
      #4 extract_msg (buflen=1024, context=<optimized out>, exitcode=<synthetic pointer>, pos=<synthetic pointer>, buf=0x7f028affc980 "\002") at ../../common/cmdhandler.c:314
      #5 cmdhandler_handle_client_conversation (context=context@entry=0x7f0294002b80) at ../../common/cmdhandler.c:366
      #6 0x0000562dd75b04f6 in cmdhandler_accept_client (arg=0x7f0294002b80) at ../../common/cmdhandler.c:400
      #7 0x0000562dd75b0e49 in runthread (data=0x7f0294002bb0) at ../../common/janitor.c:318
      #8 0x00007f029cd733ec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
      #9 0x00007f029cdf3a4c in ?? () from /lib/x86_64-linux-gnu/libc.so.6

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            julian Julian Brost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: