#4279: attempting free on address which was not malloc()-ed
------------------------------------+-------------------------
        Reporter:  nsajko           |      Owner:
            Type:  bug              |     Status:  new
        Priority:  normal           |  Milestone:  unspecified
       Component:  other            |    Version:  3.1.2
Operating System:  GNU/Linux 64bit  |
------------------------------------+-------------------------
 Address Sanitizer reports faulty program memory handling:

 {{{
 ==8158==ERROR: AddressSanitizer: attempting free on address which was not
 malloc()-ed: 0x000001fe6de0 in thread T0
     #0 0x7f321e0dd51f in __interceptor_free
 (/usr/lib/libasan.so.1+0x5751f)
     #1 0x7f321ca72171 in alDeleteSources (/usr/lib/libopenal.so.1+0x17171)
     #2 0x827b5b in sound_DestroyIteratedSample
 
/home/nsajko/build/warzone2100/src/warzone2100-3.1.2/lib/sound/openal_track.cpp:290
     #3 0x82891e in sound_Update()
 
/home/nsajko/build/warzone2100/src/warzone2100-3.1.2/lib/sound/openal_track.cpp:389
     #4 0x824e32 in audio_Update()
 /home/nsajko/build/warzone2100/src/warzone2100-3.1.2/lib/sound/audio.cpp:613
     #5 0x803b91 in titleLoop()
 /home/nsajko/build/warzone2100/src/warzone2100-3.1.2/src/wrappers.cpp:269
     #6 0x5fc154 in runTitleLoop
 /home/nsajko/build/warzone2100/src/warzone2100-3.1.2/src/main.cpp:939
     #7 0x5fc154 in mainLoop()
 /home/nsajko/build/warzone2100/src/warzone2100-3.1.2/src/main.cpp:1011
     #8 0x94a63c in wzMain3()
 /home/nsajko/build/warzone2100/src/warzone2100-3.1.2/lib/sdl/main_sdl.cpp:1304
     #9 0x5fdd33 in realmain(int, char**)
 /home/nsajko/build/warzone2100/src/warzone2100-3.1.2/src/main.cpp:1342
     #10 0x7f321a2fc03f in __libc_start_main (/usr/lib/libc.so.6+0x2003f)
     #11 0x46a891 (/usr/bin/warzone2100+0x46a891)
 AddressSanitizer can not describe address in more detail (wild memory
 access suspected).
 SUMMARY: AddressSanitizer: bad-free ??:0 __interceptor_free
 ==8158==ABORTING
 }}}

--
Ticket URL: <http://developer.wz2100.net/ticket/4279>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to