Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QThread::start: Thread creation error (Operation not permitted)
Forum Updated to NodeBB v4.3 + New Features

QThread::start: Thread creation error (Operation not permitted)

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alexey Volkov
    wrote on last edited by Alexey Volkov
    #1

    Hi there!
    What can be wrong with the build, threads stopped working at all. What is in general wrong?

    Some more details:
    This simple code works fine development environment and in docker on my host

    QThread *thread = new QThread();
       QObject *runner = new QObject(nullptr);
        qInfo() << "Starting tests thread";
       QObject::connect(thread, &QThread::started, runner, [ thread ]() {
           qDebug() << "thread started" << thread;
       });
       thread->start();
    

    This is output i get:

    Starting tests thread
    thread started QThread(0x1608c00)

    But on the target machine the same build in docker fails:

    Starting tests thread
    QThread::start: Thread creation error (Operation not permitted)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alexey Volkov
      wrote on last edited by Alexey Volkov
      #2

      It was docker issue guys. Do not run fedora:latest container on Centos7 host. Downgrading to fedora:34 helped. I found similar issue here https://bugs.archlinux.org/task/69576.
      Important symptom - ldd myapp in the container returned "ldd: error: you do not have read permission for 'myapp'". And the threads did not start. While the previous images work well. So I checked what has changed except my code and dependencies, and the only thing was fedora:latest became 35.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved