<p dir="auto">I wanted to use this <code class="notranslate">--autoreload</code> option. But just after I add it I have:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A proj status
Error: No nodes replied within time constraint."><pre class="notranslate"><code class="notranslate">celery -A proj status
Error: No nodes replied within time constraint.
</code></pre></div>
<p dir="auto">Before that:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A proj status
celery@hostname: OK

1 node online."><pre class="notranslate"><code class="notranslate">celery -A proj status
celery@hostname: OK

1 node online.
</code></pre></div>
<p dir="auto">So now when I call <code class="notranslate">celery call tasks.taskname</code> RabbitMQ recieves this message (I can see this). But will only execute it when I restart Celery without <code class="notranslate">--autoreload</code></p>
<p dir="auto">Celery is started as <code class="notranslate">celery -A proj worker --loglevel=INFO --autoreload</code>. Used inside a Django 1.7 project.</p>
<p dir="auto">PS: worker.log has absolutely the same log when I run the command - tasks are discovered, and this message is printed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2014-09-10 18:46:27,230: WARNING/MainProcess] celery@hostname ready."><pre class="notranslate"><code class="notranslate">[2014-09-10 18:46:27,230: WARNING/MainProcess] celery@hostname ready.
</code></pre></div>
<p dir="auto">But no messages are delivered to this worker from RabbitMQ in case of <code class="notranslate">--autoreload</code>.</p>
<h1 dir="auto">Checklist</h1>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown &amp; rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>

<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment &amp; Settings</h2>

<p dir="auto"><strong>Celery version</strong>: 4.4.7 / 5.1.0<br>
<strong>Django version</strong>: 3.1.11<br>
<strong>Redis version</strong>: 3.2.12</p>

<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.9.0
            billiard:3.6.4.0 redis:3.5.3
platform -&gt; system:Linux arch:64bit, ELF
            kernel version:3.10.0-1160.6.1.el7.x86_64 imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:disabled"><pre class="notranslate"><code class="notranslate">software -&gt; celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.9.0
            billiard:3.6.4.0 redis:3.5.3
platform -&gt; system:Linux arch:64bit, ELF
            kernel version:3.10.0-1160.6.1.el7.x86_64 imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:disabled
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>

<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>

<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>

<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>

<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>

<h1 dir="auto">Actual Behavior</h1>

<p dir="auto">When i try to run many tasks (some of the tasks will make a grpc call), the main worker died cause by the segmentation fault after a few minutes.</p>
<p dir="auto">these is some trace log print by <code class="notranslate">strace  -e trace=signal,process,file,network</code>, it seems always be killed after recvfrom call.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="recvfrom(28, 0x312e050, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
recvfrom(21, &quot;*-1\r\n&quot;, 65536, 0, NULL, NULL) = 5
sendto(21, &quot;*6\r\n$5\r\nBRPOP\r\n$6\r\ncelery\r\n$9\r\nc&quot;..., 79, 0, NULL, 0) = 79
open(&quot;/proc/loadavg&quot;, O_RDONLY)         = 40
recvfrom(30, 0x31316a0, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
sendto(30, &quot;*3\r\n$7\r\nPUBLISH\r\n$29\r\n/14.celery&quot;..., 827, 0, NULL, 0) = 827
recvfrom(30, &quot;:2\r\n&quot;, 65536, 0, NULL, NULL) = 4
recvfrom(28, &quot;*4\r\n$8\r\npmessage\r\n$21\r\n/14.celer&quot;..., 65536, 0, NULL, NULL) = 856
recvfrom(28, 0x312e050, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
+++ killed by SIGSEGV +++"><pre class="notranslate"><code class="notranslate">recvfrom(28, 0x312e050, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
recvfrom(21, "*-1\r\n", 65536, 0, NULL, NULL) = 5
sendto(21, "*6\r\n$5\r\nBRPOP\r\n$6\r\ncelery\r\n$9\r\nc"..., 79, 0, NULL, 0) = 79
open("/proc/loadavg", O_RDONLY)         = 40
recvfrom(30, 0x31316a0, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
sendto(30, "*3\r\n$7\r\nPUBLISH\r\n$29\r\n/14.celery"..., 827, 0, NULL, 0) = 827
recvfrom(30, ":2\r\n", 65536, 0, NULL, NULL) = 4
recvfrom(28, "*4\r\n$8\r\npmessage\r\n$21\r\n/14.celer"..., 65536, 0, NULL, NULL) = 856
recvfrom(28, 0x312e050, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
+++ killed by SIGSEGV +++
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="recvfrom(31, &quot;*4\r\n$8\r\npmessage\r\n$21\r\n/14.celer&quot;..., 65536, 0, NULL, NULL) = 856
recvfrom(31, 0x2359040, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
recvfrom(21, &quot;*-1\r\n&quot;, 65536, 0, NULL, NULL) = 5
sendto(21, &quot;*6\r\n$5\r\nBRPOP\r\n$6\r\ncelery\r\n$9\r\nc&quot;..., 79, 0, NULL, 0) = 79
recvfrom(21, &quot;*-1\r\n&quot;, 65536, 0, NULL, NULL) = 5
sendto(21, &quot;*6\r\n$5\r\nBRPOP\r\n$6\r\ncelery\r\n$9\r\nc&quot;..., 79, 0, NULL, 0) = 79
open(&quot;/proc/loadavg&quot;, O_RDONLY)         = 40
recvfrom(30, 0x2359040, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
sendto(30, &quot;*3\r\n$7\r\nPUBLISH\r\n$29\r\n/14.celery&quot;..., 827, 0, NULL, 0) = 827
recvfrom(30, &quot;:1\r\n&quot;, 65536, 0, NULL, NULL) = 4
recvfrom(31, &quot;*4\r\n$8\r\npmessage\r\n$21\r\n/14.celer&quot;..., 65536, 0, NULL, NULL) = 856
recvfrom(31, 0x2359040, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
+++ killed by SIGSEGV +++"><pre class="notranslate"><code class="notranslate">recvfrom(31, "*4\r\n$8\r\npmessage\r\n$21\r\n/14.celer"..., 65536, 0, NULL, NULL) = 856
recvfrom(31, 0x2359040, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
recvfrom(21, "*-1\r\n", 65536, 0, NULL, NULL) = 5
sendto(21, "*6\r\n$5\r\nBRPOP\r\n$6\r\ncelery\r\n$9\r\nc"..., 79, 0, NULL, 0) = 79
recvfrom(21, "*-1\r\n", 65536, 0, NULL, NULL) = 5
sendto(21, "*6\r\n$5\r\nBRPOP\r\n$6\r\ncelery\r\n$9\r\nc"..., 79, 0, NULL, 0) = 79
open("/proc/loadavg", O_RDONLY)         = 40
recvfrom(30, 0x2359040, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
sendto(30, "*3\r\n$7\r\nPUBLISH\r\n$29\r\n/14.celery"..., 827, 0, NULL, 0) = 827
recvfrom(30, ":1\r\n", 65536, 0, NULL, NULL) = 4
recvfrom(31, "*4\r\n$8\r\npmessage\r\n$21\r\n/14.celer"..., 65536, 0, NULL, NULL) = 856
recvfrom(31, 0x2359040, 65536, 0, NULL, NULL) = -1 EAGAIN (Resources are temporarily unavailable)
+++ killed by SIGSEGV +++
</code></pre></div>
<p dir="auto">These outputted by the Python's faulthandler</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal Python error: Segmentation fault

Thread 0x00007fc6a0680740 (most recent call first):
  File &quot;/srv/www/venv/lib/python3.9/site-packages/kombu/utils/eventio.py&quot;, line 82 in poll
  File &quot;/srv/www/venv/lib/python3.9/site-packages/kombu/asynchronous/hub.py&quot;, line 305 in create_loop
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/worker/loops.py&quot;, line 81 in asynloop
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/worker/consumer/consumer.py&quot;, line 618 in start
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/bootsteps.py&quot;, line 116 in start
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/worker/consumer/consumer.py&quot;, line 326 in start
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/bootsteps.py&quot;, line 365 in start
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/bootsteps.py&quot;, line 116 in start
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/worker/worker.py&quot;, line 203 in start
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/bin/worker.py&quot;, line 346 in worker
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/bin/base.py&quot;, line 132 in caller
  File &quot;/srv/www/venv/lib/python3.9/site-packages/click/decorators.py&quot;, line 21 in new_func
  File &quot;/srv/www/venv/lib/python3.9/site-packages/click/core.py&quot;, line 610 in invoke
  File &quot;/srv/www/venv/lib/python3.9/site-packages/click/core.py&quot;, line 1066 in invoke
  File &quot;/srv/www/venv/lib/python3.9/site-packages/click/core.py&quot;, line 1259 in invoke
  File &quot;/srv/www/venv/lib/python3.9/site-packages/click/core.py&quot;, line 782 in main
  File &quot;/srv/www/venv/lib/python3.9/site-packages/click/core.py&quot;, line 829 in __call__
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/bin/celery.py&quot;, line 213 in main
  File &quot;/srv/www/venv/lib/python3.9/site-packages/celery/__main__.py&quot;, line 15 in main
  File &quot;/srv/www/venv/bin/celery&quot;, line 8 in &lt;module&gt;
"><pre class="notranslate"><code class="notranslate">Fatal Python error: Segmentation fault

Thread 0x00007fc6a0680740 (most recent call first):
  File "/srv/www/venv/lib/python3.9/site-packages/kombu/utils/eventio.py", line 82 in poll
  File "/srv/www/venv/lib/python3.9/site-packages/kombu/asynchronous/hub.py", line 305 in create_loop
  File "/srv/www/venv/lib/python3.9/site-packages/celery/worker/loops.py", line 81 in asynloop
  File "/srv/www/venv/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 618 in start
  File "/srv/www/venv/lib/python3.9/site-packages/celery/bootsteps.py", line 116 in start
  File "/srv/www/venv/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 326 in start
  File "/srv/www/venv/lib/python3.9/site-packages/celery/bootsteps.py", line 365 in start
  File "/srv/www/venv/lib/python3.9/site-packages/celery/bootsteps.py", line 116 in start
  File "/srv/www/venv/lib/python3.9/site-packages/celery/worker/worker.py", line 203 in start
  File "/srv/www/venv/lib/python3.9/site-packages/celery/bin/worker.py", line 346 in worker
  File "/srv/www/venv/lib/python3.9/site-packages/celery/bin/base.py", line 132 in caller
  File "/srv/www/venv/lib/python3.9/site-packages/click/decorators.py", line 21 in new_func
  File "/srv/www/venv/lib/python3.9/site-packages/click/core.py", line 610 in invoke
  File "/srv/www/venv/lib/python3.9/site-packages/click/core.py", line 1066 in invoke
  File "/srv/www/venv/lib/python3.9/site-packages/click/core.py", line 1259 in invoke
  File "/srv/www/venv/lib/python3.9/site-packages/click/core.py", line 782 in main
  File "/srv/www/venv/lib/python3.9/site-packages/click/core.py", line 829 in __call__
  File "/srv/www/venv/lib/python3.9/site-packages/celery/bin/celery.py", line 213 in main
  File "/srv/www/venv/lib/python3.9/site-packages/celery/__main__.py", line 15 in main
  File "/srv/www/venv/bin/celery", line 8 in &lt;module&gt;

</code></pre></div>