#1 2014-05-16 06:38:30

jackyyf
Member

SegFault when changing resolution to 1920x1080

Game always SegFault after changing resolution to 1920x1080 at loading part.
Progress bar said "shader deferredlightn8Ftdpab"
Tried with your build and also my own build, my own build command:

  make CXXFLAGS="-Og -g3 -march=native" CFLAGS="-g3 -march=native -Og" -j4

There is one warning message while building:

engine/octarender.cpp: In function ‘void gencubeverts(cube&, const ivec&, int, int)’:
engine/octarender.cpp:1116:61: warning: ‘vis’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         int grassy = vslot.slot->grass && i!=O_BOTTOM ? (vis!=3 || convex ? 1 : 2) : 0;

Game message:

init: sdl
init: net
init: game
init: video
init: gl
Renderer: Mesa DRI Intel(R) Ironlake Mobile x86/MMX/SSE2 (Intel Open Source Technology Center)
Driver: 2.1 Mesa 10.1.2
GLSL: 1.20
Rendering using the OpenGL GLSL shader path.
init: console
init: world
init: sound
init: cfg
init: render
init: mainloop
Rendering using the OpenGL GLSL shader path.

GDB BackTrace (I think stack is corrupted):

#0  0x0ab99b24 in ?? ()
#1  0x22c06d29 in ?? ()
#2  0x00480028 in ?? ()
#3  0x10101010 in ?? ()
#4  0x00600040 in ?? ()
#5  0x20406d29 in ?? ()
#6  0x0048002a in ?? ()
#7  0x11001100 in ?? ()
#8  0x00600040 in ?? ()
#9  0x20607d3d in ?? ()
#10 0x008d02c0 in ?? ()
#11 0x3f000000 in ?? ()
#12 0x00600040 in ?? ()
#13 0x25007d3d in ?? ()
#14 0x008d4040 in ?? ()
#15 0x4486f000 in ?? ()
#16 0x00600041 in ?? ()
#17 0x204077be in ?? ()
#18 0x008d0060 in ?? ()
#19 0x000001d0 in ?? ()
#20 0x00600041 in ?? ()
#21 0x204077bd in ?? ()
#22 0x00000168 in ?? ()
#23 0x008d0060 in ?? ()
#24 0x00600041 in ?? ()
#25 0x22a077bd in ?? ()
#26 0x0000015c in ?? ()
#27 0x008d0060 in ?? ()
#28 0x00600041 in ?? ()
#29 0x22e077bd in ?? ()
#30 0x00000160 in ?? ()
#31 0x008d0060 in ?? ()
#32 0x00600041 in ?? ()
#33 0x23e077bd in ?? ()
#34 0x00000164 in ?? ()
#35 0x008d0060 in ?? ()
#36 0x00600041 in ?? ()
#37 0x256077bd in ?? ()
#38 0x008d0060 in ?? ()
#39 0x000001c0 in ?? ()
#40 0x00600041 in ?? ()
#41 0x206077be in ?? ()
#42 0x008d0500 in ?? ()
#43 0x000001d4 in ?? ()
#44 0x00600041 in ?? ()
#45 0x228077bd in ?? ()
#46 0x00000178 in ?? ()
#47 0x008d0500 in ?? ()
#48 0x00600041 in ?? ()
#49 0x22c077bd in ?? ()
#50 0x0000016c in ?? ()
#51 0x008d0500 in ?? ()
#52 0x00600041 in ?? ()
#53 0x23c077bd in ?? ()
#54 0x00000170 in ?? ()
#55 0x008d0500 in ?? ()
#56 0x00600041 in ?? ()
#57 0x240077bd in ?? ()
#58 0x00000174 in ?? ()
#59 0x008d0500 in ?? ()
#60 0x00600041 in ?? ()
#61 0x24e077bd in ?? ()
#62 0x008d0500 in ?? ()
#63 0x000001c4 in ?? ()
#64 0x02600031 in ?? ()
#65 0x23001f89 in ?? ()
#66 0x208d0000 in ?? ()
#67 0x04410102 in ?? ()
#68 0x00600040 in ?? ()
#69 0x238077bd in ?? ()
#70 0x008d0040 in ?? ()
#71 0x008d0280 in ?? ()
#72 0x00600040 in ?? ()
#73 0x23a077bd in ?? ()
#74 0x008d02a0 in ?? ()
#75 0x008d02c0 in ?? ()
#76 0x00600040 in ?? ()
#77 0x23c077bd in ?? ()
#78 0x008d02e0 in ?? ()
#79 0x008d03c0 in ?? ()
#80 0x00600040 in ?? ()
#81 0x23e077bd in ?? ()
#82 0x008d03e0 in ?? ()
#83 0x008d0400 in ?? ()
#84 0x00600040 in ?? ()
#85 0x204077bd in ?? ()
#86 0x008d0300 in ?? ()
#87 0x008d0320 in ?? ()
#88 0x00600041 in ?? ()
#89 0x22807fbd in ?? ()
#90 0x008d0300 in ?? ()
#91 0x40000000 in ?? ()
#92 0x00600041 in ?? ()
#93 0x22a07fbd in ?? ()
#94 0x008d0320 in ?? ()
#95 0x40000000 in ?? ()
#96 0x00600041 in ?? ()
#97 0x22c07fbd in ?? ()
#98 0x008d0340 in ?? ()
#99 0x40000000 in ?? ()
#100 0x00600040 in ?? ()
#101 0x24607fbd in ?? ()
#102 0x008d4360 in ?? ()
#103 0x3f800000 in ?? ()
#104 0x00600041 in ?? ()
#105 0x204077be in ?? ()
#106 0x008d0060 in ?? ()
#107 0x000001d8 in ?? ()
#108 0x00600041 in ?? ()
#109 0x206077be in ?? ()
#110 0x008d0500 in ?? ()
#111 0x000001dc in ?? ()
#112 0x02600010 in ?? ()
#113 0x20407fa5 in ?? ()
#114 0x008d0040 in ?? ()
#115 0x00000000 in ?? ()

I'm using Debian Jessie, with gcc 4.9.

[lastorder@LastOrder ~] $ uname -a
Linux LastOrder.jackyyf.me 3.13-1-686-pae #1 SMP Debian 3.13.10-1 (2014-04-15) i686 GNU/Linux

[lastorder@LastOrder ~] $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-linux-gnu/4.9/lto-wrapper
Target: i586-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.0-2' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --with-arch-32=i586 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i586-linux-gnu --host=i586-linux-gnu --target=i586-linux-gnu
Thread model: posix
gcc version 4.9.0 (Debian 4.9.0-2) 

OpenGL Related info:

Using integrated graphics in Core i3 350M (Intel HD 3000).

[lastorder@LastOrder ~] $ glxinfo 
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, 
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_swap_control
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, 
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile x86/MMX/SSE2
OpenGL version string: 2.1 Mesa 10.1.2
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_3DFX_texture_compression_FXT1, GL_AMD_performance_monitor, 
    GL_AMD_seamless_cubemap_per_texture, GL_AMD_shader_trinary_minmax, 
    GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5, 
    GL_APPLE_object_purgeable, GL_APPLE_packed_pixels, 
    GL_APPLE_vertex_array_object, GL_ARB_ES2_compatibility, 
    GL_ARB_clear_buffer_object, GL_ARB_color_buffer_float, GL_ARB_copy_buffer, 
    GL_ARB_debug_output, GL_ARB_depth_buffer_float, GL_ARB_depth_clamp, 
    GL_ARB_depth_texture, GL_ARB_draw_buffers, 
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_instanced, 
    GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions, 
    GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, 
    GL_ARB_fragment_shader, GL_ARB_framebuffer_object, 
    GL_ARB_framebuffer_sRGB, GL_ARB_get_program_binary, 
    GL_ARB_half_float_pixel, GL_ARB_half_float_vertex, 
    GL_ARB_instanced_arrays, GL_ARB_internalformat_query, 
    GL_ARB_invalidate_subdata, GL_ARB_map_buffer_alignment, 
    GL_ARB_map_buffer_range, GL_ARB_multisample, GL_ARB_multitexture, 
    GL_ARB_occlusion_query, GL_ARB_occlusion_query2, 
    GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite, 
    GL_ARB_provoking_vertex, GL_ARB_robustness, GL_ARB_sampler_objects, 
    GL_ARB_seamless_cube_map, GL_ARB_shader_bit_encoding, 
    GL_ARB_shader_objects, GL_ARB_shader_texture_lod, 
    GL_ARB_shading_language_100, GL_ARB_shadow, GL_ARB_sync, 
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression, 
    GL_ARB_texture_compression_rgtc, GL_ARB_texture_cube_map, 
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine, 
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, 
    GL_ARB_texture_float, GL_ARB_texture_mirror_clamp_to_edge, 
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two, 
    GL_ARB_texture_query_lod, GL_ARB_texture_rectangle, GL_ARB_texture_rg, 
    GL_ARB_texture_rgb10_a2ui, GL_ARB_texture_storage, GL_ARB_texture_swizzle, 
    GL_ARB_transpose_matrix, GL_ARB_vertex_array_bgra, 
    GL_ARB_vertex_array_object, GL_ARB_vertex_attrib_binding, 
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader, 
    GL_ARB_vertex_type_2_10_10_10_rev, GL_ARB_window_pos, 
    GL_ATI_blend_equation_separate, GL_ATI_draw_buffers, 
    GL_ATI_envmap_bumpmap, GL_ATI_separate_stencil, 
    GL_ATI_texture_env_combine3, GL_ATI_texture_float, GL_EXT_abgr, 
    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate, 
    GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract, 
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_draw_buffers2, 
    GL_EXT_draw_instanced, GL_EXT_draw_range_elements, GL_EXT_fog_coord, 
    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_object, 
    GL_EXT_framebuffer_sRGB, GL_EXT_gpu_program_parameters, 
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, 
    GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object, 
    GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_provoking_vertex, 
    GL_EXT_rescale_normal, GL_EXT_secondary_color, 
    GL_EXT_separate_shader_objects, GL_EXT_separate_specular_color, 
    GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, 
    GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, 
    GL_EXT_texture_array, GL_EXT_texture_compression_dxt1, 
    GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc, 
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, 
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine, 
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, 
    GL_EXT_texture_integer, GL_EXT_texture_lod_bias, GL_EXT_texture_object, 
    GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_decode, 
    GL_EXT_texture_shared_exponent, GL_EXT_texture_snorm, 
    GL_EXT_texture_swizzle, GL_EXT_timer_query, GL_EXT_vertex_array, 
    GL_EXT_vertex_array_bgra, GL_IBM_multimode_draw_arrays, 
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, 
    GL_INGR_blend_func_separate, GL_KHR_debug, GL_MESA_pack_invert, 
    GL_MESA_texture_signed_rgba, GL_MESA_window_pos, GL_NV_blend_square, 
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_light_max_exponent, 
    GL_NV_packed_depth_stencil, GL_NV_primitive_restart, 
    GL_NV_texgen_reflection, GL_NV_texture_env_combine4, 
    GL_NV_texture_rectangle, GL_OES_EGL_image, GL_OES_read_format, 
    GL_S3_s3tc, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, 
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

I haven't trying to start a game, will do if needed.

Offline

#2 2014-05-16 07:09:11

eihrul
Administrator

Re: SegFault when changing resolution to 1920x1080

You compiled with debugging symbols and made a backtrace. Regardless of whether you gave me enough to fix the issue, much <3 to you. :)

Mesa seems to have a bunch of weird inexplicable crashes in the driver with anything except newer Intel hardware. I don't think most of the paths in Mesa beyond what essentially Quake engines would use have been exercised much...

The fact that it was trying to compile the largest shader in the game at the time of the crash is rather suspicious. But any more than that, I can't say from the stripped backtrace.

So as far as these issues can be traced inside the Mesa driver, they should possibly be referred to them as well.

Offline

Board footer