Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASAN/UBSAN single player #1167

Open
freedom1b2830 opened this issue Sep 19, 2023 · 0 comments
Open

ASAN/UBSAN single player #1167

freedom1b2830 opened this issue Sep 19, 2023 · 0 comments

Comments

@freedom1b2830
Copy link

all information is provided for the build done as in #1166
Is this for single player or multiplayer?
single

Description of the bug (and if possible, steps to reproduce the bug):
launch single player game (new/load)

OpenJK: v1.0.1.1 linux-x86_64 сен 19 2023
Initialising zone memory .....
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:386:31: runtime error: member access within misaligned address 0x60400000003a for type 'zoneTail_t', which requires 4 byte alignment
0x60400000003a: note: pointer points here
 be be  be be be be be be 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:386:31 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:386:31: runtime error: store to misaligned address 0x60400000003a for type 'int', which requires 4 byte alignment
0x60400000003a: note: pointer points here
 be be  be be be be be be 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:386:31 in 
----- FS_Startup -----
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:615:35: runtime error: member access within misaligned address 0x6060000004d5 for type 'zoneTail_t', which requires 4 byte alignment
0x6060000004d5: note: pointer points here
 70 6b 33 00 87 65 43  21 00 00 00 00 00 00 00  b9 96 6e cc b9 96 6e cc  f0 04 00 00 60 60 00 00  02
             ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:615:35 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:615:35: runtime error: load of misaligned address 0x6060000004d5 for type 'int', which requires 4 byte alignment
0x6060000004d5: note: pointer points here
 70 6b 33 00 87 65 43  21 00 00 00 00 00 00 00  b9 96 6e cc b9 96 6e cc  f0 04 00 00 60 60 00 00  02
             ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:615:35 in 
Current search path:
/home/user_me/.local/share/openjk/base/Sound saber.pk3 (22 files)
/home/user_me/.local/share/openjk/base/rutext.pk3 (66 files)
/home/user_me/.local/share/openjk/base/japlus_gla_anims.pk3 (6 files)
/home/user_me/.local/share/openjk/base/assets4.pk3 (65 files)
/home/user_me/.local/share/openjk/base/assets3.pk3 (16 files)
/home/user_me/.local/share/openjk/base/assets2.pk3 (62 files)
/home/user_me/.local/share/openjk/base/assets0.pk3 (14802 files)
/home/user_me/.local/share/openjk/base
./base
    
----------------------
15039 files in pk3 files
execing default.cfg
execing openjk_sp.cfg
couldn't exec autoexec_sp.cfg
Running Jedi Academy Mode
----- Client Initialization -----
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:586:15: runtime error: member access within misaligned address 0x5636fca2715e for type 'zoneHeader_t' (aka 'zoneHeader_s'), which requires 8 byte alignment
0x5636fca2715e: note: pointer points here
 87 65 43 21 87 65  43 21 0a 00 00 00 02 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:586:15 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:586:15: runtime error: load of misaligned address 0x5636fca2715e for type 'int', which requires 8 byte alignment
0x5636fca2715e: note: pointer points here
 87 65 43 21 87 65  43 21 0a 00 00 00 02 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:586:15 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:593:15: runtime error: member access within misaligned address 0x5636fca2715e for type 'zoneHeader_t' (aka 'zoneHeader_s'), which requires 8 byte alignment
0x5636fca2715e: note: pointer points here
 87 65 43 21 87 65  43 21 0a 00 00 00 02 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:593:15 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:593:15: runtime error: load of misaligned address 0x5636fca27162 for type 'memtag_t' (aka 'unsigned int'), which requires 4 byte alignment
0x5636fca27162: note: pointer points here
 87 65  43 21 0a 00 00 00 02 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/z_memman_pc.cpp:593:15 in 
----- Initializing Renderer ----
Trying to load "rdsp-vanilla_x86_64.so" from "."...
-------------------------------
----- Client Initialization Complete -----
--- Common Initialization Complete ---
SDL Version Compiled: 2.28.3
SDL Version Linked: 2.28.3
Unknown command "s@"
SDL using driver "x11"
Initializing display
Display aspect: 1.778
...setting mode 8: 1280 1024
Using 24 color bits, 24 depth, 8 stencil display.
Available modes: '320x180 432x243 480x270 512x288 640x360 720x405 800x450 864x486 960x540 1024x576 1280x720 1440x810 1600x900 1920x1080 360x202 684x384 1368x768 360x200 720x400 320x175 640x350 320x200 640x400 840x525 960x600 1280x800 1680x1050 700x450 1400x900 320x240 400x300 416x312 512x384 576x432 640x480 700x525 800x600 832x624 896x672 928x696 960x720 1024x768 1152x864 1280x960 1400x1050 640x512 1280x1024'
Initializing OpenGL extensions
...GL_S3_s3tc available
...GL_EXT_texture_compression_s3tc available
...no tc preference specified
.....using GL_EXT_texture_compression_s3tc
...using GL_EXT_texture_env_add
...GL_EXT_texture_filter_anisotropic available
...using GL_EXT_texture_filter_anisotropic
...using GL_EXT_texture_edge_clamp
...using GL_ARB_multitexture
...using GL_EXT_compiled_vertex_array
...GL_NV_register_combiners not found
    
GL_VENDOR: Intel
GL_RENDERER: Mesa Intel(R) UHD Graphics (TGL GT1)
GL_VERSION: 4.6 (Compatibility Profile) Mesa 23.1.7-arch1.1
GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_EXT_texture_buffer_object GL_AMD_texture_texture4 GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_copy_image GL_NV_texture_barrier GL_ARB_draw_indirect GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_shader_subroutine GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_EXT_direct_state_access GL_EXT_vertex_attrib_64bit GL_AMD_multi_draw_indirect GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_query_buffer_object GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_AMD_pinned_memory GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_compute_variable_group_size GL_ARB_enhanced_layouts GL_ARB_indirect_parameters GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shading_language_include GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_debug_label GL_EXT_shader_framebuffer_fetch GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_ARB_ES3_2_compatibility GL_ARB_fragment_shader_interlock GL_ARB_gpu_shader_int64 GL_ARB_parallel_shader_compile GL_ARB_post_depth_coverage GL_ARB_shader_atomic_counter_ops GL_ARB_shader_ballot GL_ARB_shader_clock GL_ARB_shader_viewport_layer_array GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_NV_fragment_shader_interlock GL_ARB_gl_spirv GL_ARB_spirv_extensions GL_MESA_shader_integer_functions GL_ARB_polygon_offset_clamp GL_ARB_texture_filter_anisotropic GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd GL_KHR_parallel_shader_compile GL_NV_alpha_to_coverage_dither_control GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_EGL_sync GL_EXT_demote_to_helper_invocation GL_NV_ES1_1_compatibility 
GL_MAX_TEXTURE_SIZE: 16384
GL_MAX_ACTIVE_TEXTURES_ARB: 8
    
PIXELFORMAT: color(24-bits) Z(24-bit) stencil(8-bits)
MODE: 8, 1280 x 1024 windowed hz:N/A
GAMMA: hardware w/ 0 overbright bits
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_LINEAR
picmip: 0
texture bits: 0
multitexture: enabled
compiled vertex arrays: enabled
texenv add: enabled
compressed textures: enabled
compressed lightmaps: disabled
texture compression method: GL_EXT_texture_compression_s3tc
anisotropic filtering: enabled  (16 of 16)
Dynamic Glow: disabled
    
------- sound initialization -------
SDL_Init( SDL_INIT_AUDIO )... OK
SDL audio driver is "pulseaudio".
SDL_AudioSpec:
  Format:   AUDIO_S16LSB
  Freq:     44100
  Samples:  1024
  Channels: 2
Starting SDL audio callback...
SDL audio initialized.
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/tr_ghoul2.cpp:3700:99: runtime error: member access within null pointer of type 'mdxmSurfHierarchy_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/tr_ghoul2.cpp:3700:99 in 
Extended sound quality field to contain very high option.
Disabling eax field because current platform does not support EAX.
Hiding eax_icon object because current platform does not support EAX.
Extended subtitles field to contain all voiceovers option.
UI menu load time = 327 milli seconds
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/client/cl_cin.cpp:1170:5: runtime error: call to function blitVQQuad32fs(unsigned char**, unsigned char*) through pointer to incorrect function type 'void (*)(unsigned char *, void *)'
/usr/src/debug/openjk-git/openjk-git/code/client/cl_cin.cpp:438: note: blitVQQuad32fs(unsigned char**, unsigned char*) defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/client/cl_cin.cpp:1170:5 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/client/cl_cin.cpp:1165:5: runtime error: call to function blitVQQuad32fs(unsigned char**, unsigned char*) through pointer to incorrect function type 'void (*)(unsigned char *, void *)'
/usr/src/debug/openjk-git/openjk-git/code/client/cl_cin.cpp:438: note: blitVQQuad32fs(unsigned char**, unsigned char*) defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/client/cl_cin.cpp:1165:5 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/G2_surfaces.cpp:153:93: runtime error: member access within null pointer of type 'mdxmSurfHierarchy_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/G2_surfaces.cpp:153:93 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/tr_backend.cpp:833:3: runtime error: call to function RB_SurfaceGhoul(CRenderableSurface*) through pointer to incorrect function type 'void (*)(void *)'
/usr/src/debug/openjk-git/openjk-git/code/rd-vanilla/tr_ghoul2.cpp:2772: note: RB_SurfaceGhoul(CRenderableSurface*) defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/tr_backend.cpp:833:3 in 
/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/tr_backend.cpp:684:4: runtime error: call to function RB_SurfaceGhoul(CRenderableSurface*) through pointer to incorrect function type 'void (*)(void *)'
/usr/src/debug/openjk-git/openjk-git/code/rd-vanilla/tr_ghoul2.cpp:2772: note: RB_SurfaceGhoul(CRenderableSurface*) defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/rd-vanilla/tr_backend.cpp:684:4 in 
------ Server Initialization ------
OpenJK: v1.0.1.1 linux-x86_64 сен 19 2023
Server: yavin1
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/cm_polylib.cpp:178:37: runtime error: member access within null pointer of type 'winding_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/qcommon/cm_polylib.cpp:178:37 in 
Sys_LoadSPGameDll(/home/user_me/.local/share/openjk/base/jagamex86_64.so) failed: "Failed loading /home/user_me/.local/share/openjk/base/jagamex86_64.so: /home/user_me/.local/share/openjk/base/jagamex86_64.so: cannot open shared object file: No such file or directory"
Sys_LoadSPGameDll(./base/jagamex86_64.so) failed: "Failed loading ./base/jagamex86_64.so: ./base/jagamex86_64.so: cannot open shared object file: No such file or directory"
Sys_LoadSPGameDll(/home/user_me/.local/share/openjk/base/jagamex86_64.so) failed: "Failed loading /home/user_me/.local/share/openjk/base/jagamex86_64.so: /home/user_me/.local/share/openjk/base/jagamex86_64.so: cannot open shared object file: No such file or directory"
Sys_LoadSPGameDll(./base/jagamex86_64.so) failed: "Failed loading ./base/jagamex86_64.so: ./base/jagamex86_64.so: cannot open shared object file: No such file or directory"
Sys_LoadSPGameDll(/home/user_me/.local/share/openjk/OpenJK/jagamex86_64.so) failed: "Failed loading /home/user_me/.local/share/openjk/OpenJK/jagamex86_64.so: /home/user_me/.local/share/openjk/OpenJK/jagamex86_64.so: cannot open shared object file: No such file or directory"
tty]/home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/server/sv_game.cpp:1062:24: runtime error: call to function GetGameAPI through pointer to incorrect function type 'void *(*)(void *)'
/usr/src/debug/openjk-git/openjk-git/code/game/g_main.cpp:885: note: GetGameAPI defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/user_sudo/.cache/yay/openjk-git/src/openjk-git/code/server/sv_game.cpp:1062:24 in 
------- Game Initialization -------
gamename: OpenJK
gamedate: сен 19 2023
tty]=================================================================
==355405==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7ffcdbabaa20 at pc 0x5636fc7c679d bp 0x7ffcdbaba870 sp 0x7ffcdbaba868
READ of size 8 at 0x7ffcdbabaa20 thread T0
    #0 0x5636fc7c679c in VM_DllSyscall(long, ...) /usr/src/debug/openjk-git/openjk-git/code/client/vmachine.cpp:78:13
    #1 0x7f42258d8f3c in G_ParseAnimationEvtFile(int, char const*, int, int, bool) /usr/src/debug/openjk-git/openjk-git/code/game/NPC_stats.cpp:811:8
    #2 0x7f42258d84ac in G_ParseAnimFileSet(char const*, char const*) /usr/src/debug/openjk-git/openjk-git/code/game/NPC_stats.cpp:1135:4
    #3 0x7f422558f1a9 in InitGame(char const*, char const*, int, char const*, int, int, int, SavedGameJustLoaded_e, qboolean) /usr/src/debug/openjk-git/openjk-git/code/game/g_main.cpp:783:2
    #4 0x5636fc8a5fad in SV_InitGameProgs() /usr/src/debug/openjk-git/openjk-git/code/server/sv_game.cpp:1087:2
    #5 0x5636fc8aafdf in SV_SpawnServer(char const*, ForceReload_e, qboolean) /usr/src/debug/openjk-git/openjk-git/code/server/sv_init.cpp:311:2
    #6 0x5636fc89b9d7 in SV_Map_(ForceReload_e) /usr/src/debug/openjk-git/openjk-git/code/server/sv_ccmds.cpp:83:2
    #7 0x5636fc89c890 in SV_Map_f() /usr/src/debug/openjk-git/openjk-git/code/server/sv_ccmds.cpp:285:6
    #8 0x5636fc81c822 in Cbuf_Execute() /usr/src/debug/openjk-git/openjk-git/code/qcommon/cmd.cpp:251:3
    #9 0x5636fc82757c in Com_Frame() /usr/src/debug/openjk-git/openjk-git/code/qcommon/common.cpp:1405:3
    #10 0x5636fc9ccac2 in main /usr/src/debug/openjk-git/openjk-git/shared/sys/sys_main.cpp:812:3
    #11 0x7f4261027ccf  (/usr/lib/libc.so.6+0x27ccf) (BuildId: 316d0d3666387f0e8fb98773f51aa1801027c5ab)
    #12 0x7f4261027d89 in __libc_start_main (/usr/lib/libc.so.6+0x27d89) (BuildId: 316d0d3666387f0e8fb98773f51aa1801027c5ab)
    #13 0x5636fc5ca5d4 in _start (/opt/openjk/JediAcademy/openjk_sp.x86_64+0x1ba5d4) (BuildId: 5a24ed4af21ac83e87177764f520e0ddd8de8b08)

Address 0x7ffcdbabaa20 is located in stack of thread T0 at offset 0 in frame
    #0 0x7f42258d8cef in G_ParseAnimationEvtFile(int, char const*, int, int, bool) /usr/src/debug/openjk-git/openjk-git/code/game/NPC_stats.cpp:794

  This frame has 5 object(s):
    [32, 80032) 'text' (line 797)
    [80288, 80296) 'text_p' (line 798)
    [80320, 80324) 'f' (line 799)
    [80336, 80400) 'eventsPath' (line 800)
    [80432, 80436) 'modelName' (line 840)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-underflow /usr/src/debug/openjk-git/openjk-git/code/client/vmachine.cpp:78:13 in VM_DllSyscall(long, ...)
Shadow bytes around the buggy address:
  0x7ffcdbaba780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbaba800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbaba880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbaba900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbaba980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x7ffcdbabaa00: 00 00 00 00[f1]f1 f1 f1 00 00 00 00 00 00 00 00
  0x7ffcdbabaa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbabab00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbabab80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbabac00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7ffcdbabac80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==355405==ABORTING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant