Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-1262

Sending some extra parameter to daemon via TCP causes the daemon to crash

    XMLWordPrintable

Details

    • macOS
    • ebb7ac2c4 (dev), a45f4656f (3.2)
    • License server development 30

    Description

      Version: 

       

      Qt License Daemon (qtlicd) v3.2.0 Copyright (C) 2024 The Qt Company Ltd
      From revision: 7419e82c8d0a24fde084c3db827a1cc7d121f3ea
      Build date: 2024-08-26 

      Steps:

       

      1. Make sure the daemon is running and check on what port it is listening (lsof -n -iTCP -sTCP:LISTEN)
      2. Send the command directly to daemon over TCP (I used telnet for this, e.g.: telnet 127.0.0.1 53253)
      3. I send proper one:
        -pv 1.0.0 -o license -u lukasz -a qtcreator -a qtcreator -v 14.0.82 -i commercial -pid 33356

       and get the response to log in with Qt account. 

      4. I added an extra parameter '-a' at the end and it causes the daemon to close the connection (not quite sure if that's crash, but it would be good to check).

      -pv 1.0.0 -o license -u lukasz -a qtcreator -a qtcreator -v 14.0.82 -i commercial -pid 33356 -a 

      Also, I got this message in the qtlicd_log.txt:

      2024-09-04 19:02:58 [ERROR] [unixdaemon]: Unexpected status for stopped licenser: Caught exception: basic_string 

      Attachments

        Issue Links

          For Gerrit Dashboard: QLS-1262
          # Subject Branch Project Status CR V

          Activity

            People

              arttu.tarkiainen Arttu Tarkiainen
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes