Latest virtualbox crashes X server on ubuntu 10.10

Discussions related to using VirtualBox on Linux hosts.
kernelOfTruth
Posts: 15
Joined: 4. Sep 2007, 23:41
Location: Vienna, Austria; Germany; hello world :)

Re: Latest virtualbox crashes X server on ubuntu 10.10

Post by kernelOfTruth »

might be related to the ubuntu X server crash or not ...

ok I collected some more info:

1) if I execute without the kernel-modules loaded it'll crash the x-server
I can only execute it via 'VirtualBox' and then when I want to check my discs via the volume manager - X crashes and gdm restarts when clicking on "check"

2) when manually loading vboxdrv - everything seems to get killed in terms of X:

I get the following error message:

ignore the kztram - it's just an old naming from before - it wasn't compiled in and applied

Jan 19 21:59:52 lupus kernel: [ 165.527677] vboxdrv: Found 8 processor cores.
Jan 19 21:59:52 lupus kernel: [ 165.527725] BUG: unable to handle kernel paging request at ffffffffa02ed3e0
Jan 19 21:59:52 lupus kernel: [ 165.527756] IP: [<ffffffffa02ed25a>] RTHeapSimpleInit+0x5a/0xf0 [vboxdrv]
Jan 19 21:59:52 lupus kernel: [ 165.527785] PGD 1c05067 PUD 1c09063 PMD 1bd8c0067 PTE 1a63ef161
Jan 19 21:59:52 lupus kernel: [ 165.527817] Oops: 0003 [#1] PREEMPT SMP
Jan 19 21:59:52 lupus kernel: [ 165.527842] last sysfs file: /sys/devices/virtual/misc/vboxdrv/uevent
Jan 19 21:59:52 lupus kernel: [ 165.527863] CPU 7
Jan 19 21:59:52 lupus kernel: [ 165.527871] Modules linked in: vboxdrv(+) radeon ttm drm_kms_helper cfbcopyarea cfbimgblt cfbfillrect ipt_REJECT ipt_LOG xt_limit xt_tcpudp xt_state nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack_ftp iptable_filter ipt_addrtype xt_iprange xt_DSCP xt_dscp ip_tables ip6table_filter xt_conntrack xt_hashlimit xt_string xt_NFQUEUE xt_connmark nf_conntrack xt_mark xt_multiport xt_owner ip6_tables x_tables it87 hwmon_vid coretemp i2c_i801 wmi e1000e shpchp libphy e1000 scsi_wait_scan sl811_hcd ohci_hcd ssb usb_storage ehci_hcd [last unloaded: tg3]
Jan 19 21:59:52 lupus kernel: [ 165.528166]
Jan 19 21:59:52 lupus kernel: [ 165.528174] Pid: 8501, comm: modprobe Not tainted 2.6.37_plus_v8_kztram #2 FMP55/ipower G3710
Jan 19 21:59:52 lupus kernel: [ 165.528200] RIP: 0010:[<ffffffffa02ed25a>] [<ffffffffa02ed25a>] RTHeapSimpleInit+0x5a/0xf0 [vboxdrv]
Jan 19 21:59:52 lupus kernel: [ 165.528235] RSP: 0018:ffff8801a60f7ef0 EFLAGS: 00010246
Jan 19 21:59:52 lupus kernel: [ 165.528252] RAX: ffffffffa046d3df RBX: ffffffffa02ed3e0 RCX: 0000000000000000
Jan 19 21:59:52 lupus kernel: [ 165.528275] RDX: 0000000000180000 RSI: ffffffffa02ed3e0 RDI: ffffffffa0478600
Jan 19 21:59:52 lupus kernel: [ 165.528298] RBP: 0000000000180000 R08: ffff800000000000 R09: 2222222222222222
Jan 19 21:59:52 lupus kernel: [ 165.528320] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffa0092000
Jan 19 21:59:52 lupus kernel: [ 165.528343] R13: 00007fe807f60470 R14: 0000000000000000 R15: 00007fe8075d7f00
Jan 19 21:59:52 lupus kernel: [ 165.528366] FS: 00007fe80757e700(0000) GS:ffff8800bf5c0000(0000) knlGS:0000000000000000
Jan 19 21:59:52 lupus kernel: [ 165.528391] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Jan 19 21:59:52 lupus kernel: [ 165.528410] CR2: ffffffffa02ed3e0 CR3: 00000001a5a74000 CR4: 00000000000006e0
Jan 19 21:59:52 lupus kernel: [ 165.528432] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jan 19 21:59:52 lupus kernel: [ 165.528455] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jan 19 21:59:52 lupus kernel: [ 165.528477] Process modprobe (pid: 8501, threadinfo ffff8801a60f6000, task ffff8801bea12ee0)
Jan 19 21:59:52 lupus kernel: [ 165.528503] Stack:
Jan 19 21:59:52 lupus kernel: [ 165.528511] ffffffffa02de7d0 0000000000000000 ffffffffa02dc917 ffffffff81cdfef8
Jan 19 21:59:52 lupus kernel: [ 165.528543] 0000000000000000 0000000000000000 ffffffffa009205d ffffffffa04782c0
Jan 19 21:59:52 lupus kernel: [ 165.528574] ffffffff810002da 0000000000000000 ffffffffa04782c0 00000000001c1718
Jan 19 21:59:52 lupus kernel: [ 165.528606] Call Trace:
Jan 19 21:59:52 lupus kernel: [ 165.528621] [<ffffffffa02de7d0>] ? RTR0MemExecDonate+0x40/0x70 [vboxdrv]
Jan 19 21:59:52 lupus kernel: [ 165.528648] [<ffffffffa02dc917>] ? RTR0Init+0x37/0x60 [vboxdrv]
Jan 19 21:59:52 lupus kernel: [ 165.528673] [<ffffffffa009205d>] ? init_module+0x5d/0x1000 [vboxdrv]
Jan 19 21:59:52 lupus kernel: [ 165.528696] [<ffffffff810002da>] ? do_one_initcall+0x3a/0x170
Jan 19 21:59:52 lupus kernel: [ 165.528717] [<ffffffff81081d39>] ? sys_init_module+0xf9/0x250
Jan 19 21:59:52 lupus kernel: [ 165.528736] [<ffffffff810027bb>] ? system_call_fastpath+0x16/0x1b
Jan 19 21:59:52 lupus kernel: [ 165.528756] Code: c8 0f 85 9c 00 00 00 48 8d 44 16 ff 48 39 c2 0f 83 88 00 00 00 48 89 f1 83 e1 1f 74 0e b8 20 00 00 00 48 29 c8 48 29 c2 48 01 c6 <48> c7 06 05 01 59 19 48 c7 46 30 ff ff ff ff 48 c7 46 38 ff ff
Jan 19 21:59:52 lupus kernel: [ 165.529029] RIP [<ffffffffa02ed25a>] RTHeapSimpleInit+0x5a/0xf0 [vboxdrv]
Jan 19 21:59:52 lupus kernel: [ 165.529056] RSP <ffff8801a60f7ef0>
Jan 19 21:59:52 lupus kernel: [ 165.529068] CR2: ffffffffa02ed3e0
Jan 19 21:59:52 lupus kernel: [ 165.535348] ---[ end trace 8b7d8d103d687ffe ]---
Jan 19 22:01:04 lupus kernel: [ 237.347075] SysRq : Keyboard mode set to system default
Jan 19 22:01:05 lupus kernel: [ 238.225580] SysRq : Terminate All Tasks
edit:

found my reason

http://www.mail-archive.com/ubuntu-bugs ... 01640.html
VirtualBox not compatible with CONFIG_DEBUG_SET_MODULE_RONX
:(

more info: http://www.virtualbox.org/ticket/7827

ok, well I'll try without that enhanced security then ...
kernelOfTruth
Posts: 15
Joined: 4. Sep 2007, 23:41
Location: Vienna, Austria; Germany; hello world :)

Re: Latest virtualbox crashes X server on ubuntu 10.10

Post by kernelOfTruth »

ok, I could "fix" the problem with loading the vboxdrv module

now X-server still crashes when executing VirtualBox and simply waiting for a few seconds:
/var/log/Xorg.0.log.old wrote:[ 2044.564]
Backtrace:
[ 2044.641] 0: /usr/bin/X (xorg_backtrace+0x3e) [0x7f9e5c62462e]
[ 2044.641] 1: /usr/bin/X (0x7f9e5c538000+0x94659) [0x7f9e5c5cc659]
[ 2044.641] 2: /lib/libpthread.so.0 (0x7f9e5b3a5000+0xf4d0) [0x7f9e5b3b44d0]
[ 2044.641] 3: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f9e58809000+0x1006a5) [0x7f9e589096a5]
[ 2044.641] 4: /usr/lib/xorg/modules/libexa.so (0x7f9e581b3000+0xcfd5) [0x7f9e581bffd5]
[ 2044.641] 5: /usr/lib/xorg/modules/libexa.so (0x7f9e581b3000+0x1092d) [0x7f9e581c392d]
[ 2044.641] 6: /usr/bin/X (0x7f9e5c538000+0x135ddc) [0x7f9e5c66dddc]
[ 2044.641] 7: /usr/bin/X (0x7f9e5c538000+0x45df9) [0x7f9e5c57ddf9]
[ 2044.641] 8: /usr/bin/X (0x7f9e5c538000+0x4a229) [0x7f9e5c582229]
[ 2044.641] 9: /usr/bin/X (0x7f9e5c538000+0x3b63a) [0x7f9e5c57363a]
[ 2044.641] 10: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7f9e59c78cfd]
[ 2044.641] 11: /usr/bin/X (0x7f9e5c538000+0x3b189) [0x7f9e5c573189]
[ 2044.641] Segmentation fault at address (nil)
[ 2044.641]
Fatal server error:
[ 2044.641] Caught signal 11 (Segmentation fault). Server aborting
[ 2044.641]
[ 2044.641]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 2044.641] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 2044.641]
[ 2044.647] (II) Power Button: Close
[ 2044.647] (II) UnloadModule: "evdev"
[ 2044.655] (II) Power Button: Close
[ 2044.655] (II) UnloadModule: "evdev"
[ 2044.671] (II) Logitech USB Receiver: Close
[ 2044.671] (II) UnloadModule: "evdev"
[ 2044.679] (II) Logitech USB Receiver: Close
[ 2044.679] (II) UnloadModule: "evdev"
[ 2044.687] (II) Microsoft Natural® Ergonomic Keyboard 4000: Close
[ 2044.687] (II) UnloadModule: "evdev"
[ 2044.695] (II) Microsoft Natural® Ergonomic Keyboard 4000: Close
[ 2044.695] (II) UnloadModule: "evdev"
[ 2044.695] (II) AIGLX: Suspending AIGLX clients for VT switch

@ hoppa123 :

try looking in /var/log/Xorg.0.log.old

instead of /var/log/Xorg.0.log :idea:

edit:

as a reference:
https://bugs.freedesktop.org/show_bug.cgi?id=32188
kernelOfTruth
Posts: 15
Joined: 4. Sep 2007, 23:41
Location: Vienna, Austria; Germany; hello world :)

Re: Latest virtualbox crashes X server on ubuntu 10.10

Post by kernelOfTruth »

OK,

so this problem meanwhile got fixed for me

the steps were to recompile libdrm, mesa and xf86-video-ati (9999 - meaning live / upstream / git-builds)

now the X-server doesn't crash anymore and my virtual machines work fine so far :D

this was quite easy on Gentoo


but for you Ubuntu folks you have several options:

1) waiting until the next xf86-video-ati stable driver gets released (>6.13.2) - you probably need Virtualbox now - so that won't be an option

2) using the xorg-edgers overlay (which *might* and will be unstable from time to time but always contains the latest versions with fixes)

3) manually compiling xf86-video-ati

the easiest for 3) would be to follow the guide from: https://wiki.ubuntu.com/X/DriverBuilding

(eventually some additional information: http://www.vanstormbroek.nl/blog/?p=16)

good luck :)
solinym
Posts: 1
Joined: 25. Apr 2011, 02:05
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: many

Re: Latest virtualbox crashes X server on ubuntu 10.10

Post by solinym »

I'm getting this too.

Using nvidia (and not nv nor noveau) driver in Xorg.conf

Tried all steps mentioned here, no luck. Splash page of virtualbox crashes server either in twinview or seperate X sessions.

Crash cause seems to be:

Backtrace:
[ 462.180] 0: /usr/bin/X (xorg_backtrace+0x28) [0x45c5a8]
[ 462.180] 1: /usr/bin/X (0x400000+0x5a87d) [0x45a87d]
[ 462.180] 2: /lib/libpthread.so.0 (0x7f52a537e000+0xfb40) [0x7f52a538db40]
[ 462.180] 3: /usr/lib/libXfont.so.1 (FontFileListNextFontWithInfo+0x26) [0x7f52a4ef0826]
[ 462.181] 4: /usr/bin/X (doListFontsWithInfo+0x1d8) [0x4393b8]
[ 462.181] 5: /usr/bin/X (ProcessWorkQueue+0x21) [0x436771]
[ 462.181] 6: /usr/bin/X (WaitForSomething+0x82) [0x463f52]
[ 462.181] 7: /usr/bin/X (0x400000+0x3f672) [0x43f672]
[ 462.181] 8: /usr/bin/X (0x400000+0x2187b) [0x42187b]
[ 462.181] 9: /lib/libc.so.6 (__libc_start_main+0xfe) [0x7f52a42e9d8e]
[ 462.181] 10: /usr/bin/X (0x400000+0x21409) [0x421409]
[ 462.181] Segmentation fault at address (nil)
[ 462.181]
Caught signal 11 (Segmentation fault). Server aborting
[ 462.181]
johnzeng
Posts: 10
Joined: 25. Apr 2011, 23:28
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Arch

Re: Latest virtualbox crashes X server on ubuntu 10.10

Post by johnzeng »

i'm using ubuntu 10.10 as well and the latest recommended prop. nvidia driver 260.19.06.

i can start vb 4.0.6 when xinerama is disabled. it will crash xorg if xinerama is enabled.

it's reported that there's a bug in xorg which affects QT based app.
https://bugs.launchpad.net/ubuntu/+sour ... bug/650539

so, you may want to try downgrade xorg to a certain version, or try disable xinerama for now.

UPDATE: I upgraded to Ubuntu 11.04 today with nvidia 270.41.06 and xorg 7.6 and i'm able to start vb with xinerama enabled.
Last edited by johnzeng on 29. Apr 2011, 03:34, edited 1 time in total.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Latest virtualbox crashes X server on ubuntu 10.10

Post by Sasquatch »

I want to get a small recap here about this problem. Does the Host crash when the proprietary nVidia driver is used with TwinView configuration and a VM is started with certain settings (or just any setting)?
My system is set up to use TwinView and I have no problems starting VMs with and without 3D enabled, with or without additional monitors set or a combination of the two. Now this is with the stock Ubuntu X server, so if people who are experiencing this problem with a different version than the one in the Ubuntu repo, I suggest everyone to revert back to the stock version, as that seems to be the cause.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply