2025-07-21 20:02 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002212AIAIpublic2010-11-10 20:30
Reporterabma 
Assigned ToKloot 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Summary0002212: kaik/engine crash in current master , with /cheat + /give all
Descriptionsee attached backtrace + infolog
Additional Information(gdb) bt
#0 0x00007ffff4656a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff465a5c0 in *__GI_abort () at abort.c:92
#2 0x00007ffff46904fb in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
0000003 0x00007ffff469a5b6 in malloc_printerr (action=3, str=0x7ffff476ab2e "malloc(): memory corruption", ptr=<value optimized out>) at malloc.c:6266
0000004 0x00007ffff469e6d8 in _int_malloc (av=0x7fffd4000020, bytes=1440) at malloc.c:4395
0000005 0x00007ffff469f58e in *__GI___libc_malloc (bytes=1440) at malloc.c:3660
#6 0x00007ffff4f0b26d in operator new(unsigned long) () from /usr/lib/libstdc++.so.6
#7 0x000000000089b807 in CUnitLoader::LoadUnit (this=0x7fffd59a4090, ud=0x7fffd4d9ae00, pos=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at /home/abma/dev/spring/master/rts/Sim/Units/UnitLoader.cpp:124
#8 0x00000000004ada81 in CGame::ActionReceived (this=<value optimized out>, action=<value optimized out>, playernum=<value optimized out>)
    at /home/abma/dev/spring/master/rts/Game/SyncedGameCommands.cpp:230
#9 0x00000000004a4530 in CGame::ClientReadNet (this=0x7fffd4182b90) at /home/abma/dev/spring/master/rts/Game/NetCommands.cpp:953
0000010 0x00000000004e30fc in CGame::Update (this=0x7fffd4182b90) at /home/abma/dev/spring/master/rts/Game/Game.cpp:999
#11 0x00000000009352cb in SpringApp::Update (this=0x7fffde912cc0) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1065
0000012 0x000000000093c48c in SpringApp::Run (this=0x7fffde912cc0, argc=<value optimized out>, argv=0x7fffffffe7e8) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1198
0000013 0x0000000000940638 in MainFunc (argc=1, argv=0x7fffffffe7e8, ret=0x7fffffffe6fc) at /home/abma/dev/spring/master/rts/System/Main.cpp:54
0000014 0x00007ffff625db70 in thread_proxy () from /usr/lib/libboost_thread.so.1.40.0
#15 0x00007ffff792e9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#16 0x00007ffff470970d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()
TagsNo tags attached.
Attached Files
  • log file icon backtrace.log (6,078 bytes) 2010-11-07 14:44
  • txt file icon infolog.txt (13,879 bytes) 2010-11-07 14:45 -
    LogOutput initialized.
    Spring 0.82+.4.0
    Build date/time: Oct 25 2010 23:22:42
    Available log subsystems: CollisionVolume, unit, ArchiveScanner, VFS-detail, VFS, Sound
    Enabled log subsystems: Sound
    Enable or disable log subsystems using the LogSubsystems configuration key
      or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
    using default configuration source "/home/abma/.springrc"
    [CMyMath::Init] CPU SSE mask: 888, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  0
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 1,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 64bit native mode
    Using read-write data directory: /home/abma/.spring/
    Using read-only data directory: /home/abma/local/spring/master/share/games/spring/
    Scanning: /home/abma/local/spring/master/share/games/spring/base
    Scanning: /home/abma/.spring/maps
    Scanning: /home/abma/.spring/mods
    Scanning: /home/abma/.spring/packages
    Supported Video modes: 1680x1050, 1600x1200, 1440x900, 1400x1050, 1366x768, 1360x768, 1280x1024, 1280x960, 1280x800, 1280x768, 1280x720, 1152x864, 1152x648, 1024x768, 800x600, 720x480, 640x480
    Video mode set to 1024x768/32bit (windowed)
    [      0] SDL:  1.2.14
    [      0] GL:   3.2.9756 Compatibility Profile Context
    [      0] GL:   ATI Technologies Inc.
    [      0] GL:   ATI Radeon HD 4200
    [      0] GLSL: 1.50
    [      0] GLEW: 1.5.2
    [      0] Joysticks found: 0
    [      0] Joystick 0 not found
    [      0] Connecting to local server
    [      0] Sound: OpenAL info:
    [      0] Sound:   Vendor:     OpenAL Community
    [      0] Sound:   Version:    1.1 ALSOFT 1.12.854
    [      0] Sound:   Renderer:   OpenAL Soft
    [      0] Sound:   AL Extensions: AL_EXTX_buffer_sub_data AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
    [      0] Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context
    [      0] Sound:                   ALC_EXT_EFX found (required for air absorption): yes
    [      0] Sound:   Device:     PulseAudio Software
    [      0] Sound:   Available Devices:  
    [      0] Sound:                       PulseAudio Software
    [      0] Sound: air absorption enabled: 0.1
    [      0] Starting GameServer: 5 ms
    [      0] Starting demo recording
    [      0] Using map: Throne v1
    [      0] Using mod: Balanced Annihilation V7.19-mytweaks
    [      0] Using mod archive: BA.sdd
    [      0] Recording Demo to demos/20101107_144326_Throne v1_0.82+.4.sdf
    [      0] Loading client data: 50 ms
    [      0] User number 0 (team 0, allyteam 0)
    [      0] Loading Radar Icons
    [      0] Loading GameData Definitions
    [      0] Loading all definitions:  0.184000
    [      0] Loading GameData Definitions: 203 ms
    [      0] Loading Sound Definitions
    [      0] Sound:  parsed 25 sounds from gamedata/sounds.lua
    [      0] Loading Sound Definitions: 0 ms
    [      0] Parsing Map Information
    [      0] Loading SMF
    [      0] Loading Map
    [      0] Creating Smooth Height Mesh
    [      0] Creating Smooth Mesh: 393 ms
    [      0] Creating QuadField & CEGs
    [      0] Number of damage types: 40
    [      0] Creating Unit Textures
    [      0] Loading Weapon Definitions
    [      0] Loading Unit Definitions
    [      0] Loading Feature Definitions
    [      0] Initializing Map Features
    [      0] Reading Estimate PathCosts [8]
    [      0] Reading Estimate PathCosts [32]
    [      0] [CPathManager] pathing data checksum: 8559913f
    [      0] Creating GroundDrawer
    [      0] Loading Tile Files
    [      0] Loading Tile Map
    [      0] generating MipMaps: 15 ms
    [      0] Creating TreeDrawer
    [      0] Creating Projectile Textures
    [      0] Creating Sky & Water
    [      0] Camera and mouse: 22 ms
    [      0] Loading console: 1 ms
    [      0] Loading LuaRules
    [      0] Loaded gadget:  No Self-D           <unit_prevent_share_selfd.lua>
    [      0] Loaded gadget:  Air Release         <unit_air_release_manager.lua>
    [      0] Loaded gadget:  AirPlantParents     <unit_air_plants.lua>
    [      0] Loaded gadget:  Commando Watch      <unit_commando_watch.lua>
    [      0] Loaded gadget:  DirectControl       <unit_direct_control.lua>
    [      0] Loaded gadget:  DragonsDisguise     <unit_set_neutral.lua>
    [      0] Loaded gadget:  DroppedStartPos     <unit_fix_dropped_startpos.lua>
    [      0] Loaded gadget:  FinishedBuilding    <unit_finished_building.lua>
    [      0] Loaded gadget:  Hitsphere Scaledown  <unit_hitsphere_scaledown.lua>
    [      0] Loaded gadget:  MissileControl      <unit_missile_delay.lua>
    [      0] Loaded gadget:  Napalm              <lups_napalm.lua>
    [      0] Loaded gadget:  No Land Damage      <unit_no_land_damage.lua>
    [      0] Loaded gadget:  No Self Pwn         <unit_noselfpwn.lua>
    [      0] Loaded gadget:  NoCost              <cmd_nocost.lua>
    [      0] Loaded gadget:  PassiveBuilders     <unit_passive_builders.lua>
    [      0] Loaded gadget:  Prevent Lab Hax     <unit_prevent_lab_hax.lua>
    [      0] Loaded gadget:  Prevent Load Hax    <unit_prevent_load_hax.lua>
    [      0] Loaded gadget:  Prevent Range Hax   <unit_prevent_range_hax.lua>
    [      0] Loaded gadget:  Prevent Strange Orders  <unit_prevent_strange_orders.lua>
    [      0] Loaded gadget:  Reclaim Fix         <unit_reclaim_fix.lua>
    [      0] Loaded gadget:  ShieldDrain         <unit_shield_watch.lua>
    [      0] Loaded gadget:  Shockwaves          <lups_shockwaves.lua>
    [      0] Loaded gadget:  Spawn               <init_game_spawn.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  fx_reclaim_shards   <fx_reclaim_shards.lua>
    [      0] Loaded gadget:  lups_wrapper.lua    <lups_wrapper.lua>
    [      0] Loaded gadget:  prevent_flying_com_wrecks  <unit_prevent_flying_com_wrecks.lua>
    [      0] Loaded gadget:  Area Attack         <areaattack.lua>
    [      0] Loaded gadget:  C Is For Control    <comiscontrol.lua>
    [      0] Loaded gadget:  Team Com Ends       <teamcomends.lua>
    [      0] Loaded gadget:  LupsSyncedManager   <lups_manager.lua>
    [      0] Loaded gadget:  Mex Upgrader Gadget  <unit_mex_upgrader.lua>
    [      0] Loaded gadget:  Air Release         <unit_air_release_manager.lua>
    [      0] Loaded gadget:  AirPlantParents     <unit_air_plants.lua>
    [      0] Loaded gadget:  DragonsDisguise     <unit_set_neutral.lua>
    [      0] Loaded gadget:  DroppedStartPos     <unit_fix_dropped_startpos.lua>
    [      0] Loaded gadget:  FinishedBuilding    <unit_finished_building.lua>
    [      0] Loaded gadget:  Hitsphere Scaledown  <unit_hitsphere_scaledown.lua>
    [      0] Loaded gadget:  MissileControl      <unit_missile_delay.lua>
    [      0] Loaded gadget:  Napalm              <lups_napalm.lua>
    [      0] Loaded gadget:  NoCost              <cmd_nocost.lua>
    [      0] Loaded gadget:  PassiveBuilders     <unit_passive_builders.lua>
    [      0] Loaded gadget:  Reclaim Fix         <unit_reclaim_fix.lua>
    [      0] Loaded gadget:  ShieldDrain         <unit_shield_watch.lua>
    [      0] Loaded gadget:  Shockwaves          <lups_shockwaves.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  fx_reclaim_shards   <fx_reclaim_shards.lua>
    [      0] Loaded gadget:  mo_enemywrecks      <mo_enemywrecks.lua>
    [      0] Loaded gadget:  mo_greenfields      <mo_greenfields.lua>
    [      0] Loaded gadget:  mo_noowner          <mo_noowner.lua>
    [      0] Loaded gadget:  mo_noshare          <mo_noshare.lua>
    [      0] Loaded gadget:  mo_nowrecks         <mo_nowrecks.lua>
    [      0] Loaded gadget:  prevent_flying_com_wrecks  <unit_prevent_flying_com_wrecks.lua>
    [      0] Loaded gadget:  Area Attack         <areaattack.lua>
    [      0] Loaded gadget:  C Is For Control    <comiscontrol.lua>
    [      0] Loaded gadget:  LupsSyncedManager   <lups_manager.lua>
    [      0] Loaded gadget:  Mex Upgrader Gadget  <unit_mex_upgrader.lua>
    [      0] Loaded gadget:  Lups                <lups_wrapper.lua>
    [      0] Loading LuaGaia
    [      0] Loading LuaUI
    [      0] Using LUAUI_DIRNAME = LuaUI/
    [      0] Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
    [      0] LuaUI: bound F11 to the widget selector
    [      0] LuaUI: bound CTRL+F11 to tweak mode
    [      0] Hardware is incompatible with Xray shader requirements
    [      0] Hardware is incompatible with Xray shader requirements
    [      0] Failed to load: unit_waypoint_dragger_2.lua  (duplicate name)
    [      0] Loading widget from mod:   Red_UI_Framework    <red_ui_framework.lua> ...
    [      0] Loading widget from mod:   MexUpg Helper       <helper.lua> ...
    [      0] Loading widget from mod:   Red Tooltip         <gui_red_tooltip.lua> ...
    [      0] Loading widget from mod:   Commander Name Tags   <unit_comm_nametags.lua> ...
    [      0] Loading widget from mod:   HealthBars          <unit_healthbars.lua> ...
    [      0] Loading widget from mod:   Ally Resource Bars  <gui_ally_res.lua> ...
    [      0] Loading widget from mod:   AdvPlayersList      <gui_advplayerslist.lua> ...
    [      0] Loading widget from user:  CommanderEnds       <gui_comm_ends.lua> ...
    [      0] Loading widget from mod:   BuildETA            <gui_build_eta.lua> ...
    [      0] Loading widget from mod:   Auto First Build Facing  <autofirstbuildfacing.lua> ...
    [      0] Loading widget from mod:   Autoquit            <autoquit.lua> ...
    [      0] Loading widget from mod:   CustomIcons         <unit_customicons.lua> ...
    [      0] Loading widget from mod:   Display DPS         <gui_display_dps.lua> ...
    [      0] Loading widget from mod:   Red_Drawing         <red_ui_framework_drawing.lua> ...
    [      0] Loading widget from mod:   BuildBar            <gui_buildbar.lua> ...
    [      0] BuildBar Warning: you deactivated the "blurApi" widget, please reactivate it.
    [      0] Loading widget from mod:   Red Console         <gui_red_console.lua> ...
    [      0] Loading widget from mod:   Red Resource Bars   <gui_red_resourcebars.lua> ...
    [      0] Loading widget from mod:   Loop Select         <unit_loop_select.lua> ...
    [      0] Loading widget from mod:   MohoExploiter       <unit_moho_exploiter.lua> ...
    [      0] Loading widget from mod:   MoreSounds          <unit_more_sounds.lua> ...
    [      0] Loading widget from mod:   Pause Screen        <gui_pausescreen.lua> ...
    [      0] Loading widget from mod:   Point Tracker       <gui_point_tracker.lua> ...
    [      0] Loading widget from mod:   Red Build/Order Menu  <gui_red_buildordermenu.lua> ...
    [      0] Loading widget from mod:   ReclaimInfo         <gui_reclaiminfo.lua> ...
    [      0] Loading widget from mod:   Share Tracker       <unit_share_tracker.lua> ...
    [      0] Loading widget from mod:   Transporting        <gui_transporting.lua> ...
    [      0] Loading widget from user:  ImmobileBuilder     <unit_immobile_buider.lua> ...
    [      0] Loading widget from user:  MetalMakers         <unit_metal_maker.lua> ...
    [      0] Loading widget from user:  Specific Unit Reclaimer  <unit_specific_unit_reclaimer.lua> ...
    [      0] Loading widget from user:  RelativeMinimap     <minimap_relative.lua> ...
    [      0] Loading widget from user:  Area Mex            <cmd_area_mex.lua> ...
    [      0] Loading widget from user:  Area Mex no button v2  <cmd_area_mex2.lua> ...
    [      0] Area Mex: Loaded for *A
    [      0] Mexmap detected - loading...
    [      0] mexmap imported from LuaUI/Widgets/MetalMaps/throne v1.springmexmap
    [      0] Loading widget from mod:   Build Split         <cmd_buildsplit.lua> ...
    [      0] Loading widget from mod:   NoDuplicateOrders   <cmd_no_duplicate_orders.lua> ...
    [      0] Loading widget from mod:   Improved MetalMakers  <unit_improved_metal_maker.lua> ...
    [      0] Loading widget from mod:   Defense Range       <gui_defenserange.lua> ...
    [      0] Loading widget from user:  Easy Facing         <gui_easyFacing.lua> ...
    [      0] Loading widget from mod:   Ghost Site          <unit_ghostsite.lua> ...
    [      0] Loading widget from mod:   Unit Marker         <unit_marker.lua> ...
    [      0] Loading widget from mod:   Take Reminder       <gui_take_remind.lua> ...
    [      0] Loading widget from mod:   GameTypeInfo        <gui_game_type_info.lua> ...
    [      0] Loading widget from mod:   Attack AoE          <gui_attack_aoe.lua> ...
    [      0] Loading widget from user:  BA Waypoint Dragger  <unit_waypoint_dragger.lua> ...
    [      0] Loading widget from user:  Bomber control      <unit_bomber_control.lua> ...
    [      0] Loading widget from mod:   Select n Center!    <gui_center_n_select.lua> ...
    [      0] Loading widget from mod:   LupsManager         <gfx_lups_manager.lua> ...
    [      0] Loading widget from mod:   BA_AllyCursors      <gui_ba_ally_cursors.lua> ...
    [      0] Loading widget from mod:   Lups                <lups_wrapper.lua> ...
    [      0] Loading widget from mod:   CustomFormations2   <unit_customformations2.lua> ...
    [      0] LuaUI v0.3
    [      0] Finalizing
    [      0] Connection attempt from UnnamedPlayer
    [      0]  -> Version: 0.82+.4.0
    [      0]  -> Connection established (given id 0)
    [      0] Player UnnamedPlayer finished loading and is now ingame
    [      0] GameID: 0eadd64c834af22eeba6e7411cdf4421
    [      0] UnnamedPlayer added point: Start 0
    [      0] SkirmishAI (ID = 0, team ID = 1) is using cheats!
    [      0] <SkirmishAI: KAIK 0.13 (team 1)>: KAI Metal Class by Krogothe
    [      0] <SkirmishAI: KAIK 0.13 (team 1)>: KAIK 0.13 Unofficial (built Nov  5 2010) initialized successfully!
    [      0] <SkirmishAI: KAIK 0.13 (team 1)>: logging events to /home/abma/.spring/AI/Skirmish/KAIK/0.13/logs/Throne_v1-5bf9e20b_Balanced_Annihilation_V7.19-mytweaks-2b645c31_11-7-2010_1443_team1.txt
    [      0] <SkirmishAI: KAIK 0.13 (team 1)>: (developed by Krogothe, Tournesol, Firenu; now maintained by Kloot)
    [     16] Skirmish AI Enemy (ID:0) took over control of team 1
    [     96] /cheat
    [     96] Cheating!
    [    169] /give all
    
    txt file icon infolog.txt (13,879 bytes) 2010-11-07 14:45 +

-Relationships
related to 0002197resolvedKloot KAIK SIGSEGV near end of game 
+Relationships

-Notes

~0005844

Kloot (developer)

quick note to self on how to reproduce:

1) start game against KAIK, mod BA 7.19, map Coast2Coast
2) wait until AI has loaded
3) /cheat
4) /give ajuno (as team 0)
5) crash in KAIK's CUnitHandler::IdleUnitUpdate

seems to be memory corruption in LosHandler related to ajuno LOS radii
+Notes

-Issue History
Date Modified Username Field Change
2010-11-07 14:44 abma New Issue
2010-11-07 14:44 abma File Added: backtrace.log
2010-11-07 14:45 abma File Added: infolog.txt
2010-11-07 14:45 abma Additional Information Updated
2010-11-07 17:11 Kloot Relationship added related to 0002197
2010-11-07 17:17 Kloot Note Added: 0005844
2010-11-10 20:30 Kloot Status new => resolved
2010-11-10 20:30 Kloot Resolution open => fixed
2010-11-10 20:30 Kloot Assigned To => Kloot
+Issue History