snapcrafters / spelunky

Spelunky HD Classic
Other
11 stars 1 forks source link

SIGSEGV (Address boundary error) #4

Closed Zap123 closed 6 years ago

Zap123 commented 6 years ago

I can't seems to run this snap, I've tried both with the edge version (the one of the log) and the stable one. The output is the same, except that the edge one explicitly says that is a free() that crash the application. Could it be amdgpu related? I have a ryzen 2200g (mesa Mesa 18.1.5 from the x-swat repository).

***************************************
*     YoYo Games Linux Runner V1.3    *
***************************************  
CommandLine: -game game.unx
ExeName= /snap/spelunky/5/game/spelunky
MemoryManager allocated: 22202
INI DisplayName=Spelunky Classic HD
SavePrePend /home/luca/snap/spelunky/common/.config/SpelunkyClassicHD/ 
GAMEPAD: Initialising Ubuntu support
Attempting to set gamepadcount to 32
display=0x9769478
Display Size(Pixels): 1920,1080
CreateDesktopWindow 960,720
Win #1
XF86VidModeExtension-Version 2.2
/usr/share/libdrm/amdgpu.ids: No such file or directory
Got Doublebuffered Visual!
glX-Version 1.4
Icon: w=64 h=64
Creating window of width 960, height 720
sw=1920 wh=1080
WindowCentre: 480,180
Depth 24
Congrats, you have Direct Rendering!
sync = 0
**** 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_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_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 
Checking for GLX_EXT_swap_control
Checking for GLX_SGI_swap_control
Vsync: GLX_SGI
DOUBLE BUFFERED
OpenGL: version string 3.0 Mesa 18.0.5
OpenGL: vendor string X.Org
OpenGL GLSL: version string 1.30
Extensions:
GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_packed_pixels GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object 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_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_window_pos GL_ATI_blend_equation_separate GL_ATI_draw_buffers GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once 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_depth_bounds_test GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_gpu_program_parameters GL_EXT_memory_object GL_EXT_memory_object_fd 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_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_integer_mix 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_latc 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_mirror_clamp 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_transform_feedback 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_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_MESA_window_pos GL_NVX_gpu_memory_info GL_NV_blend_square GL_NV_conditional_render GL_NV_depth_clamp GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vdpau_interop 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 
Anisotropic filtering supported, max aniso 16
This is where it would have set them fullscreen= 0, they are 960,720    displaywidth/h 1920,1080
Texture #1 16,16
Texture #2 16,16
*** Error in `/snap/spelunky/5/game/spelunky': free(): invalid pointer: 0xe9502024 ***
fish: “spelunky” terminated by signal SIGSEGV (Address boundary error)

DMESG

[ 4441.119186] si_shader:1[20678]: segfault at fffffffc ip 000000000834f133 sp 00000000ec7dbbc0 error 4
[ 4441.119191] si_shader:0[20677]: segfault at fffffffc ip 000000000834f133 sp 00000000ecfdca90 error 4
[ 4441.119195]  in spelunky[8048000+424000]
[ 4441.119197]  in spelunky[8048000+424000]
[ 4441.119198] Code: 81 c1 00 01 00 00 81 f9 00 ff 0f 00 72 ec 05 ff 0f 00 00 89 35 d0 c2 7d 08 a3 
[ 4441.119210] Code: 
[ 4441.119210] d8 c2 7d 
[ 4441.119212] 81 
[ 4441.119213] 08 
[ 4441.119214] c1 00 
[ 4441.119215] 48 a3 
[ 4441.119217] 01 
[ 4441.119217] d8 
[ 4441.119218] 00 00 
[ 4441.119220] c2 7d 
[ 4441.119221] 81 f9 
[ 4441.119222] 08 
[ 4441.119223] 00 
[ 4441.119224] ff 
[ 4441.119225] ff 
[ 4441.119226] 05 d4 
[ 4441.119227] 0f 
[ 4441.119228] c2 
[ 4441.119228] 00 72 
[ 4441.119229] 7d 
[ 4447.162206] si_shader:1[20780]: segfault at 5 ip 00000000ef34ec7f sp 00000000ec828df0 error 4 in libLLVM-5.0.so.1[ee1ef000+36f4000]
[ 4447.162212] Code: 0f 85 c5 00 00 00 89 47 04 8b 46 18 3b 46 1c 74 7a 85 c0 8b 54 24 2c 74 09 89 10 8b 46 18 8b 54 24 2c 83 c0 04 89 46 18 8b 06 <8b> 4a 04 89 54 24 3c 89 44 24 48 8b 46 30 3b 46 34 89 4c 24 40 8d 
[ 4668.372334] si_shader:0[20953]: segfault at 0 ip 00000000ef0fc93e sp 00000000ecfa5ee0 error 4 in libLLVM-5.0.so.1[ee16b000+36f4000]
[ 4668.372340] Code: 40 04 8b 10 8b 58 04 39 da 74 1f 8b 89 9c d9 ff ff 39 0a 8d 42 08 75 0c eb 1a 66 90 83 c0 08 39 48 f8 74 10 39 c3 89 c2 75 f2 <a1> 00 00 00 00 0f 0b 8d 76 00 8b 42 04 83 ec 08 8b 10 51 50 ff 52 
[ 4670.242136] si_shader:2[21027]: segfault at 28 ip 00000000ee7c48a2 sp 00000000ebf55a30 error 4 in libLLVM-5.0.so.1[ee11d000+36f4000]
[ 4670.242142] Code: 00 00 83 ec 08 89 44 24 18 89 84 24 b0 00 00 00 89 84 24 b4 00 00 00 89 84 24 b8 00 00 00 8b 44 24 44 89 4c 24 10 8b 10 51 50 <ff> 52 28 8d 84 24 dc 00 00 00 8d 94 24 d0 00 00 00 89 44 24 24 89 
[ 4672.918480] si_shader:1[21091]: segfault at 6d2d706e ip 00000000ee7bf02a sp 00000000ec8179ac error 4 in libLLVM-5.0.so.1[ee1de000+36f4000]
[ 4672.918487] Code: 8b 44 24 04 8b 00 85 c0 74 0e 80 78 08 01 0f 94 c0 c3 8d b6 00 00 00 00 31 c0 c3 90 8d 74 26 00 8b 44 24 04 8b 00 85 c0 74 0e <80> 78 08 02 0f 94 c0 c3 8d b6 00 00 00 00 31 c0 c3 90 8d 74 26 00 
[ 4673.856483] si_shader:0[21149]: segfault at 3 ip 00000000ee70d59a sp 00000000ecfc9bd0 error 4 in libLLVM-5.0.so.1[ee18f000+36f4000]
[ 4673.856491] Code: 48 8b 48 04 85 c9 74 68 31 f6 85 ff 89 d0 8d 2c 3a 0f 84 ee 00 00 00 89 f6 8d bc 27 00 00 00 00 89 f3 83 c0 01 c1 e3 05 01 de <0f> b6 58 ff 01 de 39 e8 75 ec 8d 41 ff 89 44 24 0c 21 f0 8d 1c 85 
[ 4768.092440] audit: type=1400 audit(1534327529.744:187): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.spelunky.launcher" pid=21431 comm="apparmor_parser"
[ 4768.097208] audit: type=1400 audit(1534327529.748:188): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.spelunky.spelunky" pid=21433 comm="apparmor_parser"
[ 4768.101000] audit: type=1400 audit(1534327529.752:189): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.spelunky" pid=21435 comm="apparmor_parser"
[ 4768.276048] audit: type=1400 audit(1534327529.928:190): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/5279/usr/lib/snapd/snap-confine" pid=21452 comm="apparmor_parser"
[ 4768.276053] audit: type=1400 audit(1534327529.928:191): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/5279/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=21452 comm="apparmor_parser"
[ 4768.280137] audit: type=1400 audit(1534327529.932:192): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.core" pid=21454 comm="apparmor_parser"
[ 4768.283278] audit: type=1400 audit(1534327529.932:193): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.core.hook.configure" pid=21456 comm="apparmor_parser"
[ 4784.055951] si_shader:1[21521]: segfault at 12 ip 0000000008381d0d sp 00000000ec0cce50 error 4 in spelunky[8048000+468000]
[ 4784.055961] Code: 8d 3c 11 83 c2 40 81 fa c0 ff 07 00 72 ef 05 ff 1f 00 00 89 35 3c 06 83 08 a3 44 06 83 08 48 a3 44 06 83 08 ff 05 40 06 83 08 <8b> 06 a3 3c 06 83 08 84 db 74 6f c7 46 04 00 00 00 00 c7 06 00 00 
Zap123 commented 6 years ago

Sorry it doesn't work with the non-snap version too so it is not an issue related to this package