Segfault in swrast.c:get_window_size() (vboxvideo)

Discussions related to using VirtualBox on Windows hosts.
spiceweasel
Posts: 5
Joined: 23. Jun 2010, 23:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Fedora 13 (Goddard)

Segfault in swrast.c:get_window_size() (vboxvideo)

Post by spiceweasel »

I am running Fedora 13 (Goddard) under VirtualBox 3.2.4 (r62467). I am using Gnome. When I select System, Preferences, Desktop Effects from the Gnome menu I get a segfault crash in the program /usr/bin/desktop-effects. I reported it to Redhat using Abrt. The Bugzilla bug entry is:

https://bugzilla.redhat.com/show_bug.cgi?id=603569

Full details of the segmentation fault can be found there. The backtrace shows this:

Code: Select all

[New Thread 2208]
Core was generated by `desktop-effects'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f47ef671cdb in get_window_size (ctx=0x13f7490, 
    fb=<value optimized out>) at swrast.c:441
441	swrast.c: No such file or directory.
	in swrast.c

Thread 1 (Thread 2208):
#0  0x00007f47ef671cdb in get_window_size (ctx=0x13f7490, 
    fb=<value optimized out>) at swrast.c:441
        buf = 0x1728ef0
        screen = 0x12ac350
        x = 0
        y = 19647264
#1  swrast_check_and_update_window_size (ctx=0x13f7490, 
    fb=<value optimized out>) at swrast.c:451
        width = 54
        height = -2145113757
#2  0x00007f47ef671d5d in driBindContext (ctx=0x13f7490, draw=0x1728ef0, 
    read=0x1728ef0) at swrast.c:616
        mesaCtx = 0x13f7490
        mesaDraw = 0x1728ef0
        mesaRead = 0x1728ef0
#3  0x0000003680224d69 in MakeContextCurrent (dpy=0x124f200, draw=69206022, 
    read=69206022, gc=0x12bcb20) at glxcurrent.c:402
        pdraw = 0x7fff3ff9398c
        pread = <value optimized out>
        oldGC = 0x3680468580
        reply = {type = 6 '\006', unused = 0 '\000', sequenceNumber = 1056, 
          length = 0, contextTag = 1810119199, pad2 = 54, pad3 = 19242488, 
          pad4 = 0, pad5 = 1809976991, pad6 = 54}
        opcode = 153 '\231'
        oldOpcode = 153 '\231'
        bindReturnValue = <value optimized out>
        state = <value optimized out>
#4  0x0000000000403126 in has_hardware_gl (argc=1, argv=0x7fff3ff93c78)
    at desktop-effects.c:1005
        xdisplay = 0x124f200
        renderer = <value optimized out>
        window = 69206022
        attrlist = {4, 8, 1, 9, 1, 10, 1, 5, 0}
        screen = <value optimized out>
        cwa = {background_pixmap = 0, background_pixel = 0, 
          border_pixmap = 0, border_pixel = 0, bit_gravity = 0, 
          win_gravity = 0, backing_store = 0, backing_planes = 0, 
          backing_pixel = 0, save_under = 0, event_mask = 0, 
          do_not_propagate_mask = 0, override_redirect = 0, 
          colormap = 69206021, cursor = 0}
        xscreen = <value optimized out>
        context = 0x12bcb20
        visual = <value optimized out>
        success = 0
#5  main (argc=1, argv=0x7fff3ff93c78) at desktop-effects.c:1064
        app = <value optimized out>
        err = 0x0

Redhat's response is that this is a bug in the Virtualbox 3D drivers and they suggest that the bug should be reported to Oracle/Sun. Before I post a bug to Sun/Oracle I wanted to ask the community if anyone else has seen this I can find not mention of it in the VirtualBox bug tracker.

So, has anyone seen this? Is this something that should be reported to Sun/Oracle?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by Perryg »

Works for me.
Host Windows 7 Pro 32 bit VBox version = 3.2.6-B2 so that might be a variable. I did not try it on 3.2.4
Fedora-13 Gnome 2.30.0 Kernel 2.6.33.5-112.fc13.i686
Attachments
Fedora-13.jpg
Fedora-13.jpg (114.96 KiB) Viewed 6363 times
backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

I am also having the same problem. I'm on a quad i7 iMac running VirtualBox 3.2.4. Fedora 13 freezes when I try to select System>Desktop Effects. I have this same configuration on a Intel dual core miniMac with a wimpy 1 Gb of memory; same VirtualBox and same Fedora and Desktop Effects works perfectly.

So I vote one vote up and one vote down. All my other flavors of Ubunttu (Ubuntu 9.10 and 10.04, Lubuntu 10.04, LinuxMint 8 and PeppermintOS all work perfectly.

I just tried lowering my iMac screen resolution to that which my miniMac supports but to no avail.

I think you ought to report it as a bug

Stay in touch
backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

I forgot to mention I am running as my Guest "Linux Fedora13 2.6.33.5-124.fc13.i686", 32 bit obviously. Reasonably updated with "yum update" And after "yum install kernel" and "dkms" and a few others, the VirtualBox Guest Additions built just fine. Shared Folders, extended video resolution, etc all seem to work just fine. Just not "Desktop Effects" What a bummer: I love Compiz

Also my mother OS is OSX 10.6.3 (Snow Leopard)

Stay in touch
spiceweasel
Posts: 5
Joined: 23. Jun 2010, 23:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Fedora 13 (Goddard)

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by spiceweasel »

After applying the latest patches to Fedora and rebooting the VM the problem has stopped for me. I now get a dialog box popup saying "Accelerated 3D graphics is not available".
spiceweasel
Posts: 5
Joined: 23. Jun 2010, 23:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Fedora 13 (Goddard)

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by spiceweasel »

Hmm, looks like I spoke too soon. Wondering why 3d Acceleration was disabled I decided to re-mount the VBOXADDITIONS and re-install the Guest Additions. As soon as this was done I re-booted the VM and re-ran desktop-effects. Segmentation Fault.

I will report as a bug.
backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

Yup, I think it's time to report the bug. I was excited by the post of "perryg" last nite so tonite I tried it on my own.

No Go.

I downloaded VB 4.2.6 Beta2 for OSX (10.6.3) in my case, on my iMac 27". I fired off the Fedora13 guest, "Linux Fedora13 2.6.33.5-124.fc13.i686", and simply reran the Guest Additions, without error

All this time I had 3D acceleration "enabled" for this Guest. I got back into Fefora13 and tried Desktop Effects and BOOM, it still froze up

Then again, "perryg" was running on Win7 and that is different. And to be fair, the Beta2 User Manual states on page 210.
----------------------------------------------------------------------------------------------------------
Mac OS X hosts. The following restrictions apply (all of which will be resolved in future versions)

3D OpenGL acceleration, in particular with Linux guests that have 3D effects enabled (such as with compiz-enabled window managers)"
----------------------------------------------------------------------------------------------------------

So I will wait with abated breath.
Attachments
VBox.log
current VBox.log
(52.35 KiB) Downloaded 16 times
spiceweasel
Posts: 5
Joined: 23. Jun 2010, 23:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Fedora 13 (Goddard)

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by spiceweasel »

backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

With little expectations, I downloaded VB 4.2.6 r63112 tonight and gave it a shot. The results were the same. It still freezes up Fedora 13. And just for grins, I tried one of my Ubuntu (10.04) flavors and it worked perfect.
backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

Have you heard anything on your Ticket 7061?. Or maybe you have had some independent Good Luck. Any news?
spiceweasel
Posts: 5
Joined: 23. Jun 2010, 23:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Fedora 13 (Goddard)

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by spiceweasel »

There has not been any response to my bug report and the new 3.2.6 release of VirtualBox does not resolve the issue.

If I get a response to the bug report I will update this thread. I may update the bug report to mention that 3.2.6 is affected too.
fuserd
Posts: 2
Joined: 4. Jul 2010, 22:58
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: Fedora 13, OpenSolaris

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by fuserd »

Being having the same issue as you guys, XP 32 bit host, Fedora 13 x86-64 guest patched to latest version. Reinstalled many times, taken snapshots trying to figure out what went wrong.

Did notice something strange. If I change the window manager to compiz with desktop-effects and update or install a package with PackageKit GUI, on next reboot I get the glxinfo and desktop-effect crash with segfault.

However, if the system starts with metacity and if packages are installed and updated with yum, it's fine, I can start desktop-effects and use compiz. The former may not be the source of the problem, but the latter is worth investigating, some bug in PackageKit perhaps?

Update: cloned disk, tried to get it to segfault and it refuses to, weird error. Luck of the draw?
backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

I'm trying to reproduce the path that "fuserd" followed in the previous post. I just did a fresh install of Fedora13 (32 bit) in VirtualBox 3.2.6. Host OS is OSX 10.6.3 ( 27" iMac). I did a yum update, yum install dkms gcc make and rebooted. I now am at Kernel 2.6.33.5-124. I then ran the script Guest Additions with no problem. BUT, when I try Desktop Effects, the whole iMac freezes still. I don't know what you are referring to regarding "metacity". How does that relate to GNOME? Is it an alternate Window Manager? I also download "gconf-editor" so I can actually see settings for Metacity. What I don't know is how to run it. I tried "metacity --replace" and then lost control of the keyboard but not the mouse. I was able to log out and then log back in and regained control of the keyboard.

Can you give me a hint or two how to run or enable Metacity. Then I will try Desktop Effects again. I hope I can reproduce your results.

Thanks
backvan
Posts: 23
Joined: 21. Apr 2010, 08:16
Primary OS: Mac OS X Leopard
VBox Version: OSE Fedora
Guest OSses: Ubuntu Lucid Lynx

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by backvan »

AS a result of my fresh install of Fedora13 on VBox 3.2.6, I was actually able to run glxgears and glxinfo. I attached the results in the attachment just in case it helps a little
Attachments
glx.txt
glxgears and glxinfo results
(23.66 KiB) Downloaded 23 times
fuserd
Posts: 2
Joined: 4. Jul 2010, 22:58
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: Fedora 13, OpenSolaris

Re: Segfault in swrast.c:get_window_size() (vboxvideo)

Post by fuserd »

Looks like I spoke too soon, glxinfo bugged out again. Seems to always happen about a day or two after installing the guest additions.

Window manager is specified in ~/.gconf/desktop/gnome/session/required_components/%gconf.xml, directory is created when window manager is changed to compiz with desktop-effects. Metacity is GNOME's default window manager.
Post Reply