<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">0x00007ffff69058d7 in eg_surface_init_2d (surf_man=0x633ea0, surf=0x88d848, level=0x88dea8, bpe=1, tile_split=0, offset=65536, start_level=0)</span><br>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">It looks like division by 0. tile_split=0 from the call site.</font></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, May 20, 2013 at 4:11 AM, Vadim Girlin <span dir="ltr"><<a href="mailto:vadimgirlin@gmail.com" target="_blank">vadimgirlin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Reduced test app attached and below is gdb backtrace. I suspect something is not initialized properly but I'm not very familiar with this code.<br>
<br>
Vadim<br>
<br>
<br>
Program received signal SIGFPE, Arithmetic exception.<br>
0x00007ffff69058d7 in eg_surface_init_2d (surf_man=0x633ea0, surf=0x88d848, level=0x88dea8, bpe=1, tile_split=0, offset=65536, start_level=0)<br>
at radeon_surface.c:651<br>
651 slice_pt = tileb / tile_split;<br>
<br>
#0 0x00007ffff69058d7 in eg_surface_init_2d (surf_man=0x633ea0, surf=0x88d848, level=0x88dea8, bpe=1, tile_split=0, offset=65536, start_level=0)<br>
at radeon_surface.c:651<br>
#1 0x00007ffff6905eea in eg_surface_init_2d_miptrees (surf_man=0x633ea0, surf=0x88d848) at radeon_surface.c:807<br>
#2 0x00007ffff6906062 in eg_surface_init (surf_man=0x633ea0, surf=0x88d848) at radeon_surface.c:863<br>
#3 0x00007ffff6907fe6 in radeon_surface_init (surf_man=0x633ea0, surf=0x88d848) at radeon_surface.c:1901<br>
#4 0x00007ffff713260b in radeon_drm_winsys_surface_init (rws=0x6339a0, surf=0x88d848) at radeon_drm_winsys.c:477<br>
#5 0x00007ffff70a3e1c in r600_setup_surface (screen=0x6340d0, rtex=0x88d760, pitch_in_bytes_override=0) at r600_texture.c:203<br>
#6 0x00007ffff70a4774 in r600_texture_create_object (screen=0x6340d0, base=0x7fffffffd6d0, pitch_in_bytes_override=0, buf=0x0, surface=0x7fffffffc8e0)<br>
at r600_texture.c:432<br>
#7 0x00007ffff70a5268 in r600_texture_create (screen=0x6340d0, templ=0x7fffffffd6d0) at r600_texture.c:607<br>
#8 0x00007ffff708a5bd in r600_resource_create (screen=0x6340d0, templ=0x7fffffffd6d0) at r600_resource.c:38<br>
#9 0x00007ffff7125579 in dri2_drawable_process_buffers (drawable=0x88af80, buffers=0x88aea0, buffer_count=1, atts=0x88b628, att_count=2) at dri2.c:283<br>
#10 0x00007ffff712590a in dri2_allocate_textures (drawable=0x88af80, statts=0x88b628, statts_count=2) at dri2.c:404<br>
#11 0x00007ffff7123e6a in dri_st_framebuffer_validate (stfbi=0x88af80, statts=0x88b628, count=2, out=0x7fffffffd840) at dri_drawable.c:81<br>
#12 0x00007ffff6e461c1 in st_framebuffer_validate (stfb=0x88b1e0, st=0x883870) at ../../src/mesa/state_tracker/<u></u>st_manager.c:193<br>
#13 0x00007ffff6e472a8 in st_api_make_current (stapi=0x7ffff761b9e0 <st_gl_api>, stctxi=0x883870, stdrawi=0x88af80, streadi=0x88af80)<br>
at ../../src/mesa/state_tracker/<u></u>st_manager.c:721<br>
#14 0x00007ffff7122ce8 in dri_make_current (cPriv=0x7fdb70, driDrawPriv=0x88af40, driReadPriv=0x88af40) at dri_context.c:255<br>
#15 0x00007ffff6c6ba1f in driBindContext (pcp=0x7fdb70, pdp=0x88af40, prp=0x88af40) at ../../../../src/mesa/drivers/<u></u>dri/common/dri_util.c:382<br>
#16 0x00007ffff7dc57e3 in dri2_bind_context (context=0x7fd9d0, old=0x616650, draw=67108873, read=67108873) at dri2_glx.c:172<br>
#17 0x00007ffff7d8c253 in MakeContextCurrent (dpy=0x602040, draw=67108873, read=67108873, gc_user=0x7fd9d0) at glxcurrent.c:269<br>
#18 0x000000384e82713c in fgOpenWindow () from /lib64/libglut.so.3<br>
#19 0x000000384e825afa in fgCreateWindow () from /lib64/libglut.so.3<br>
#20 0x000000384e825b95 in fgCreateMenu () from /lib64/libglut.so.3<br>
#21 0x000000384e823cd3 in glutCreateMenu () from /lib64/libglut.so.3<br>
#22 0x0000000000400816 in main (argc=1, argv=0x7fffffffdf18) at test.c:17<br>
<br>
<br>_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br></div></div>