[g33] Xorg assert failure: X: ../../src/i830_batchbuffer.h:79: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.

Bug #465317 reported by Antonis Christofides
96
This bug affects 17 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After update to karmic, and enabling desktop effects, while playing AisleRiot solitaire (Spider), I was suddenly logged out. After logging in again, the crash report system notified that xorg had crashed. This happened twice.

GdmLogOld.txt
../../../libdrm/intel/intel_bufmgr_gem.c:637: Error mapping buffer 55641 (batch): Cannot allocate memory .

Fatal server error:
Failed to map batchbuffer: Cannot allocate memory

ProblemType: Crash
Architecture: i386
AssertionMessage: X: ../../src/i830_batchbuffer.h:79: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.
Date: Fri Oct 30 19:07:54 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/Xorg
MachineType: System manufacturer P5K-VM
Package: xserver-xorg-core 2:1.6.4-2ubuntu4
ProcCmdLine: root=UUID=2f039e52-a8e9-4eaa-a07e-1dda00fb3afe ro quiet splash
ProcCmdline: /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-7uRmRv/database -nolisten tcp
ProcEnviron:
 LANG=el_GR.UTF-8
 PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu7
 libgl1-mesa-glx 7.6.0-1ubuntu4
 libdrm2 2.4.14-1ubuntu1
 xserver-xorg-video-intel 2:2.9.0-1ubuntu2
 xserver-xorg-video-ati 1:6.12.99+git20090929.7968e1fb-0ubuntu1
Signal: 6
SourcePackage: xorg-server
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/tls/i686/cmov/libc.so.6
 abort () from /lib/tls/i686/cmov/libc.so.6
 __assert_fail () from /lib/tls/i686/cmov/libc.so.6
 I830EmitFlush ()
Title: Xorg assert failure: X: ../../src/i830_batchbuffer.h:79: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.
Uname: Linux 2.6.31-14-generic i686
UserGroups:

dmi.bios.date: 10/30/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0602
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5K-VM
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0602:bd10/30/2007:svnSystemmanufacturer:pnP5K-VM:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5K-VM:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5K-VM
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
fglrx: Not loaded
system:
 distro: Ubuntu
 architecture: i686kernel: 2.6.31-14-generic

[lspci]
00:02.0 VGA compatible controller [0300]: Intel Corporation 82G33/G31 Express Integrated Graphics Controller [8086:29c2] (rev 02)
     Subsystem: ASUSTeK Computer Inc. Device [1043:8276]

Revision history for this message
Antonis Christofides (anthony-itia) wrote :
Revision history for this message
Antonis Christofides (anthony-itia) wrote :

It did it again, with desktop effects disabled.

Revision history for this message
Antonis Christofides (anthony-itia) wrote :

I attach a log file that I think contains the latest problem.

Bryce Harrington (bryce)
tags: added: crash
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
a.vrb (a-vrb) wrote :

More n more FIREFOX 3.1 runs very slowly . It was in french n suddenly it runs in english!

Revision history for this message
Dave Uggla (dave-uggla) wrote :

https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/475023

Contains the full ( 179 MB ) apport report with core dump.

Revision history for this message
Dave Uggla (dave-uggla) wrote :

Additional information: On the chance that it might make a difference, I switched to the latest upstream Intel video driver(s) from xorg-edgers/drivers-only/ubuntu-karmic. As of today's most current driver version, crashes still occur....

Timo Aaltonen (tjaalton)
affects: xorg-server (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Revision history for this message
Don Estberg (destberg1) wrote :

The same symptoms without xorg-server crashing are reported in http://ubuntuforums.org/showthread.php?p=8401897

Revision history for this message
Don Estberg (destberg1) wrote :

Xorg.0.log for the latest occurrence, which corresponds to this /var/log/syslog entry:

Nov 27 20:23:52 desktop acpid: client 1167[0:0] has disconnected
Nov 27 20:23:52 desktop acpid: client connected from 3493[0:0]
Nov 27 20:23:56 desktop bonobo-activation-server (dge-3538): could not associate with desktop session: Failed to connect to socket /tmp/dbus-P35QJC09nj: Connection refused
Nov 27 20:24:14 desktop pulseaudio[3648]: pid.c: Stale PID file, overwriting.
Nov 27 20:24:18 desktop pulseaudio[3648]: module-x11-xsmp.c: X11 session manager not running.
Nov 27 20:24:18 desktop pulseaudio[3648]: module.c: Failed to load module "module-x11-xsmp" (argument: ""): initialization failed.

Revision history for this message
Dave Uggla (dave-uggla) wrote :

The Ubuntu Forums link noted by Dan Estberg appears to describe exactly the same symptoms, but in one of the reported occurrences the video driver in use was nvidia.

I have noticed that when I play AisleRiot Solitaire the Memory Utilization panel applet shows the memory utilization approaching 100% as I continue to play games. The main (or only) increment is in the "in use as cache" category.
The memory resource graph in System Monitor does not show this component of memory usage.

When I close and re-open AisleRiot, the memory utilization returns to normal, and I have not had any xorg crashes yet as long I keep the applet-displayed figure below 90% total.

Revision history for this message
CyrusCT (cyrusct) wrote :

Dave Uggla,

Could you please post instructions for installing the "Memory Utilization panel applet" you are using?
It's not listed in my "Add to Panel" window, and I couldn't identify the package for it by searching in Synaptic
I'm sure other's would like to use this to preempt the crashes as well.

Thanks.

Revision history for this message
wizwiz50 (wizwiz50) wrote : Re: [Bug 465317] Re: Xorg assert failure: X: ../../src/i830_batchbuffer.h:79: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.

I didn't follow the discussion but maybe you're you're speaking about this :
http://library.gnome.org/users/multiload/stable/multiload-introduction.html.en

I always had some random crash of X since I installed Karmic. At boot
time X was always crashing then restarting but since I've uninstalled
this applet from gnome panel, boot time is ok. It's still to early to
say that my random crashes are solved.

Sorry for my english, I hope I understood what you asked :)

CyrusCT a écrit :
> Dave Uggla,
>
> Could you please post instructions for installing the "Memory Utilization panel applet" you are using?
> It's not listed in my "Add to Panel" window, and I couldn't identify the package for it by searching in Synaptic
> I'm sure other's would like to use this to preempt the crashes as well.
>
> Thanks.
>

Revision history for this message
CyrusCT (cyrusct) wrote : Re: Xorg assert failure: X: ../../src/i830_batchbuffer.h:79: intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)' failed.

Thanks wizwiz50,

I checked the link, but it's for "System Monitor" and as Dave Uggla said: "The memory resource graph in System Monitor does not show this component of memory usage."

Revision history for this message
Dave Uggla (dave-uggla) wrote :

Thanks for the suggestion.

You first install the normal System Monitor Applet which is associated with the full detail System Monitor, and by default displays only CPU Utilization. Then right click it, open Preferences and check the "Memory" box and any others you might find interesting. When you mouse over the memory display you will see the different percentages.

This is described on the second page of the information at the link supplied by wizwiz50.

I am not sure what the rationale is for showing some details in the Panel which do not seem to be available in the full display.

Based on his comments, I also plan to remove the System Monitor applet and see if it has any effect on the AisleRiot-induced crash.

Dave Uggla

Revision history for this message
Jani Uusitalo (uusijani) wrote :

There's suspicion of this and Bug #444518 being duplicates.

Revision history for this message
Sebastien Bacher (seb128) wrote :

duplicate bug #450832?

Revision history for this message
Antonis Christofides (anthony-itia) wrote :

I think this is indeed a duplicate of bug 450832, but I can't mark it as such, because bug 475023 is marked as a duplicate of this one, and I can't change 475023 because it's private.

Revision history for this message
Dave Uggla (dave-uggla) wrote :

The immediate problem (at least with regard to AisleRiot induced crashes) has been fixed by a patch to libgtk, as referenced in bug #450832. I can confirm that after this update the apparent growth of memory assigned to cache in System Monitor while running AisleRiot is gone and I infer from that that the crashing problem is gone too.

However, as several others have commented in other duplicates and related bug reports, there is still a question of whether a bug in libgtk should have been able to cause a segfault in xorg-server itself.

Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
summary: - Xorg assert failure: X: ../../src/i830_batchbuffer.h:79:
+ [g33] Xorg assert failure: X: ../../src/i830_batchbuffer.h:79:
intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)'
failed.
Bryce Harrington (bryce)
tags: added: karmic
Bryce Harrington (bryce)
summary: - [g33] Xorg assert failure: X: ../../src/i830_batchbuffer.h:79:
+ [g33] [g33] Xorg assert failure: X: ../../src/i830_batchbuffer.h:79:
intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)'
failed.
Bryce Harrington (bryce)
summary: - [g33] [g33] Xorg assert failure: X: ../../src/i830_batchbuffer.h:79:
+ [g33] Xorg assert failure: X: ../../src/i830_batchbuffer.h:79:
intel_batch_emit_dword: Assertion `pI830->batch_ptr != ((void *)0)'
failed.
Robert Hooker (sarvatt)
description: updated
Revision history for this message
Chris Wilson (ickle) wrote :

UXA is deprecated and I'm pretty sure that we fixed this bug...

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.