ASAN memcopy overlap on Ubuntu Budgie from libSDL 2.0.6+dfsg1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
I revived some Ubuntu Budgie I have on an USB-Stick for an older iMAC.
For the sake of completeness I compiled Widelands bzr8554[trunk].
On startup I immediately got the following assertions form ASAN:
[] [../src/
=======
==20453==ERROR: AddressSanitizer: memcpy-
#0 0xd05f06 (/home/
#1 0x7f01eea9be9a (/usr/lib/
#2 0x7f01eea9c3b6 (/usr/lib/
#3 0x7f01ee61492f (/usr/lib/
#4 0x165bd01 (/home/
#5 0x165b43b (/home/
#6 0x1659096 (/home/
#7 0x1657a10 (/home/
#8 0xda4e9d (/home/
#9 0xda3ac6 (/home/
#10 0xda2e17 (/home/
#11 0x7f01ebc541c0 (/lib/x86_
#12 0xcaf4e9 (/home/
0x62900046f200 is located 0 bytes inside of 18304-byte region [0x62900046f200
allocated by thread T0 here:
#0 0xd64d38 (/home/
#1 0x7f01ee614901 (/usr/lib/
#2 0x3fffffffffffffff (<unknown module>)
0x6290004703e0 is located 4576 bytes inside of 18304-byte region [0x62900046f200
allocated by thread T0 here:
#0 0xd64d38 (/home/
#1 0x7f01ee614901 (/usr/lib/
#2 0x3fffffffffffffff (<unknown module>)
SUMMARY: AddressSanitizer: memcpy-
==20453==ABORTING
libsdl2-mixer-dev is 2.0.1+dfsg1-3
libsdl2-dev is 2.0.6+dfsg1-
* Maybe this is an old / new Bug inherited from libSDL2
* Note thet message about disable_music
* starting widelands with --no sound works (tested upto the multiplayer lobby)
at the end I get:
=======
==20514==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 152 byte(s) in 1 object(s) allocated from:
#0 0xd64d38 (/home/
#1 0x7f0aaf1959d0 (/usr/lib/
#2 0xda4e8c (/home/
#3 0xda3ac6 (/home/
#4 0xda2e17 (/home/
#5 0x7f0aac2c41c0 (/lib/x86_
I will not use this computer again unril we _must_ reproduce this bug, so please
contact me if you need more details
Related branches
- Widelands Developers: Pending requested
-
Diff: 281 lines (+85/-31)4 files modifiedsrc/sound/sound_handler.cc (+42/-11)
src/sound/sound_handler.h (+7/-6)
src/ui_fsmenu/options.cc (+9/-2)
src/wui/game_options_sound_menu.cc (+27/-12)
Changed in widelands: | |
importance: | Undecided → High |
milestone: | none → build20-rc1 |
tags: | added: asan |
Changed in widelands: | |
assignee: | Klaus Halfmann (klaus-halfmann) → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Does not happen on OSX with bzr8554[trunk] and
libsdl2_mixer @2.0.2 and libsdl2 @2.0.7.
Can someone using Ubuntu on a regular basis compare, pelase?