[Vm-dev] Headless Image: a Riddle

Mircea Filip Lungu lungu at iam.unibe.ch
Wed Sep 21 20:19:47 UTC 2011


Hi Levente!

Thanks! I couldn't see anything wrong with the attached log though :(
Is there any hint that you can recognize?

Thanks,
M.

On Wed, Sep 21, 2011 at 3:27 PM, Levente Uzonyi <leves at elte.hu> wrote:
>
> On Wed, 21 Sep 2011, Igor Stasenko wrote:
>
>>
>> On 21 September 2011 14:22, Mircea Filip Lungu <mircea.lungu at gmail.com>
>> wrote:
>>>
>>> Here is a quick riddle for you:
>>>
>>> The Context:
>>> - os: debian
>>> - vm: cog
>>> - image: the image from the pier site, in which I updated to the
>>> latest version of the pier packages. Pier runs on port 8087.
>>>
>>> If I run the following line:
>>>
>>> ~/coglinux/bin/squeak x.image
>>>
>>> the image starts with no error and port 8087 is open.
>>>
>>> If I run the following line:
>>>
>>> ~/coglinux/bin/squeak -nodisplay -nosound x.image
>>>
>>> the image just blocks and the port 8087 is not open.
>>>
>>> do you have any idea what could be the reason? I tried with all the
>>> possible parameter combinations: (-headless, -vm-display-none)
>>>
>>
>> If pier image is pharo based, which starting from version 1.3
>> introducing a logic around headless mode.
>> It could be that something wrong there.
>> But actually, it was introduced to prevent the situations as you
>> describing (just hanging and doing nothing),
>> so i cannot tell, what exactly may be wrong there. But most probably
>> it is something wrong with startup code,
>> which might rely on having UI, which is not there in headless mode.
>
> It's pretty likely that the issue is with Pharo's non-interactive mode vs
> Pier. Since you're using Cog, you can easily find out where the problem is,
> by using kill -USR1 <pid> which prints the content of all stacks to stdout.
>
>
> Levente
>
>>
>>> Thanks,
>>> M.
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>>
>



-- 
Mircea Lungu
Researcher
Software Composition Group
University of Bern
http://lungu.org/mircea
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pier-stacks.log
Type: application/octet-stream
Size: 9008 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20110921/f03baea2/pier-stacks.obj


More information about the Vm-dev mailing list