Program received signal SIGBUS, Bus error.

Bug #1017243 reported by Thomas Bechtold
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mesa
Fix Released
Unknown
mesa (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

i'm using ubuntu 12.10 (i386) with latest updates installed (see end of dscription).

i'm trying to use clutter and textures and get a "Bus Error". The attached python program can reproduce the error. Here is a backtrace (produced with another C program):

Program received signal SIGBUS, Bus error.
0xb6d292a5 in _mesa_texstore_argb8888 (ctx=0x807a218, dims=2, baseInternalFormat=6408, dstFormat=MESA_FORMAT_ARGB8888, dstRowStride=32768, dstSlices=0xbfffea98,
    srcWidth=3648, srcHeight=2736, srcDepth=1, srcFormat=6407, srcType=5121, srcAddr=0xa4fde008, srcPacking=0x8088cac) at main/texstore.c:1417
1417 main/texstore.c: No such file or directory.
(gdb) bt
#0 0xb6d292a5 in _mesa_texstore_argb8888 (ctx=0x807a218, dims=2, baseInternalFormat=6408, dstFormat=MESA_FORMAT_ARGB8888, dstRowStride=32768, dstSlices=0xbfffea98,
    srcWidth=3648, srcHeight=2736, srcDepth=1, srcFormat=6407, srcType=5121, srcAddr=0xa4fde008, srcPacking=0x8088cac) at main/texstore.c:1417
#1 0xb6d29f01 in _mesa_texstore (ctx=ctx@entry=0x807a218, dims=dims@entry=2, baseInternalFormat=6408, dstFormat=MESA_FORMAT_ARGB8888, dstRowStride=32768,
    dstSlices=dstSlices@entry=0xbfffea98, srcWidth=srcWidth@entry=3648, srcHeight=srcHeight@entry=2736, srcDepth=srcDepth@entry=1, srcFormat=srcFormat@entry=6407,
    srcType=srcType@entry=5121, srcAddr=srcAddr@entry=0xa4fde008, srcPacking=srcPacking@entry=0x8088cac) at main/texstore.c:4386
#2 0xb6d2a173 in store_texsubimage (ctx=ctx@entry=0x807a218, texImage=texImage@entry=0x82a4e40, xoffset=xoffset@entry=1, yoffset=yoffset@entry=2739,
    zoffset=zoffset@entry=0, width=width@entry=3648, height=height@entry=2736, depth=depth@entry=1, format=format@entry=6407, type=type@entry=5121,
    pixels=pixels@entry=0xa4fde008, packing=packing@entry=0x8088cac, caller=caller@entry=0xb6e4efe5 "glTexSubImage2D") at main/texstore.c:4517
#3 0xb6d2a795 in _mesa_store_texsubimage2d (ctx=ctx@entry=0x807a218, texImage=texImage@entry=0x82a4e40, xoffset=xoffset@entry=1, yoffset=yoffset@entry=2739,
    width=width@entry=3648, height=height@entry=2736, format=format@entry=6407, type=type@entry=5121, pixels=pixels@entry=0xa4fde008, packing=packing@entry=0x8088cac)
    at main/texstore.c:4653
#4 0xb6eeaf9a in intelTexSubImage2D (ctx=0x807a218, texImage=0x82a4e40, xoffset=1, yoffset=2739, width=3648, height=2736, format=6407, type=5121, pixels=0xa4fde008,
    packing=0x8088cac) at intel_tex_subimage.c:164
#5 0xb6d1535c in texsubimage (ctx=0x807a218, dims=dims@entry=2, target=target@entry=3553, level=level@entry=0, xoffset=xoffset@entry=1, yoffset=yoffset@entry=2739,
    zoffset=zoffset@entry=0, width=width@entry=3648, height=height@entry=2736, depth=depth@entry=1, format=format@entry=6407, type=type@entry=5121,
    pixels=pixels@entry=0xa4fde008) at main/teximage.c:2808
#6 0xb6d18712 in texsubimage (pixels=0xa4fde008, type=5121, format=6407, depth=1, height=2736, width=3648, zoffset=0, yoffset=2739, xoffset=1, level=0, target=3553,
    dims=2, ctx=<optimized out>) at main/teximage.c:2751
#7 _mesa_TexSubImage2D (target=3553, level=0, xoffset=1, yoffset=2739, width=3648, height=2736, format=6407, type=5121, pixels=0xa4fde008) at main/teximage.c:2853
#8 0xb7a854c6 in _cogl_texture_driver_upload_subregion_to_gl (gl_target=3553, gl_handle=6, is_foreign=0, src_x=0, src_y=0, dst_x=1, dst_y=2739, width=3648,
    height=2736, source_bmp=0x8071af0, source_gl_format=6407, source_gl_type=5121) at ./driver/gl/cogl-texture-driver-gl.c:176
#9 0xb7ac014a in _cogl_texture_2d_set_region (tex=0x82a7ad0, src_x=0, src_y=0, dst_x=1, dst_y=2739, dst_width=3648, dst_height=2736, bmp=0x8071af0)
    at ./cogl-texture-2d.c:783
#10 0xb7abf004 in cogl_texture_set_region_from_bitmap_EXP (texture=0x82a7ad0, src_x=src_x@entry=0, src_y=src_y@entry=0, dst_x=1, dst_y=2739,
    dst_width=dst_width@entry=3648, dst_height=dst_height@entry=2736, bmp=bmp@entry=0x8071af0) at ./cogl-texture.c:641
#11 0xb7ac60d2 in _cogl_atlas_texture_set_region_with_border (atlas_tex=atlas_tex@entry=0x82a6770, src_x=src_x@entry=0, src_y=src_y@entry=0, dst_x=dst_x@entry=0,
    dst_y=dst_y@entry=0, dst_width=dst_width@entry=3648, dst_height=dst_height@entry=2736, bmp=bmp@entry=0x8071af0) at ./cogl-atlas-texture.c:445
#12 0xb7ac6f9f in _cogl_atlas_texture_new_from_bitmap (bmp=bmp@entry=0x8071aa0, flags=flags@entry=COGL_TEXTURE_NONE, internal_format=<optimized out>,
    internal_format@entry=COGL_PIXEL_FORMAT_RGB_888) at ./cogl-atlas-texture.c:768
#13 0xb7abe1fa in cogl_texture_new_from_bitmap (bitmap=0x8071aa0, flags=COGL_TEXTURE_NONE, internal_format=COGL_PIXEL_FORMAT_RGB_888) at ./cogl-texture.c:366
#14 0xb7abe3a4 in cogl_texture_new_from_file (filename=0x8268690 "bilder-test/IMG_3147.JPG", flags=COGL_TEXTURE_NONE, internal_format=COGL_PIXEL_FORMAT_RGB_888,
    error=0xbfffee94) at ./cogl-texture.c:411
#15 0xb7f128e5 in clutter_texture_set_from_file () from /usr/lib/i386-linux-gnu/libclutter-1.0.so.0
#16 0x08049731 in constructor (type=134571872, n_construct_params=0, construct_params=0x0) at picview-manager.c:141
#17 0xb7e22689 in g_object_newv (object_type=object_type@entry=134571872, n_parameters=n_parameters@entry=0, parameters=parameters@entry=0x0)
    at /build/buildd/glib2.0-2.33.2/./gobject/gobject.c:1637
#18 0xb7e22c28 in g_object_new (object_type=134571872, first_property_name=first_property_name@entry=0x0) at /build/buildd/glib2.0-2.33.2/./gobject/gobject.c:1547
#19 0x08049844 in picview_manager_get () at picview-manager.c:204
#20 0x08049076 in main (argc=1, argv=0xbffff0c4) at main.c:172

dpkg -l|grep mesa
ii libgl1-mesa-dev 8.0.3-0ubuntu1 free implementation of the OpenGL API -- GLX development files
ii libgl1-mesa-dri:i386 8.0.3-0ubuntu1 free implementation of the OpenGL API -- DRI modules
ii libgl1-mesa-dri-dbg:i386 8.0.3-0ubuntu1 Debugging symbols for the Mesa DRI modules
ii libgl1-mesa-glx:i386 8.0.3-0ubuntu1 free implementation of the OpenGL API -- GLX runtime
ii libgl1-mesa-glx-dbg:i386 8.0.3-0ubuntu1 Debugging symbols for the Mesa GLX runtime
ii libglapi-mesa:i386 8.0.3-0ubuntu1 free implementation of the GL API -- shared library
ii libglu1-mesa:i386 8.0.3-0ubuntu1 Mesa OpenGL utility library (GLU)
ii libglu1-mesa-dev 8.0.3-0ubuntu1 Mesa OpenGL utility library -- development files
ii mesa-common-dev 8.0.3-0ubuntu1 Developer documentation for Mesa
ii mesa-utils 8.0.1+git20110129+d8f7d6b-0ubuntu2 Miscellaneous Mesa GL utilities

uname -a
Linux banane 3.5.0-1-generic #1-Ubuntu SMP Tue Jun 19 14:25:38 UTC 2012 i686 i686 i686 GNU/Linux

Tags: quantal
Revision history for this message
Thomas Bechtold (toabctl) wrote :
description: updated
Revision history for this message
In , Thomas Bechtold (toabctl) wrote :
Download full text (6.3 KiB)

Created attachment 63414
clutter test prigram to reproduce the bug

i'm trying to use clutter and textures and get a "Bus Error". The attached python program can reproduce the error. Here is a backtrace (produced with another C program):

Program received signal SIGBUS, Bus error.
0xb6d292a5 in _mesa_texstore_argb8888 (ctx=0x807a218, dims=2, baseInternalFormat=6408, dstFormat=MESA_FORMAT_ARGB8888, dstRowStride=32768, dstSlices=0xbfffea98,
    srcWidth=3648, srcHeight=2736, srcDepth=1, srcFormat=6407, srcType=5121, srcAddr=0xa4fde008, srcPacking=0x8088cac) at main/texstore.c:1417
1417 main/texstore.c: No such file or directory.
(gdb) bt
#0 0xb6d292a5 in _mesa_texstore_argb8888 (ctx=0x807a218, dims=2, baseInternalFormat=6408, dstFormat=MESA_FORMAT_ARGB8888, dstRowStride=32768, dstSlices=0xbfffea98,
    srcWidth=3648, srcHeight=2736, srcDepth=1, srcFormat=6407, srcType=5121, srcAddr=0xa4fde008, srcPacking=0x8088cac) at main/texstore.c:1417
#1 0xb6d29f01 in _mesa_texstore (ctx=ctx@entry=0x807a218, dims=dims@entry=2, baseInternalFormat=6408, dstFormat=MESA_FORMAT_ARGB8888, dstRowStride=32768,
    dstSlices=dstSlices@entry=0xbfffea98, srcWidth=srcWidth@entry=3648, srcHeight=srcHeight@entry=2736, srcDepth=srcDepth@entry=1, srcFormat=srcFormat@entry=6407,
    srcType=srcType@entry=5121, srcAddr=srcAddr@entry=0xa4fde008, srcPacking=srcPacking@entry=0x8088cac) at main/texstore.c:4386
#2 0xb6d2a173 in store_texsubimage (ctx=ctx@entry=0x807a218, texImage=texImage@entry=0x82a4e40, xoffset=xoffset@entry=1, yoffset=yoffset@entry=2739,
    zoffset=zoffset@entry=0, width=width@entry=3648, height=height@entry=2736, depth=depth@entry=1, format=format@entry=6407, type=type@entry=5121,
    pixels=pixels@entry=0xa4fde008, packing=packing@entry=0x8088cac, caller=caller@entry=0xb6e4efe5 "glTexSubImage2D") at main/texstore.c:4517
#3 0xb6d2a795 in _mesa_store_texsubimage2d (ctx=ctx@entry=0x807a218, texImage=texImage@entry=0x82a4e40, xoffset=xoffset@entry=1, yoffset=yoffset@entry=2739,
    width=width@entry=3648, height=height@entry=2736, format=format@entry=6407, type=type@entry=5121, pixels=pixels@entry=0xa4fde008, packing=packing@entry=0x8088cac)
    at main/texstore.c:4653
#4 0xb6eeaf9a in intelTexSubImage2D (ctx=0x807a218, texImage=0x82a4e40, xoffset=1, yoffset=2739, width=3648, height=2736, format=6407, type=5121, pixels=0xa4fde008,
    packing=0x8088cac) at intel_tex_subimage.c:164
#5 0xb6d1535c in texsubimage (ctx=0x807a218, dims=dims@entry=2, target=target@entry=3553, level=level@entry=0, xoffset=xoffset@entry=1, yoffset=yoffset@entry=2739,
    zoffset=zoffset@entry=0, width=width@entry=3648, height=height@entry=2736, depth=depth@entry=1, format=format@entry=6407, type=type@entry=5121,
    pixels=pixels@entry=0xa4fde008) at main/teximage.c:2808
#6 0xb6d18712 in texsubimage (pixels=0xa4fde008, type=5121, format=6407, depth=1, height=2736, width=3648, zoffset=0, yoffset=2739, xoffset=1, level=0, target=3553,
    dims=2, ctx=<optimized out>) at main/teximage.c:2751
#7 _mesa_TexSubImage2D (target=3553, level=0, xoffset=1, yoffset=2739, width=3648, height=2736, format=6407, type=5121, pixels=0xa4fde008) at main/teximage.c:2853
#8 0xb7a854c6 in _cogl_texture_driver_...

Read more...

Changed in mesa:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Thomas Bechtold (toabctl) wrote :

Here's the dmesg info:

dmesg |grep drm
[ 1.462479] [drm] Initialized drm 1.1.0 20060810
[ 1.468416] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 1.468417] [drm] Driver supports precise vblank timestamp query.
[ 1.938707] fbcon: inteldrmfb (fb0) is primary device
[ 1.938821] fb0: inteldrmfb frame buffer device
[ 1.938822] drm: registered panic notifier
[ 1.943318] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

Revision history for this message
In , Thomas Bechtold (toabctl) wrote :

The example code works for small images. i used a list of 10 images (each 3 MB) and then it crashs

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mesa (Ubuntu):
status: New → Confirmed
Revision history for this message
madbiologist (me-again) wrote :

Official support for Ubuntu 12.10 "Quantal Quetzel" has ended. Is this still occurring on Ubuntu 15.04 "Vivid Vervet"?

tags: added: quantal
Changed in mesa (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
In , Elizabethx-de-la-torre-mena (elizabethx-de-la-torre-mena) wrote :

Hello Thomas, is this still valid with latest SW? Thank you.

Changed in mesa:
status: Confirmed → Incomplete
Revision history for this message
In , Gitlab-migration (gitlab-migration) wrote :

-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/713.

Changed in mesa:
status: Incomplete → Unknown
Revision history for this message
Oibaf (oibaf) wrote :

New upstream link.

Changed in mesa:
importance: Medium → Unknown
Revision history for this message
Oibaf (oibaf) wrote :

Intel classic drivers were removed from mesa and replaced bye new gallium (iris/crocus) drivers.

From upstream bug report:
If you're still encountering issues with the latest Mesa using iris/crocus, or the latest i965 amber release, feel free to open a new bug.

Changed in mesa (Ubuntu):
status: Incomplete → Invalid
Changed in mesa:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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