[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vbox-dev
Subject:    Re: [vbox-dev] Guests abort when resizing
From:       Perry Halbert <phalbert () cox ! net>
Date:       2012-07-25 16:21:32
Message-ID: 50101D0C.1050506 () cox ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Yes built on the same system exactly and run from the same.  I did test 
again on the VT-x enabled host and it aborts as well.

Oh well, back to vrde I guess.  It seems weird that this just started a 
week or so ago.  If I find something I'll let you know.

Thanks




On 07/25/2012 10:50 AM, Klaus Espenlaub wrote:
> On 25.07.2012 16:21, Perry Halbert wrote:
>> gdb shows:
>>
>> Program terminated with signal 11, Segmentation fault.
>> #0 0x00007f717ea0f4e2 in VNCServerImpl::VRDEUpdate
>> (hServer=0x7f7178002bc0, uScreenId=<optimized out>,
>> pvUpdate=0x7f7153fe0338, cbUpdate=<optimized out>) at
>> /trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp:457
> The crash is in the code which converts between RGB and BGR color order
> when updating a rectangle. So either the buffer pointers are busted or
> it incorrectly copies more data than it should.
>
>> libvncserver0 = 0.9.8.2
> Hope that you either built the package on the same system, or on a
> system which has exactly the same version. The data structures for the
> VNC library change occasionally, and they're not particularly good with
> symbol versioning which means that the application will link fine
> against the .so file, but later crash because the calling code assumes a
> different data layout than the library.
>
>> Dump is over 200MB. Needless to say this is going to take sometime for
>> me to figure out. I can ftp it to appsdev if you like.
> The problem with such cores for custom built packages is that we'd need
> the matching package, debug info and information about the OS version,
> bitness, special packages and so on. Otherwise gdb would most likely say
> that it can't make sense out of the core.
>
> Klaus
>
>>
>>
>>
>> On 07/25/2012 07:00 AM, Klaus Espenlaub wrote:
>>> On 24.07.2012 03:12, Perry Halbert wrote:
>>>> Update. I turned off the remote display and this solved the issue.
>>>> I use VNC and build the extension pack which has been working really well.
>>>> So is there a way to get this back to operational status or do I need to
>>>> switch back to VRDP?
>>> My suspicion is that the VM process crashes... can you enable core dumps
>>> to see if this hypothesis is right, or run the VM process directly in
>>> gdb? You build everything yourself, so it shouldn't be a problem to have
>>> the debug info available. Could be that your libvncserver is newer and
>>> has a slightly incompatible API somewhere.
>>>
>>> I've tried a similar setup (VBox trunk, matching GA, VNC enabled, VT-x
>>> disabled), but I couldn't get any crashes. Used a different guest OS and
>>> a different linux distro on the host, but this shouldn't really have a
>>> significant influence. Tried with and without a VNC viewer connected.
>>>
>>> I guess that you run the VM in the GUI, because I wasn't able to find a
>>> VNC viewer which would trigger resizes when its window is resized.
>>>
>>> Any obvious patterns for the resize resolution (we removed a "multiple
>>> of 4" restriction for the horizontal resolution recently) which causes
>>> crashes? Does it ever survive a resize?
>>>
>>> Klaus
>>>
>>>> On 07/23/2012 06:27 PM, Perry Halbert wrote:
>>>>> Strange issue this time.
>>>>>
>>>>> Latest batch of builds, not sure exactly when, but within the last
>>>>> week. When resizing the guest (mouse click drag) it aborts. Nothing in
>>>>> the guests log file (no shut down, resize information, or reason it
>>>>> just stops recording) or syslog of the guest. Just like you pulled the
>>>>> plug. Only indication is the main manager shows aborted.
>>>>>
>>>>> Host Ubuntu 12.04 x86_64 (no VT-x)
>>>>> Guest Ubuntu 12.04 X86_32 with PAE
>>>>>
>>>>> Everything else works good, including all new features, well except it
>>>>> is really slow and has been for some time, but usable to test with.
>>>>>
>>>>> I increased the vRAM to 64MB from 12MB but that does not seem to be
>>>>> the issue.
>>>>> I removed Version matching GAs and installed 4.1.18, but no change so
>>>>> I don't think it is the GAs.
>>>>> Turned off 3D so that is not the issue.
>>>>>
>>>>> Note: I do not see this on a matching Ubuntu host with VT-x.
>>>>>
>>>>> Didn't I say strange?
> _______________________________________________
> vbox-dev mailing list
> vbox-dev@virtualbox.org
> https://www.virtualbox.org/mailman/listinfo/vbox-dev
>


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Verdana">Yes built on the same system exactly and run
      from the same.&nbsp; I did test again on the VT-x enabled host and it
      aborts as well. <br>
      <br>
      Oh well, back to vrde I guess.&nbsp; It seems weird that this just
      started a week or so ago.&nbsp; If I find something I'll let you know.<br>
      <br>
      Thanks<br>
      <br>
      <br>
      <br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 07/25/2012 10:50 AM, Klaus Espenlaub
      wrote:<br>
    </div>
    <blockquote cite="mid:501015DC.6050401@oracle.com" type="cite">
      <pre wrap="">On 25.07.2012 16:21, Perry Halbert wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">gdb shows:

Program terminated with signal 11, Segmentation fault.
#0 0x00007f717ea0f4e2 in VNCServerImpl::VRDEUpdate
(hServer=0x7f7178002bc0, uScreenId=&lt;optimized out&gt;,
pvUpdate=0x7f7153fe0338, cbUpdate=&lt;optimized out&gt;) at
/trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp:457
</pre>
      </blockquote>
      <pre wrap="">
The crash is in the code which converts between RGB and BGR color order 
when updating a rectangle. So either the buffer pointers are busted or 
it incorrectly copies more data than it should.

</pre>
      <blockquote type="cite">
        <pre wrap="">libvncserver0 = 0.9.8.2
</pre>
      </blockquote>
      <pre wrap="">
Hope that you either built the package on the same system, or on a 
system which has exactly the same version. The data structures for the 
VNC library change occasionally, and they're not particularly good with 
symbol versioning which means that the application will link fine 
against the .so file, but later crash because the calling code assumes a 
different data layout than the library.

</pre>
      <blockquote type="cite">
        <pre wrap="">Dump is over 200MB. Needless to say this is going to take \
sometime for me to figure out. I can ftp it to appsdev if you like.
</pre>
      </blockquote>
      <pre wrap="">
The problem with such cores for custom built packages is that we'd need 
the matching package, debug info and information about the OS version, 
bitness, special packages and so on. Otherwise gdb would most likely say 
that it can't make sense out of the core.

Klaus

</pre>
      <blockquote type="cite">
        <pre wrap="">



On 07/25/2012 07:00 AM, Klaus Espenlaub wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On 24.07.2012 03:12, Perry Halbert wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Update. I turned off the remote display and this solved the \
issue. I use VNC and build the extension pack which has been working really well.
So is there a way to get this back to operational status or do I need to
switch back to VRDP?
</pre>
          </blockquote>
          <pre wrap="">My suspicion is that the VM process crashes... can you enable \
core dumps to see if this hypothesis is right, or run the VM process directly in
gdb? You build everything yourself, so it shouldn't be a problem to have
the debug info available. Could be that your libvncserver is newer and
has a slightly incompatible API somewhere.

I've tried a similar setup (VBox trunk, matching GA, VNC enabled, VT-x
disabled), but I couldn't get any crashes. Used a different guest OS and
a different linux distro on the host, but this shouldn't really have a
significant influence. Tried with and without a VNC viewer connected.

I guess that you run the VM in the GUI, because I wasn't able to find a
VNC viewer which would trigger resizes when its window is resized.

Any obvious patterns for the resize resolution (we removed a "multiple
of 4" restriction for the horizontal resolution recently) which causes
crashes? Does it ever survive a resize?

Klaus

</pre>
          <blockquote type="cite">
            <pre wrap="">
On 07/23/2012 06:27 PM, Perry Halbert wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">Strange issue this time.

Latest batch of builds, not sure exactly when, but within the last
week. When resizing the guest (mouse click drag) it aborts. Nothing in
the guests log file (no shut down, resize information, or reason it
just stops recording) or syslog of the guest. Just like you pulled the
plug. Only indication is the main manager shows aborted.

Host Ubuntu 12.04 x86_64 (no VT-x)
Guest Ubuntu 12.04 X86_32 with PAE

Everything else works good, including all new features, well except it
is really slow and has been for some time, but usable to test with.

I increased the vRAM to 64MB from 12MB but that does not seem to be
the issue.
I removed Version matching GAs and installed 4.1.18, but no change so
I don't think it is the GAs.
Turned off 3D so that is not the issue.

Note: I do not see this on a matching Ubuntu host with VT-x.

Didn't I say strange?
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
      <pre wrap="">
_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a> <a \
class="moz-txt-link-freetext" \
href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a>


</pre>
    </blockquote>
    <br>
  </body>
</html>



_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic