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

editor: crash: memcpy-param-overlap #19

Open
matthiaskrgr opened this issue Aug 23, 2018 · 1 comment
Open

editor: crash: memcpy-param-overlap #19

matthiaskrgr opened this issue Aug 23, 2018 · 1 comment

Comments

@matthiaskrgr
Copy link
Collaborator

open editor
move center rectangle over a bot waypoint
press "p" key
=> boom

=================================================================
==5413==ERROR: AddressSanitizer: memcpy-param-overlap: memory ranges [0x625000050a4c,0x625000050d24) and [0x625000050a84, 0x625000050d5c) overlap
    #0 0x311f68 in __asan_memcpy /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cc:23:3
    #1 0x38c295 in DeleteWaypoint /tmp/FreedroidClassic/src/level_editor.c:508:5
    #2 0x387edc in LevelEditor /tmp/FreedroidClassic/src/level_editor.c:350:6
    #3 0x3a0252 in handle_OpenLevelEditor /tmp/FreedroidClassic/src/menu.c:465:5
    #4 0x3a31f5 in ShowMenu /tmp/FreedroidClassic/src/menu.c:901:13
    #5 0x3a278d in showMainMenu /tmp/FreedroidClassic/src/menu.c:695:3
    #6 0x37eac9 in ReactToSpecialKeys /tmp/FreedroidClassic/src/input.c:370:5
    #7 0x38ec47 in main /tmp/FreedroidClassic/src/main.c:125:4
    #8 0x7fd59225f222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)
    #9 0x27002d in _start (/tmp/FreedroidClassic/src/freedroid+0x27002d)
0x625000050a4c is located 2380 bytes inside of 7984-byte region [0x625000050100,0x625000052030)
allocated by thread T0 here:
    #0 0x31326a in __interceptor_calloc /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:97:3
    #1 0x3a86b1 in MyMalloc /tmp/FreedroidClassic/src/misc.c:1086:15
    #2 0x391a90 in LevelToStruct /tmp/FreedroidClassic/src/map.c:558:23
    #3 0x3916d9 in LoadShip /tmp/FreedroidClassic/src/map.c:287:30
    #4 0x378133 in InitNewMission /tmp/FreedroidClassic/src/init.c:689:8
    #5 0x38d622 in main /tmp/FreedroidClassic/src/main.c:86:7
    #6 0x7fd59225f222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)
0x625000050a84 is located 2436 bytes inside of 7984-byte region [0x625000050100,0x625000052030)
allocated by thread T0 here:
    #0 0x31326a in __interceptor_calloc /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:97:3
    #1 0x3a86b1 in MyMalloc /tmp/FreedroidClassic/src/misc.c:1086:15
    #2 0x391a90 in LevelToStruct /tmp/FreedroidClassic/src/map.c:558:23
    #3 0x3916d9 in LoadShip /tmp/FreedroidClassic/src/map.c:287:30
    #4 0x378133 in InitNewMission /tmp/FreedroidClassic/src/init.c:689:8
    #5 0x38d622 in main /tmp/FreedroidClassic/src/main.c:86:7
    #6 0x7fd59225f222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)
SUMMARY: AddressSanitizer: memcpy-param-overlap /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cc:23:3 in __asan_memcpy
==5413==ABORTING
@matthiaskrgr
Copy link
Collaborator Author

There's probably a problem when we try to remove a waypoint that is referenced to (has a connection) by another waypoint.

@ReinhardPrix ReinhardPrix added this to the harden-level-editor milestone Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants