Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-10362

QtCreator crashes when trying to set the Android toolchain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • Qt Creator 3.0.0-rc1
    • Qt Creator 3.0.0-rc1
    • Android Support
    • None
    • Linux x86_64
    • 6bd08800d78178334e706037749144fb9a1f6977

      Using the Android installer package from

      I get the following segfault (see strace below):

      stat("/opt/android/sdk/platform-tools/adb", {st_mode=S_IFREG|0755, st_size=1226659, ...}) = 0
      stat("/opt/android/sdk//tools/android", {st_mode=S_IFREG|0755, st_size=3498, ...}) = 0
      stat("/opt/android/sdk//tools/emulator", {st_mode=S_IFREG|0755, st_size=33435, ...}) = 0
      pipe2([16, 18], O_CLOEXEC)              = 0
      pipe2([23, 28], O_CLOEXEC)              = 0
      pipe2([29, 71], O_CLOEXEC)              = 0
      pipe2([72, 73], O_CLOEXEC)              = 0
      pipe2([74, 75], O_CLOEXEC)              = 0
      clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7ffd2736da10) = 18253
      fcntl(74, F_GETFL)                      = 0 (flags O_RDONLY)
      fcntl(74, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
      close(73)                               = 0
      close(16)                               = 0
      fcntl(18, F_GETFL)                      = 0x1 (flags O_WRONLY)
      fcntl(18, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
      close(28)                               = 0
      fcntl(23, F_GETFL)                      = 0 (flags O_RDONLY)
      fcntl(23, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
      close(71)                               = 0
      fcntl(29, F_GETFL)                      = 0 (flags O_RDONLY)
      fcntl(29, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
      select(73, [72], NULL, NULL, NULL)      = 1 (in [72])
      read(72, "", 1024)                      = 0
      close(72)                               = 0
      select(75, [23 29 74], [], NULL, NULL)  = 1 (in [23])
      ioctl(23, FIONREAD, [159])              = 0
      read(23, "Available Android Virtual Device"..., 159) = 159
      select(75, [23 29 74], [], NULL, NULL)  = 1 (in [23])
      ioctl(23, FIONREAD, [79])               = 0
      read(23, "   Error: Unknown target 'androi"..., 79) = 79
      select(75, [23 29 74], [], NULL, NULL)  = 2 (in [23 29])
      --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18253, si_status=0, si_utime=21, si_stime=1} ---
      write(6, "\0", 1)                       = 1
      rt_sigreturn()                          = 2
      ioctl(23, FIONREAD, [0])                = 0
      close(23)                               = 0
      ioctl(29, FIONREAD, [0])                = 0
      close(29)                               = 0
      select(75, [74], [], NULL, NULL)        = 1 (in [74])
      read(74, "\0", 1)                       = 1
      wait4(18253, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 18253
      ioctl(-1, FIONREAD, [0])                = -1 EBADF (Bad file descriptor)
      ioctl(-1, FIONREAD, [0])                = -1 EBADF (Bad file descriptor)
      close(18)                               = 0
      close(75)                               = 0
      close(74)                               = 0
      poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLIN|POLLOUT}])
      read(3, "\5\0014\7\24\272\305\5i\1\0\0H\1\0\4\0\0\0\0g\0\366\1`\0\224\1\0\1\1\0"..., 4096) = 64
      writev(3, [{"&\0\2\0i\1\0\0", 8}], 1)   = 8
      poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
      read(3, "\1\0015\7\0\0\0\0i\1\0\0\315\246\363\1g\0\366\1g\0\366\1\0\0\0\0\0\0\0\0", 4096) = 32
      read(3, 0x714e84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
      read(3, 0x714e84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
      read(3, 0x714e84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
      read(3, 0x714e84, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
      poll([{fd=4, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=20, events=POLLIN}, {fd=3, events=POLLIN}], 7, 0) = 0 (Timeout)
      poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
      writev(3, [{"+\0\1\0", 4}], 1)          = 4
      poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
      read(3, "\1\0016\7\0\0\0\0H\1\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
      --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
      +++ killed by SIGSEGV +++
      Segmentation fault
      

        For Gerrit Dashboard: QTCREATORBUG-10362
        # Subject Branch Project Status CR V

            dt Daniel Teske
            seahumad [BB] Sergio Ahumada (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes