[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: Invalid message (magic 0x00000000).

From: Aleksey Tsalolikhin
Subject: Re: error: Invalid message (magic 0x00000000).
Date: Wed, 19 Oct 2016 06:08:53 -0700

As a workaround, try putting a sleep 1 between launching screens? 

On Tue, Oct 18, 2016 at 4:02 AM, Vegard Nossum <address@hidden> wrote:

When starting a lot of new screen windows in parallel, some windows
don't actually open, and I get some errors instead:

Invalid message (magic 0x00000000).
Invalid message (magic 0x736e6f69).

(the latter seems to be ASCII "snoi").

You can reproduce it e.g. this Python script:

import os
import shutil
import sys
import subprocess
import time

if not os.getenv('STY'):
   print >>sys.stderr, 'Need to run inside an existing screen session'

# create pids/
if os.path.exists('pids'):

expected_n = 100
for i in range(expected_n):
   subprocess.check_call(['screen', 'bash', '-c', 'echo 1 > pids/$$'])

# give the processes above some time to start

actual_n = len(os.listdir('pids'))

print "expected %u, got %u" % (expected_n, actual_n)

This will mostly print "expected 100, got 100", but sometimes it
prints "expected 100, got 99".

I've only found this earlier report (from 2005) of something similar:

They are also starting a lot of windows in parallel, i.e.: "I'm
writing a system that puts a lot of windows (about 12) into a screen

Are there any recent fixes or workarounds for this problem?



screen-users mailing list

Need CFEngine training?  Email address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]