Skip to content

Loading…

Invalid pointer detection by glibc #15

Closed
Bertram25 opened this Issue · 27 comments

3 participants

@Bertram25
Valyria Tear member

From Shirish:
~/games/valyriatear$ ./src/valyriatear
*** glibc detected *** ./src/valyriatear: free(): invalid pointer:
0x00007f692c554490 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75b76)[0x7f693d745b76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f693d74a8ac]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x1605e4)[0x7f6930e345e4]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x160ba8)[0x7f6930e34ba8]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x1d794d)[0x7f6930eab94d]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x1b8cc5)[0x7f6930e8ccc5]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x1b8cad)[0x7f6930e8ccad]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0xdcab7)[0x7f6930db0ab7]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0xdce47)[0x7f6930db0e47]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0xdcef9)[0x7f6930db0ef9]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0xdcc47)[0x7f6930db0c47]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x151dea)[0x7f6930e25dea]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x151eee)[0x7f6930e25eee]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x14b9e5)[0x7f6930e1f9e5]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x78344)[0x7f6930d4c344]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x53252)[0x7f6930d27252]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x33033)[0x7f6930d07033]
/usr/lib/x86_64-linux-gnu/libGL.so.1(+0x4606c)[0x7f693f8b506c]
/usr/lib/x86_64-linux-gnu/libGL.so.1(glXDestroyContext+0x121)[0x7f693f88e5e1]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x3c9b2)[0x7f69403b99b2]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x4093c)[0x7f69403bd93c]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(+0x40b25)[0x7f69403bdb25]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(SDL_VideoQuit+0x4e)[0x7f69403afe4e]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(SDL_QuitSubSystem+0x55)[0x7f6940389755]
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0(SDL_Quit+0xe)[0x7f69403897fe]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7f693d706df2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45)[0x7f693d706e45]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x104)[0x7f693d6eeeb4]

I can't really know where that one comes from.

@Bertram25
Valyria Tear member

I'll add more of them whenever they come out.

@Bertram25
Valyria Tear member

I don't have them unfortunately but for memory, there is sometimes a leak/memory corruption? in the audio manager and in the script manager.
As for the script manager, I'm suspecting the battle script handling, but I have no evidence so far.

@Bertram25
Valyria Tear member

Invalid pointer bit about Audio Managerment from Shirish:
Happens at random when quitting using the pause menu:

$ ./src/valyriatear
WARNING:/home/shirish/games/valyriatear/src/engine/audio/audio.cpp:~AudioEngine:165:
5 SoundDescriptor objects were still registered when destructor was
invoked
WARNING:/home/shirish/games/valyriatear/src/engine/audio/audio.cpp:~AudioEngine:169:
3 MusicDescriptor objects were still registered when destructor was
invoked
*** glibc detected *** ./src/valyriatear: free(): invalid pointer:
0x0000000002361830 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75b76)[0x7f5a8f6e6b76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f5a8f6eb8ac]
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so(+0x1b8cad)[0x7f5a82e2dcad]
======= Memory map: ========
00400000-00e31000 r-xp 00000000 08:0a 2757039
/home/shirish/games/valyriatear/src/valyriatear
01030000-01033000 rw-p 00a30000 08:0a 2757039
/home/shirish/games/valyriatear/src/valyriatear
01033000-01036000 rw-p 00000000 00:00 0
01bdc000-02cb6000 rw-p 00000000 00:00 0 [heap]
7f5a79543000-7f5a79544000 rw-p 00000000 00:00 0
7f5a7ad82000-7f5a7af02000 rw-s 139f64000 00:05 4343
/dev/dri/card0
7f5a7af02000-7f5a7af03000 rw-s 00000000 00:04 7691109
/drm mm object (deleted)
7f5a7af03000-7f5a7af04000 rw-s 00000000 00:04 7691070
/drm mm object (deleted)
7f5a7af04000-7f5a7b084000 rw-s 139dc4000 00:05 4343
/dev/dri/card0
7f5a7b9c4000-7f5a7bb44000 rw-s 133ed7000 00:05 4343
/dev/dri/card0
7f5a7bb44000-7f5a7bb45000 rw-s 00000000 00:04 7691097
/drm mm object (deleted)
7f5a7bb45000-7f5a7bb46000 rw-s 00000000 00:04 7691094
/drm mm object (deleted)
7f5a7bb46000-7f5a7bb47000 rw-s 00000000 00:04 7691092
/drm mm object (deleted)
7f5a7bb47000-7f5a7bb48000 rw-s 00000000 00:04 7691091
/drm mm object (deleted)
7f5a7bb48000-7f5a7bb49000 rw-s 00000000 00:04 7691102
/drm mm object (deleted)
7f5a7bb49000-7f5a7bb4a000 rw-s 00000000 00:04 7691101
/drm mm object (deleted)
7f5a7bb4a000-7f5a7bb4b000 rw-s 00000000 00:04 7691100
/drm mm object (deleted)
7f5a7bb4b000-7f5a7bb4c000 rw-s 00000000 00:04 7691090
/drm mm object (deleted)
7f5a7bb4c000-7f5a7bb4d000 rw-s 00000000 00:04 7691085
/drm mm object (deleted)
7f5a7bb4d000-7f5a7bb4e000 rw-s 00000000 00:04 7691084
/drm mm object (deleted)
7f5a7bb4e000-7f5a7bb4f000 rw-s 00000000 00:04 7691074
/drm mm object (deleted)
7f5a7bb4f000-7f5a7bb50000 rw-s 00000000 00:04 7691068
/drm mm object (deleted)
7f5a7bb50000-7f5a7bb51000 rw-s 00000000 00:04 7691067
/drm mm object (deleted)
7f5a7bb51000-7f5a7bb52000 rw-s 00000000 00:04 7690880
/drm mm object (deleted)
7f5a7bb52000-7f5a7bb53000 rw-s 00000000 00:04 7691096
/drm mm object (deleted)
7f5a7bb53000-7f5a7bb54000 rw-s 00000000 00:04 7690990
/drm mm object (deleted)
7f5a7bb54000-7f5a7bb55000 rw-s 00000000 00:04 7691095
/drm mm object (deleted)
7f5a7bb55000-7f5a7bb56000 rw-s 00000000 00:04 7690982
/drm mm object (deleted)
7f5a7bb56000-7f5a7bb57000 rw-s 00000000 00:04 7691093
/drm mm object (deleted)
7f5a7bb57000-7f5a7bb58000 rw-s 00000000 00:04 7691089
/drm mm object (deleted)
7f5a7bb58000-7f5a7bb59000 rw-s 00000000 00:04 7691088
/drm mm object (deleted)
7f5a7bb59000-7f5a7bb5a000 rw-s 00000000 00:04 7691086
/drm mm object (deleted)
7f5a7bb5a000-7f5a7bb5b000 rw-s 00000000 00:04 7691083
/drm mm object (deleted)
7f5a7bb5b000-7f5a7bb5c000 rw-s 00000000 00:04 7691082
/drm mm object (deleted)
7f5a7bb5c000-7f5a7bb5d000 rw-s 00000000 00:04 7691081
/drm mm object (deleted)
7f5a7bb5d000-7f5a7bb5e000 rw-s 00000000 00:04 7691080
/drm mm object (deleted)
7f5a7bb5e000-7f5a7bb5f000 rw-s 00000000 00:04 7691079
/drm mm object (deleted)
7f5a7bb5f000-7f5a7bb60000 rw-s 00000000 00:04 7691077
/drm mm object (deleted)
7f5a7bb60000-7f5a7bb61000 rw-s 00000000 00:04 7691076
/drm mm object (deleted)
7f5a7bb61000-7f5a7bb62000 rw-s 00000000 00:04 7691075
/drm mm object (deleted)
7f5a7bb62000-7f5a7bb63000 rw-s 00000000 00:04 7691073
/drm mm object (deleted)
7f5a7bb63000-7f5a7bb64000 rw-s 00000000 00:04 7691072
/drm mm object (deleted)
7f5a7bb64000-7f5a7bb65000 rw-s 00000000 00:04 7691071
/drm mm object (deleted)
7f5a7bb65000-7f5a7bb66000 rw-s 00000000 00:04 7691069
/drm mm object (deleted)
7f5a7bb66000-7f5a7bb67000 rw-s 00000000 00:04 7691066
/drm mm object (deleted)
7f5a7bb67000-7f5a7bb68000 rw-s 00000000 00:04 7691065
/drm mm object (deleted)
7f5a7bb68000-7f5a7bb69000 rw-s 00000000 00:04 7691064
/drm mm object (deleted)
7f5a7bb69000-7f5a7bb6a000 rw-s 00000000 00:04 7691063
/drm mm object (deleted)
7f5a7bb6a000-7f5a7bb6b000 rw-s 00000000 00:04 7691062
/drm mm object (deleted)
7f5a7bb6b000-7f5a7bb6c000 rw-s 00000000 00:04 7691061
/drm mm object (deleted)
7f5a7bb6c000-7f5a7bb6d000 rw-s 00000000 00:04 7690977
/drm mm object (deleted)
7f5a7bb6d000-7f5a7bb6e000 rw-s 00000000 00:04 7691744
/drm mm object (deleted)
7f5a7bb6e000-7f5a7bcee000 rw-s 165d8f000 00:05 4343
/dev/dri/card0
7f5a7bcee000-7f5a7be6e000 rw-s 165bff000 00:05 4343
/dev/dri/card0
7f5a7bfee000-7f5a7bfef000 rw-s 00000000 00:04 7690991
/drm mm object (deleted)
7f5a7bfef000-7f5a7bff0000 rw-s 00000000 00:04 7690989
/drm mm object (deleted)
7f5a7bff0000-7f5a7bff1000 rw-s 00000000 00:04 7690987
/drm mm object (deleted)
7f5a7bff1000-7f5a7bff2000 rw-s 00000000 00:04 7690986
/drm mm object (deleted)
7f5a7bff2000-7f5a7bff3000 rw-s 00000000 00:04 7690985
/drm mm object (deleted)
7f5a7bff3000-7f5a7bff4000 rw-s 00000000 00:04 7690984
/drm mm object (deleted)
7f5a7bff4000-7f5a7bff5000 rw-s 00000000 00:04 7690983
/drm mm object (deleted)
7f5a7bff5000-7f5a7bff6000 rw-s 00000000 00:04 7690981
/drm mm object (deleted)
7f5a7bff6000-7f5a7bff7000 rw-s 00000000 00:04 7690979
/drm mm object (deleted)
7f5a7bff7000-7f5a7bff8000 rw-s 00000000 00:04 7690978
/drm mm object (deleted)
7f5a7bff8000-7f5a7bff9000 rw-s 00000000 00:04 7690976
/drm mm object (deleted)
7f5a7bff9000-7f5a7bffa000 rw-s 00000000 00:04 7690975
/drm mm object (deleted)
7f5a7bffa000-7f5a7bffb000 rw-s 00000000 00:04 7690974
/drm mm object (deleted)
7f5a7bffb000-7f5a7bffc000 rw-s 00000000 00:04 7690973
/drm mm object (deleted)
7f5a7bffc000-7f5a7bffd000 rw-s 00000000 00:04 7690972
/drm mm object (deleted)
7f5a7bffd000-7f5a7bffe000 rw-s 00000000 00:04 7690971
/drm mm object (deleted)
7f5a7bffe000-7f5a7bfff000 rw-s 00000000 00:04 7690970
/drm mm object (deleted)
7f5a7bfff000-7f5a7c000000 rw-s 00000000 00:04 7691825
/drm mm object (deleted)
7f5a7c000000-7f5a7c0d8000 rw-p 00000000 00:00 0
7f5a7c0d8000-7f5a80000000 ---p 00000000 00:00 0
7f5a801c3000-7f5a807c3000 rw-s 1565dc000 00:05 4343
/dev/dri/card0
7f5a81005000-7f5a81006000 rw-s 00000000 00:04 7692394
/drm mm object (deleted)
7f5a81006000-7f5a81007000 rw-s 00000000 00:04 7692393
/drm mm object (deleted)
7f5a81007000-7f5a81008000 rw-s 00000000 00:04 7692391
/drm mm object (deleted)
7f5a81008000-7f5a81009000 rw-s 00000000 00:04 7692390
/drm mm object (deleted)
7f5a81009000-7f5a8100a000 rw-s 00000000 00:04 7692389
/drm mm object (deleted)
7f5a8100a000-7f5a8100b000 rw-s 00000000 00:04 7692388
/drm mm object (deleted)
7f5a8100b000-7f5a8100c000 rw-s 00000000 00:04 7692386
/drm mm object (deleted)
7f5a8100c000-7f5a8100d000 rw-s 00000000 00:04 7692330
/drm mm object (deleted)
7f5a8100d000-7f5a8100e000 rw-s 00000000 00:04 7692369
/drm mm object (deleted)
7f5a81012000-7f5a81013000 rw-s 00000000 00:04 7692329
/drm mm object (deleted)
7f5a81013000-7f5a81014000 rw-s 00000000 00:04 7692202
/drm mm object (deleted)
7f5a81014000-7f5a81015000 rw-s 00000000 00:04 7692201
/drm mm object (deleted)
7f5a81015000-7f5a81016000 rw-s 00000000 00:04 7692200
/drm mm object (deleted)
7f5a81016000-7f5a81017000 rw-s 00000000 00:04 7692199
/drm mm object (deleted)
7f5a81017000-7f5a81018000 rw-s 00000000 00:04 7692198
/drm mm object (deleted)
7f5a81018000-7f5a81019000 rw-s 00000000 00:04 7692197
/drm mm object (deleted)
7f5a81019000-7f5a8101a000 rw-s 00000000 00:04 7691099
/drm mm object (deleted)
7f5a8101a000-7f5a8101b000 rw-s 00000000 00:04 7690891
/drm mm object (deleted)
7f5a8101b000-7f5a8101c000 rw-s 00000000 00:04 7692331
/drm mm object (deleted)
7f5a8101c000-7f5a8119c000 rw-s 15879a000 00:05 4343
/dev/dri/card0
7f5a8151c000-7f5a8169c000 rw-s 134aff000 00:05 4343
/dev/dri/card0
7f5a8169c000-7f5a8169f000 r-xp 00000000 08:09 2133686
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5a8169f000-7f5a8189e000 ---p 00003000 08:09 2133686
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5a8189e000-7f5a8189f000 r--p 00002000 08:09 2133686
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5a8189f000-7f5a818a0000 rw-p 00003000 08:09 2133686
/usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5a818a0000-7f5a81a20000 rw-s 130bc7000 00:05 4343
/dev/dri/card0
7f5a81a20000-7f5a81ba0000 rw-s 130a47000 00:05 4343
/dev/dri/card0
7f5a82624000-7f5a8262c000 r-xp 00000000 08:09 2100827
/usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5a8262c000-7f5a8282b000 ---p 00008000 08:09 2100827
/usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5a8282b000-7f5a8282c000 r--p 00007000 08:09 2100827
/usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5a8282c000-7f5a8282d000 rw-p 00008000 08:09 2100827
/usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5a8282d000-7f5a8284a000 r-xp 00000000 08:09 2098101
/usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5a8284a000-7f5a82a49000 ---p 0001d000 08:09 2098101
/usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5a82a49000-7f5a82a4a000 r--p 0001c000 08:09 2098101
/usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5a82a4a000-7f5a82a4b000 rw-p 0001d000 08:09 2098101
/usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5a82a4b000-7f5a82a72000 r-xp 00000000 08:09 2229184
/lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5a82a72000-7f5a82c72000 ---p 00027000 08:09 2229184
/lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5a82c72000-7f5a82c74000 r--p 00027000 08:09 2229184
/lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5a82c74000-7f5a82c75000 rw-p 00029000 08:09 2229184
/lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5a82c75000-7f5a82ffa000 r-xp 00000000 08:09 2625043
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f5a82ffa000-7f5a831fa000 ---p 00385000 08:09 2625043
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f5a831fa000-7f5a83211000 rw-p 00385000 08:09 2625043
/usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f5a83211000-7f5a83229000 rw-p 00000000 00:00 0
7f5a83229000-7f5a83234000 r-xp 00000000 08:09 2233429
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5a83234000-7f5a83433000 ---p 0000b000 08:09 2233429
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5a83433000-7f5a83434000 r--p 0000a000 08:09 2233429
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5a83434000-7f5a83435000 rw-p 0000b000 08:09 2233429
/lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5a83435000-7f5a8343f000 r-xp 00000000 08:09 2232994
/lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5a8343f000-7f5a8363e000 ---p 0000a000 08:09 2232994
/lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5a8363e000-7f5a8363f000 r--p 00009000 08:09 2232994
/lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5a8363f000-7f5a83640000 rw-p 0000a000 08:09 2232994
/lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5a83640000-7f5a83647000 r-xp 00000000 08:09 2232572
/lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5a83647000-7f5a83846000 ---p 00007000 08:09 2232572
/lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5a83846000-7f5a83847000 r--p 00006000 08:09 2232572
/lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5a83847000-7f5a83848000 rw-p 00007000 08:09 2232572
/lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5a83848000-7f5a83849000 ---p 00000000 00:00 0
7f5a83849000-7f5a84049000 rw-p 00000000 00:00 0
7f5a8804a000-7f5a8804b000 ---p 00000000 00:00 0
7f5a8804b000-7f5a8884b000 rw-p 00000000 00:00 0
7f5a8884b000-7f5a88854000 r-xp 00000000 08:09 2124763
/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f5a88854000-7f5a88a53000 ---p 00009000 08:09 2124763
/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f5a88a53000-7f5a88a54000 rw-p 00008000 08:09 2124763
/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f5a88a54000-7f5a88a5d000 r-xp 00000000 08:09 2100989
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f5a88a5d000-7f5a88c5d000 ---p 00009000 08:09 2100989
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f5a88c5d000-7f5a88c5e000 rw-p 00009000 08:09 2100989
/usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f5a88c5e000-7f5a88dd5000 r--p 00000000 08:09 2100879
/usr/lib/locale/locale-archive
7f5a88dd5000-7f5a88dd6000 ---p 00000000 00:00 0
7f5a88dd6000-7f5a895d6000 rw-p 00000000 00:00 0
7f5a895d6000-7f5a895e9000 r-xp 00000000 08:09 2231403
/lib/x86_64-linux-gnu/libresolv-2.13.soAborted (core dumped)

@Bertram25
Valyria Tear member

Ok, I made two patches hopefully dealing with the two invalid pointer detection we have listed so far.
I'll push that asap.

@shirishag75

Here's another one, dunno if it's the same :-

~/games/valyriatear$ ./src/valyriatear
*** glibc detected *** ./src/valyriatear: free(): invalid next size (fast): 0x0000000001d3fbe0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75b76)[0x7f1c46c57b76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f1c46c5c8ac]
./src/valyriatear(_ZN7luabind6detail10object_rep10deallocateEPv+0x2a)[0x912a74]
./src/valyriatear(_ZN7luabind6detail10object_repD1Ev+0x48)[0xc597b2]
./src/valyriatear(_ZN7luabind6detail16destroy_instanceEP9lua_State+0xb6)[0xc599ab]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xca24)[0x7f1c47714a24]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xce34)[0x7f1c47714e34]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xe5ba)[0x7f1c477165ba]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xec28)[0x7f1c47716c28]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xc0ca)[0x7f1c477140ca]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(lua_close+0x60)[0x7f1c4771be40]
./src/valyriatear(_ZN10hoa_script12ScriptEngineD1Ev+0xba)[0xc4913a]
./src/valyriatear(_ZN10hoa_script12ScriptEngineD0Ev+0x18)[0xc491f0]
./src/valyriatear(_ZN9hoa_utils9SingletonIN10hoa_script12ScriptEngineEE16SingletonDestroyEv+0x39)[0x90b5f8]
./src/valyriatear(_Z7QuitAppv+0x22)[0x903dc7]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7f1c46c18df2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45)[0x7f1c46c18e45]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x104)[0x7f1c46c00eb4]
./src/valyriatear[0x903c89]
======= Memory map: ========
00400000-00e30000 r-xp 00000000 08:0a 2763520 /home/shirish/games/valyriatear/src/valyriatear
0102f000-01032000 rw-p 00a2f000 08:0a 2763520 /home/shirish/games/valyriatear/src/valyriatear
01032000-01035000 rw-p 00000000 00:00 0
015c2000-040c3000 rw-p 00000000 00:00 0 [heap]
7f1c30ddc000-7f1c31bdc000 rw-s 12235f000 00:05 4301 /dev/dri/card0
7f1c321dc000-7f1c3235c000 rw-s 128099000 00:05 4301 /dev/dri/card0
7f1c3235c000-7f1c324dc000 rw-s 11433d000 00:05 4301 /dev/dri/card0
7f1c3261d000-7f1c3279d000 rw-s 112a51000 00:05 4301 /dev/dri/card0
7f1c3279d000-7f1c3279e000 rw-s 00000000 00:04 140287 /drm mm object (deleted)
7f1c3279e000-7f1c3279f000 rw-s 00000000 00:04 141353 /drm mm object (deleted)
7f1c3279f000-7f1c327a0000 rw-s 00000000 00:04 140512 /drm mm object (deleted)
7f1c327a0000-7f1c327a1000 rw-s 00000000 00:04 140511 /drm mm object (deleted)
7f1c327a1000-7f1c327a2000 rw-s 00000000 00:04 140514 /drm mm object (deleted)
7f1c327a2000-7f1c327a3000 rw-s 00000000 00:04 141313 /drm mm object (deleted)
7f1c327a3000-7f1c327a4000 rw-s 00000000 00:04 140169 /drm mm object (deleted)
7f1c327a4000-7f1c327a5000 rw-s 00000000 00:04 140496 /drm mm object (deleted)
7f1c327a5000-7f1c327a6000 rw-s 00000000 00:04 140491 /drm mm object (deleted)
7f1c327a6000-7f1c327a7000 rw-s 00000000 00:04 140286 /drm mm object (deleted)
7f1c327a7000-7f1c327a8000 rw-s 00000000 00:04 140285 /drm mm object (deleted)
7f1c327a8000-7f1c327a9000 rw-s 00000000 00:04 140494 /drm mm object (deleted)
7f1c327a9000-7f1c327aa000 rw-s 00000000 00:04 140493 /drm mm object (deleted)
7f1c327aa000-7f1c327ab000 rw-s 00000000 00:04 140492 /drm mm object (deleted)
7f1c327ab000-7f1c327ac000 rw-s 00000000 00:04 140490 /drm mm object (deleted)
7f1c327ac000-7f1c3292c000 rw-s 1141bd000 00:05 4301 /dev/dri/card0
7f1c3292c000-7f1c32aac000 rw-s 11403d000 00:05 4301 /dev/dri/card0
7f1c32aac000-7f1c32c2c000 rw-s 113ebd000 00:05 4301 /dev/dri/card0
7f1c32c2c000-7f1c32c2d000 rw-s 00000000 00:04 140349 /drm mm object (deleted)
7f1c32c2d000-7f1c32c2e000 rw-s 00000000 00:04 140161 /drm mm object (deleted)
7f1c32c2e000-7f1c32dee000 rw-s 113cfd000 00:05 4301 /dev/dri/card0
7f1c32dee000-7f1c32f6e000 rw-s 113b7d000 00:05 4301 /dev/dri/card0
7f1c32f6e000-7f1c330ee000 rw-s 1139fd000 00:05 4301 /dev/dri/card0
7f1c330ee000-7f1c3326e000 rw-s 11387d000 00:05 4301 /dev/dri/card0
7f1c3326e000-7f1c333ee000 rw-s 1136fd000 00:05 4301 /dev/dri/card0
7f1c333ee000-7f1c3356e000 rw-s 11357d000 00:05 4301 /dev/dri/card0
7f1c3356e000-7f1c336ee000 rw-s 112fd2000 00:05 4301 /dev/dri/card0
7f1c336ee000-7f1c3386e000 rw-s 112e52000 00:05 4301 /dev/dri/card0
7f1c3386e000-7f1c339ee000 rw-s 112cd2000 00:05 4301 /dev/dri/card0
7f1c339ee000-7f1c339ef000 rw-s 00000000 00:04 140170 /drm mm object (deleted)
7f1c339ef000-7f1c339f0000 rw-s 00000000 00:04 140168 /drm mm object (deleted)
7f1c339f0000-7f1c339f1000 rw-s 00000000 00:04 140166 /drm mm object (deleted)
7f1c339f1000-7f1c339f2000 rw-s 00000000 00:04 140165 /drm mm object (deleted)
7f1c339f2000-7f1c339f3000 rw-s 00000000 00:04 140164 /drm mm object (deleted)
7f1c339f3000-7f1c339f4000 rw-s 00000000 00:04 140163 /drm mm object (deleted)
7f1c339f4000-7f1c339f5000 rw-s 00000000 00:04 140162 /drm mm object (deleted)
7f1c339f5000-7f1c339f6000 rw-s 00000000 00:04 140160 /drm mm object (deleted)
7f1c339f6000-7f1c339f7000 rw-s 00000000 00:04 140158 /drm mm object (deleted)
7f1c339f7000-7f1c339f8000 rw-s 00000000 00:04 140157 /drm mm object (deleted)
7f1c339f8000-7f1c339f9000 rw-s 00000000 00:04 140155 /drm mm object (deleted)
7f1c339f9000-7f1c339fa000 rw-s 00000000 00:04 140154 /drm mm object (deleted)
7f1c339fa000-7f1c339fb000 rw-s 00000000 00:04 140153 /drm mm object (deleted)
7f1c339fb000-7f1c339fc000 rw-s 00000000 00:04 140152 /drm mm object (deleted)
7f1c339fc000-7f1c339fd000 rw-s 00000000 00:04 140151 /drm mm object (deleted)
7f1c339fd000-7f1c339fe000 rw-s 00000000 00:04 140150 /drm mm object (deleted)
7f1c339fe000-7f1c339ff000 rw-s 00000000 00:04 140149 /drm mm object (deleted)
7f1c339ff000-7f1c33a00000 rw-s 00000000 00:04 140376 /drm mm object (deleted)
7f1c34000000-7f1c34131000 rw-p 00000000 00:00 0
7f1c34131000-7f1c38000000 ---p 00000000 00:00 0
7f1c38028000-7f1c38108000 rw-s 129046000 00:05 4301 /dev/dri/card0
7f1c38108000-7f1c38109000 rw-s 00000000 00:04 140798 /drm mm object (deleted)
7f1c38109000-7f1c3810a000 rw-s 00000000 00:04 141739 /drm mm object (deleted)
7f1c3810a000-7f1c3810b000 rw-s 00000000 00:04 141804 /drm mm object (deleted)
7f1c3810b000-7f1c3810c000 rw-s 00000000 00:04 141060 /drm mm object (deleted)
7f1c3810c000-7f1c3810d000 rw-s 00000000 00:04 142542 /drm mm object (deleted)
7f1c3810d000-7f1c3828d000 rw-s 117541000 00:05 4301 /dev/dri/card0
7f1c3828d000-7f1c3840d000 rw-s 111367000 00:05 4301 /dev/dri/card0
7f1c3840d000-7f1c3858d000 rw-s 1111e7000 00:05 4301 /dev/dri/card0
7f1c3858d000-7f1c3870d000 rw-s 11331d000 00:05 4301 /dev/dri/card0
7f1c38777000-7f1c38778000 rw-s 123a27000 00:05 4301 /dev/dri/card0
7f1c38778000-7f1c38779000 rw-s 00000000 00:04 157989 /drm mm object (deleted)
7f1c38779000-7f1c3877a000 rw-s 00000000 00:04 160280 /drm mm object (deleted)
7f1c3877a000-7f1c3877b000 rw-s 124985000 00:05 4301 /dev/dri/card0
7f1c3877b000-7f1c3877c000 rw-s 00000000 00:04 159272 /drm mm object (deleted)
7f1c3877c000-7f1c3877d000 rw-s 00000000 00:04 157991 /drm mm object (deleted)
7f1c3877d000-7f1c3877e000 rw-s 00000000 00:04 157988 /drm mm object (deleted)
7f1c3877e000-7f1c3877f000 rw-s 00000000 00:04 153592 /drm mm object (deleted)
7f1c3877f000-7f1c38780000 rw-s 00000000 00:04 153591 /drm mm object (deleted)
7f1c38780000-7f1c38781000 rw-s 00000000 00:04 153590 /drm mm object (deleted)
7f1c38781000-7f1c38782000 rw-s 00000000 00:04 153589 /drm mm object (deleted)
7f1c38782000-7f1c38783000 rw-s 00000000 00:04 153588 /drm mm object (deleted)
7f1c38783000-7f1c38784000 rw-s 00000000 00:04 153587 /drm mm object (deleted)
7f1c38784000-7f1c38785000 rw-s 00000000 00:04 153586 /drm mm object (deleted)
7f1c38785000-7f1c38786000 rw-s 00000000 00:04 159404 /drm mm object (deleted)
7f1c38786000-7f1c38787000 rw-s 127b6f000 00:05 4301 /dev/dri/card0
7f1c38787000-7f1c38788000 rw-s 00000000 00:04 159271 /drm mm object (deleted)
7f1c38789000-7f1c3878a000 rw-s 00000000 00:04 159263 /drm mm object (deleted)
7f1c3878a000-7f1c3878b000 rw-s 128584000 00:05 4301 /dev/dri/card0
7f1c3878b000-7f1c3878c000 rw-s 1284ed000 00:05 4301 /dev/dri/card0
7f1c3878d000-7f1c3890d000 rw-s 111067000 00:05 4301 /dev/dri/card0
7f1c3890d000-7f1c38a8d000 rw-s 110ee7000 00:05 4301 /dev/dri/card0
7f1c38a8d000-7f1c38c0d000 rw-s 111f04000 00:05 4301 /dev/dri/card0
7f1c38c0d000-7f1c38c10000 r-xp 00000000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f1c38c10000-7f1c38e0f000 ---p 00003000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f1c38e0f000-7f1c38e10000 r--p 00002000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f1c38e10000-7f1c38e11000 rw-p 00003000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f1c38e11000-7f1c38f91000 rw-s 111d34000 00:05 4301 /dev/dri/card0
7f1c38f91000-7f1c39111000 rw-s 111bac000 00:05 4301 /dev/dri/card0
7f1c39111000-7f1c39b95000 rw-p 00000000 00:00 0
7f1c39b95000-7f1c39b9d000 r-xp 00000000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f1c39b9d000-7f1c39d9c000 ---p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f1c39d9c000-7f1c39d9d000 r--p 00007000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f1c39d9d000-7f1c39d9e000 rw-p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f1c39d9e000-7f1c39dbb000 r-xp 00000000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f1c39dbb000-7f1c39fba000 ---p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f1c39fba000-7f1c39fbb000 r--p 0001c000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f1c39fbb000-7f1c39fbc000 rw-p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f1c39fbc000-7f1c39fe3000 r-xp 00000000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f1c39fe3000-7f1c3a1e3000 ---p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f1c3a1e3000-7f1c3a1e5000 r--p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f1c3a1e5000-7f1c3a1e6000 rw-p 00029000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f1c3a1e6000-7f1c3a56b000 r-xp 00000000 08:09 2625043 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f1c3a56b000-7f1c3a76b000 ---p 00385000 08:09 2625043 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f1c3a76b000-7f1c3a782000 rw-p 00385000 08:09 2625043 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f1c3a782000-7f1c3a79a000 rw-p 00000000 00:00 0
7f1c3a79a000-7f1c3a7a5000 r-xp 00000000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f1c3a7a5000-7f1c3a9a4000 ---p 0000b000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f1c3a9a4000-7f1c3a9a5000 r--p 0000a000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f1c3a9a5000-7f1c3a9a6000 rw-p 0000b000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f1c3a9a6000-7f1c3a9b0000 r-xp 00000000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f1c3a9b0000-7f1c3abaf000 ---p 0000a000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f1c3abaf000-7f1c3abb0000 r--p 00009000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f1c3abb0000-7f1c3abb1000 rw-p 0000a000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f1c3abb1000-7f1c3abb8000 r-xp 00000000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f1c3abb8000-7f1c3adb7000 ---p 00007000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f1c3adb7000-7f1c3adb8000 r--p 00006000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f1c3adb8000-7f1c3adb9000 rw-p 00007000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f1c3adb9000-7f1c3adba000 ---p 00000000 00:00 0
7f1c3adba000-7f1c3b5ba000 rw-p 00000000 00:00 0
7f1c3f5bb000-7f1c3f5bc000 ---p 00000000 00:00 0
7f1c3f5bc000-7f1c3fdbc000 rw-p 00000000 00:00 0
7f1c3fdbc000-7f1c3fdc5000 r-xp 00000000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f1c3fdc5000-7f1c3ffc4000 ---p 00009000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f1c3ffc4000-7f1c3ffc5000 rw-p 00008000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f1c3ffc5000-7f1c3ffce000 r-xp 00000000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f1c3ffce000-7f1c401ce000 ---p 00009000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f1c401ce000-7f1c401cf000 rw-p 00009000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f1c401cf000-7f1c40346000 r--p 00000000 08:09 2100879 /usr/lib/locale/locale-archive
7f1c40346000-7f1c40347000 ---p 00000000 00:00 0
7f1c40347000-7f1c40b47000 rw-p 00000000 00:00 0
7f1c40b47000-7f1c40b5a000 r-xp 00000000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7f1c40b5a000-7f1c40d59000 ---p 00013000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7f1c40d59000-7f1c40d5a000 r--p 00012000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7f1c40d5a000-7f1c40d5b000 rw-p 00013000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7f1c40d5b000-7f1c40d5d000 rw-p 00000000 00:00 0
7f1c40d5d000-7f1c41010000 r-xp 00000000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7f1c41010000-7f1c4120f000 ---p 002b3000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7f1c4120f000-7f1c4122b000 r--p 002b2000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7f1c4122b000-7f1c4122c000 rw-p 002ce000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7f1c4122c000-7f1c41277000 r-xp 00000000 08:09 2107190 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f1c41277000-7f1c41476000 ---p 0004b000 08:09 2107190 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f1c41476000-7f1c41477000 r--p 0004a000 08:09 2107190 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f1c41477000-7f1c41478000 rw-p 0004b000 08:09 2107190 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.2.0
7f1c41478000-7f1c4148d000 r-xp 00000000 08:09 2232833 /lib/x86_64-linux-gnu/libnsl-2.13.so
7f1c4148d000-7f1c4168c000 ---p 00015000 08:09 2232833 /lib/x86_64-linux-gnu/libnsl-2.13.so
7f1c4168c000-7f1c4168d000 r--p 00014000 08:09 2232833 /lib/x86_64-linux-gnu/libnsl-2.13.so
7f1c4168d000-7f1c4168e000 rw-p 00015000 08:09 2232833 /lib/x86_64-linux-gnu/libnsl-2.13.so
7f1c4168e000-7f1c41690000 rw-p 00000000 00:00 0
7f1c41690000-7f1c4169e000 r-xp 00000000 08:09 2104433 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f1c4169e000-7f1c4189e000 ---p 0000e000 08:09 2104433 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f1c4189e000-7f1c4189f000 rw-p 0000e000 08:09 2104433 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7f1c4189f000-7f1c418a3000 r-xp 00000000 08:09 2229744 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7f1c418a3000-7f1c41aa2000 ---p 00004000 08:09 2229744 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7f1c41aa2000-7f1c41aa3000 r--p 00003000 08:09 2229744 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7f1c41aa3000-7f1c41aa4000 rw-p 00004000 08:09 2229744 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7f1c41aa4000-7f1c41aa9000 r-xp 00000000 08:09 2097887 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f1c41aa9000-7f1c41ca8000 ---p 00005000 08:09 2097887 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f1c41ca8000-7f1c41ca9000 rw-p 00004000 08:09 2097887 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7f1c41ca9000-7f1c41d0a000 r-xp 00000000 08:09 2098715 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7f1c41d0a000-7f1c41f09000 ---p 00061000 08:09 2098715 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7f1c41f09000-7f1c41f0b000 r--p 00060000 08:09 2098715 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7f1c41f0b000-7f1c41f0c000 rw-p 00062000 08:09 2098715 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7f1c41f0c000-7f1c41f10000 rw-p 00000000 00:00 0
7f1c41f10000-7f1c41f19000 r-xp 00000000 08:09 2228772 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7f1c41f19000-7f1c42118000 ---p 00009000 08:09 2228772 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7f1c42118000-7f1c42119000 r--p 00008000 08:09 2228772 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7f1c42119000-7f1c4211a000 rw-p 00009000 08:09 2228772 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7f1c4211a000-7f1c4211b000 rw-p 00000000 00:00 0
7f1c4211b000-7f1c42120000 r-xp 00000000 08:09 2113840 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0Aborted (core dumped)

This is with the latest git master.

````~/games/valyriatear$ git log | less
commit 9de4c3e
Author: Yohann Ferreira
Date: Sun Sep 23 01:12:50 2012 +0200

Kept on the next forest part.````

This happened as same as before when quitting the game by pressing Esc. and then using the quit game option to quit.

@Bertram25
Valyria Tear member
@shirishag75

Oops, sorry this is where it happened.

$ git log | less
commit 9de4c3eebbf2b2eed55906001961213ab4b441a3
Author: Yohann Ferreira <yohann_ferreira_at_orange_fr_>
Date: Sun Sep 23 01:12:50 2012 +0200

Kept on the next forest part.

@shirishag75

Another one, dunno if I'm recycling the same or not :-

~/games/valyriatear$ ./src/valyriatear
WARNING:/home/shirish/games/valyriatear/src/engine/audio/audio.cpp:~AudioEngine:167: 5 SoundDescriptor objects were still registered when the destructor was invoked, the objects will be freed now.

WARNING:/home/shirish/games/valyriatear/src/engine/audio/audio.cpp:~AudioEngine:175: This sound file was never unloaded: snd/confirm.wav
*** glibc detected *** ./src/valyriatear: free(): invalid pointer: 0x00000000042ddda8 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75b76)[0x7fa12aa72b76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fa12aa778ac]
./src/valyriatear(_ZN9hoa_audio15SoundDescriptorD0Ev+0x24)[0x9ba9b2]
./src/valyriatear(_ZN9hoa_audio11AudioEngineD1Ev+0x319)[0x9af7fd]
./src/valyriatear(_ZN9hoa_audio11AudioEngineD0Ev+0x18)[0x9afc72]
./src/valyriatear(_ZN9hoa_utils9SingletonIN9hoa_audio11AudioEngineEE16SingletonDestroyEv+0x39)[0x90b8aa]
./src/valyriatear(_Z7QuitAppv+0x18)[0x90414d]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7fa12aa33df2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45)[0x7fa12aa33e45]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x104)[0x7fa12aa1beb4]
./src/valyriatear[0x904019]
======= Memory map: ========
00400000-00e30000 r-xp 00000000 08:0a 2757838 /home/shirish/games/valyriatear/src/valyriatear
0102f000-01032000 rw-p 00a2f000 08:0a 2757838 /home/shirish/games/valyriatear/src/valyriatear
01032000-01035000 rw-p 00000000 00:00 0
02966000-04ef7000 rw-p 00000000 00:00 0 [heap]
7fa114689000-7fa115489000 rw-s 145fe8000 00:05 4457 /dev/dri/card0
7fa115489000-7fa115a89000 rw-s 1405da000 00:05 4457 /dev/dri/card0
7fa116183000-7fa116303000 rw-s 131714000 00:05 4457 /dev/dri/card0
7fa116304000-7fa116484000 rw-s 13550b000 00:05 4457 /dev/dri/card0
7fa116484000-7fa116604000 rw-s 13538b000 00:05 4457 /dev/dri/card0
7fa116604000-7fa116784000 rw-s 13520b000 00:05 4457 /dev/dri/card0
7fa116784000-7fa116904000 rw-s 13508b000 00:05 4457 /dev/dri/card0
7fa116904000-7fa116905000 rw-s 00000000 00:04 1327421 /drm mm object (deleted)
7fa116905000-7fa116906000 rw-s 00000000 00:04 1327416 /drm mm object (deleted)
7fa116906000-7fa116a86000 rw-s 1333f1000 00:05 4457 /dev/dri/card0
7fa116a86000-7fa116c46000 rw-s 133231000 00:05 4457 /dev/dri/card0
7fa116c46000-7fa116dc6000 rw-s 134f0b000 00:05 4457 /dev/dri/card0
7fa116dc6000-7fa116f46000 rw-s 134d8b000 00:05 4457 /dev/dri/card0
7fa116f46000-7fa1170c6000 rw-s 134c0b000 00:05 4457 /dev/dri/card0
7fa1170c6000-7fa117246000 rw-s 134a8b000 00:05 4457 /dev/dri/card0
7fa117246000-7fa1173c6000 rw-s 1348eb000 00:05 4457 /dev/dri/card0
7fa1173c6000-7fa117546000 rw-s 13476b000 00:05 4457 /dev/dri/card0
7fa117546000-7fa117547000 rw-s 00000000 00:04 1327388 /drm mm object (deleted)
7fa117547000-7fa117548000 rw-s 00000000 00:04 1327359 /drm mm object (deleted)
7fa117548000-7fa117549000 rw-s 00000000 00:04 1327443 /drm mm object (deleted)
7fa117549000-7fa11754a000 rw-s 00000000 00:04 1327442 /drm mm object (deleted)
7fa11754a000-7fa11754b000 rw-s 00000000 00:04 1327441 /drm mm object (deleted)
7fa11754b000-7fa11754c000 rw-s 00000000 00:04 1327440 /drm mm object (deleted)
7fa11754c000-7fa11754d000 rw-s 00000000 00:04 1327439 /drm mm object (deleted)
7fa11754d000-7fa11754e000 rw-s 00000000 00:04 1327348 /drm mm object (deleted)
7fa11754e000-7fa11754f000 rw-s 00000000 00:04 1327437 /drm mm object (deleted)
7fa11754f000-7fa117550000 rw-s 00000000 00:04 1327435 /drm mm object (deleted)
7fa117550000-7fa117551000 rw-s 00000000 00:04 1327432 /drm mm object (deleted)
7fa117551000-7fa117552000 rw-s 00000000 00:04 1327429 /drm mm object (deleted)
7fa117552000-7fa117553000 rw-s 00000000 00:04 1327426 /drm mm object (deleted)
7fa117553000-7fa117554000 rw-s 00000000 00:04 1327423 /drm mm object (deleted)
7fa117554000-7fa117555000 rw-s 00000000 00:04 1327420 /drm mm object (deleted)
7fa117555000-7fa117556000 rw-s 00000000 00:04 1327418 /drm mm object (deleted)
7fa117556000-7fa117557000 rw-s 00000000 00:04 1327417 /drm mm object (deleted)
7fa117557000-7fa117558000 rw-s 00000000 00:04 1327415 /drm mm object (deleted)
7fa117558000-7fa117559000 rw-s 00000000 00:04 1327410 /drm mm object (deleted)
7fa117559000-7fa11755a000 rw-s 00000000 00:04 1327408 /drm mm object (deleted)
7fa11755a000-7fa11755b000 rw-s 00000000 00:04 1327407 /drm mm object (deleted)
7fa11755b000-7fa11755c000 rw-s 00000000 00:04 1327405 /drm mm object (deleted)
7fa11755c000-7fa11755d000 rw-s 00000000 00:04 1327401 /drm mm object (deleted)
7fa11755d000-7fa11755e000 rw-s 00000000 00:04 1327400 /drm mm object (deleted)
7fa11755e000-7fa11755f000 rw-s 00000000 00:04 1327399 /drm mm object (deleted)
7fa11755f000-7fa117560000 rw-s 00000000 00:04 1327397 /drm mm object (deleted)
7fa117560000-7fa117561000 rw-s 00000000 00:04 1327395 /drm mm object (deleted)
7fa117561000-7fa117562000 rw-s 00000000 00:04 1327394 /drm mm object (deleted)
7fa117562000-7fa117563000 rw-s 00000000 00:04 1327392 /drm mm object (deleted)
7fa117563000-7fa117564000 rw-s 00000000 00:04 1327390 /drm mm object (deleted)
7fa117564000-7fa117565000 rw-s 00000000 00:04 1327389 /drm mm object (deleted)
7fa117565000-7fa117566000 rw-s 00000000 00:04 1327387 /drm mm object (deleted)
7fa117566000-7fa117567000 rw-s 00000000 00:04 1327385 /drm mm object (deleted)
7fa117567000-7fa117568000 rw-s 00000000 00:04 1327384 /drm mm object (deleted)
7fa117568000-7fa117569000 rw-s 00000000 00:04 1327383 /drm mm object (deleted)
7fa117569000-7fa11756a000 rw-s 00000000 00:04 1327382 /drm mm object (deleted)
7fa11756a000-7fa11756b000 rw-s 00000000 00:04 1327381 /drm mm object (deleted)
7fa11756b000-7fa11756c000 rw-s 00000000 00:04 1327380 /drm mm object (deleted)
7fa11756c000-7fa11756d000 rw-s 00000000 00:04 1327306 /drm mm object (deleted)
7fa11756d000-7fa11756e000 rw-s 00000000 00:04 1327356 /drm mm object (deleted)
7fa11756e000-7fa1176ee000 rw-s 1345eb000 00:05 4457 /dev/dri/card0
7fa1176ee000-7fa11786e000 rw-s 133758000 00:05 4457 /dev/dri/card0
7fa11786e000-7fa1179ee000 rw-s 1335d8000 00:05 4457 /dev/dri/card0
7fa1179ee000-7fa1179ef000 rw-s 00000000 00:04 1327357 /drm mm object (deleted)
7fa1179ef000-7fa1179f0000 rw-s 00000000 00:04 1327355 /drm mm object (deleted)
7fa1179f0000-7fa1179f1000 rw-s 00000000 00:04 1327353 /drm mm object (deleted)
7fa1179f1000-7fa1179f2000 rw-s 00000000 00:04 1327352 /drm mm object (deleted)
7fa1179f2000-7fa1179f3000 rw-s 00000000 00:04 1327351 /drm mm object (deleted)
7fa1179f3000-7fa1179f4000 rw-s 00000000 00:04 1327350 /drm mm object (deleted)
7fa1179f4000-7fa1179f5000 rw-s 00000000 00:04 1327349 /drm mm object (deleted)
7fa1179f5000-7fa1179f6000 rw-s 00000000 00:04 1327347 /drm mm object (deleted)
7fa1179f6000-7fa1179f7000 rw-s 00000000 00:04 1327345 /drm mm object (deleted)
7fa1179f7000-7fa1179f8000 rw-s 00000000 00:04 1327344 /drm mm object (deleted)
7fa1179f8000-7fa1179f9000 rw-s 00000000 00:04 1327342 /drm mm object (deleted)
7fa1179f9000-7fa1179fa000 rw-s 00000000 00:04 1327341 /drm mm object (deleted)
7fa1179fa000-7fa1179fb000 rw-s 00000000 00:04 1327340 /drm mm object (deleted)
7fa1179fb000-7fa1179fc000 rw-s 00000000 00:04 1327339 /drm mm object (deleted)
7fa1179fc000-7fa1179fd000 rw-s 00000000 00:04 1327338 /drm mm object (deleted)
7fa1179fd000-7fa1179fe000 rw-s 00000000 00:04 1327337 /drm mm object (deleted)
7fa1179fe000-7fa1179ff000 rw-s 00000000 00:04 1327336 /drm mm object (deleted)
7fa1179ff000-7fa117a00000 rw-s 00000000 00:04 1327266 /drm mm object (deleted)
7fa118000000-7fa118021000 rw-p 00000000 00:00 0
7fa118021000-7fa11c000000 ---p 00000000 00:00 0
7fa11c3a8000-7fa11c528000 rw-s 1342bb000 00:05 4457 /dev/dri/card0
7fa11c648000-7fa11c7c8000 rw-s 1454a3000 00:05 4457 /dev/dri/card0
7fa11c7c8000-7fa11c8a8000 rw-s 145f08000 00:05 4457 /dev/dri/card0
7fa11c8a8000-7fa11ca28000 rw-s 131bcc000 00:05 4457 /dev/dri/card0
7fa11ca28000-7fa11ca2b000 r-xp 00000000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fa11ca2b000-7fa11cc2a000 ---p 00003000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fa11cc2a000-7fa11cc2b000 r--p 00002000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fa11cc2b000-7fa11cc2c000 rw-p 00003000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fa11cc2c000-7fa11cdac000 rw-s 132461000 00:05 4457 /dev/dri/card0
7fa11cdac000-7fa11cf2c000 rw-s 1322d5000 00:05 4457 /dev/dri/card0
7fa11cf2c000-7fa11d9b0000 rw-p 00000000 00:00 0
7fa11d9b0000-7fa11d9b8000 r-xp 00000000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7fa11d9b8000-7fa11dbb7000 ---p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7fa11dbb7000-7fa11dbb8000 r--p 00007000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7fa11dbb8000-7fa11dbb9000 rw-p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7fa11dbb9000-7fa11dbd6000 r-xp 00000000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7fa11dbd6000-7fa11ddd5000 ---p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7fa11ddd5000-7fa11ddd6000 r--p 0001c000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7fa11ddd6000-7fa11ddd7000 rw-p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7fa11ddd7000-7fa11ddfe000 r-xp 00000000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fa11ddfe000-7fa11dffe000 ---p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fa11dffe000-7fa11e000000 r--p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fa11e000000-7fa11e001000 rw-p 00029000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fa11e001000-7fa11e386000 r-xp 00000000 08:09 2625043 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7fa11e386000-7fa11e586000 ---p 00385000 08:09 2625043 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7fa11e586000-7fa11e59d000 rw-p 00385000 08:09 2625043 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7fa11e59d000-7fa11e5b5000 rw-p 00000000 00:00 0
7fa11e5b5000-7fa11e5c0000 r-xp 00000000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fa11e5c0000-7fa11e7bf000 ---p 0000b000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fa11e7bf000-7fa11e7c0000 r--p 0000a000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fa11e7c0000-7fa11e7c1000 rw-p 0000b000 08:09 2233429 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7fa11e7c1000-7fa11e7cb000 r-xp 00000000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fa11e7cb000-7fa11e9ca000 ---p 0000a000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fa11e9ca000-7fa11e9cb000 r--p 00009000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fa11e9cb000-7fa11e9cc000 rw-p 0000a000 08:09 2232994 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7fa11e9cc000-7fa11e9d3000 r-xp 00000000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fa11e9d3000-7fa11ebd2000 ---p 00007000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fa11ebd2000-7fa11ebd3000 r--p 00006000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fa11ebd3000-7fa11ebd4000 rw-p 00007000 08:09 2232572 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7fa11ebd4000-7fa11ebd5000 ---p 00000000 00:00 0
7fa11ebd5000-7fa11f3d5000 rw-p 00000000 00:00 0
7fa11f3d5000-7fa1233d6000 rw-s 00000000 00:11 1327256 /run/shm/pulse-shm-3209261544
7fa1233d6000-7fa1233d7000 ---p 00000000 00:00 0
7fa1233d7000-7fa123bd7000 rw-p 00000000 00:00 0
7fa123bd7000-7fa123be0000 r-xp 00000000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa123be0000-7fa123ddf000 ---p 00009000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa123ddf000-7fa123de0000 rw-p 00008000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fa123de0000-7fa123de9000 r-xp 00000000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa123de9000-7fa123fe9000 ---p 00009000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa123fe9000-7fa123fea000 rw-p 00009000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fa123fea000-7fa124161000 r--p 00000000 08:09 2100879 /usr/lib/locale/locale-archive
7fa124161000-7fa124162000 ---p 00000000 00:00 0
7fa124162000-7fa124962000 rw-p 00000000 00:00 0
7fa124962000-7fa124975000 r-xp 00000000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7fa124975000-7fa124b74000 ---p 00013000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7fa124b74000-7fa124b75000 r--p 00012000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7fa124b75000-7fa124b76000 rw-p 00013000 08:09 2231403 /lib/x86_64-linux-gnu/libresolv-2.13.so
7fa124b76000-7fa124b78000 rw-p 00000000 00:00 0
7fa124b78000-7fa124e2b000 r-xp 00000000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fa124e2b000-7fa12502a000 ---p 002b3000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7fa12502a000-7fa125046000 r--p 002b2000 08:09 2098624 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8Aborted (core dumped)

This is at latest git head :-

~/games/valyriatear$ git log | less
commit dfb4ce463f345dac9a6b1b0b6611e2527b32223b
Author: Yohann Ferreira <yohann_ferreira_at_orange_fr_>
Date: Mon Sep 24 02:49:57 2012 +0200

Finished the the second map main way.

Again this was when pressing the Quit game by pressing 'ESC' in-game and then selecting quit game from the three options given. This was during a new battle which had just commenced.

@Bertram25
Valyria Tear member

Hmm, interesting. With the logging added, I might have the guilty one.

@Bertram25
Valyria Tear member

In the case of the confirm audio manager crash at quit, I do think it's linked to the sound owning management (that I'll remove completely to let the audio cache do the job.

In the case of the script engine crash, I read a lot about luabind objects and It seems that using pointers for that might be a cause of a memory corruption.
This is not part of the doc, but the fact that the luabind::object has internally got a pointer to a function or a table might create a corruption if you delete the object more than one time.

I've done changes in the ScriptedEvents and ScriptedSpriteEvent the game is using a lot and we'll see if things improve here.

@shirishag75

well, seems it didn't improve things. I was being chased around by couple of monsters and was about to enter battle when I quit when I got the invalid pointer bug again.

This is from the latest git head

````commit afd314b
Author: Yohann Ferreira
Date: Sat Sep 29 02:23:13 2012 +0200

Fixed using Moon Potion in battles.

This was due to a stupid and own made mistake.````

~/games/valyriatear$ ./src/valyriatear
WARNING:/home/shirish/games/valyriatear/src/engine/audio/audio.cpp:~AudioEngine:167: 5 SoundDescriptor objects were still registered when the destructor was invoked, the objects will be freed now.
WARNING:/home/shirish/games/valyriatear/src/engine/audio/audio.cpp:~AudioEngine:175: This sound file was never unloaded: snd/confirm.wav
*** glibc detected *** ./src/valyriatear: free(): invalid pointer: 0x0000000003b9d458 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75b76)[0x7f857f407b76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f857f40c8ac]
./src/valyriatear(_ZN9hoa_audio15SoundDescriptorD0Ev+0x24)[0x9b9f4e]
./src/valyriatear(_ZN9hoa_audio11AudioEngineD1Ev+0x319)[0x9aed99]
./src/valyriatear(_ZN9hoa_audio11AudioEngineD0Ev+0x18)[0x9af20e]
./src/valyriatear(_ZN9hoa_utils9SingletonIN9hoa_audio11AudioEngineEE16SingletonDestroyEv+0x39)[0x90ad98]
./src/valyriatear(_Z7QuitAppv+0x18)[0x90369d]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7f857f3c8df2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45)[0x7f857f3c8e45]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x104)[0x7f857f3b0eb4]
./src/valyriatear[0x903569]
======= Memory map: ========
00400000-00e28000 r-xp 00000000 08:0a 2758097 /home/shirish/games/valyriatear/src/valyriatear
01027000-0102a000 rw-p 00a27000 08:0a 2758097 /home/shirish/games/valyriatear/src/valyriatear
0102a000-0102d000 rw-p 00000000 00:00 0
02112000-03fd5000 rw-p 00000000 00:00 0 [heap]
7f8568f02000-7f8568f03000 rw-s 00000000 00:04 11218043 /drm mm object (deleted)
7f8568f03000-7f8568f04000 rw-s 00000000 00:04 11218042 /drm mm object (deleted)
7f8568f04000-7f8568f05000 rw-s 00000000 00:04 11218041 /drm mm object (deleted)
7f8568f05000-7f8568f06000 rw-s 00000000 00:04 11218040 /drm mm object (deleted)
7f8568f06000-7f8568f07000 rw-s 00000000 00:04 11218039 /drm mm object (deleted)
7f8568f07000-7f8568f08000 rw-s 00000000 00:04 11217648 /drm mm object (deleted)
7f8568f08000-7f8568f09000 rw-s 00000000 00:04 11217647 /drm mm object (deleted)
7f8568f09000-7f8568f0a000 rw-s 00000000 00:04 11218030 /drm mm object (deleted)
7f8568f0a000-7f8568f0b000 rw-s 00000000 00:04 11217575 /drm mm object (deleted)
7f8568f0c000-7f8568f0d000 rw-p 00000000 00:00 0
7f8568f0d000-7f8569d0d000 rw-s 16e578000 00:05 1901 /dev/dri/card0
7f8569d0d000-7f856a30d000 rw-s 12ed38000 00:05 1901 /dev/dri/card0
7f856a30d000-7f856a48d000 rw-s 12ebb8000 00:05 1901 /dev/dri/card0
7f856a8cb000-7f856aa4b000 rw-s 179011000 00:05 1901 /dev/dri/card0
7f856aa4b000-7f856abcb000 rw-s 178e91000 00:05 1901 /dev/dri/card0
7f856abcb000-7f856ad4b000 rw-s 177ffd000 00:05 1901 /dev/dri/card0
7f856ad4b000-7f856aecb000 rw-s 177e7d000 00:05 1901 /dev/dri/card0
7f856aecb000-7f856aecc000 rw-s 00000000 00:04 11217922 /drm mm object (deleted)
7f856aecc000-7f856aecd000 rw-s 00000000 00:04 11217533 /drm mm object (deleted)
7f856aecd000-7f856b04d000 rw-s 178d11000 00:05 1901 /dev/dri/card0
7f856b04d000-7f856b20d000 rw-s 178b51000 00:05 1901 /dev/dri/card0
7f856b20d000-7f856b38d000 rw-s 1789d1000 00:05 1901 /dev/dri/card0
7f856b38d000-7f856b50d000 rw-s 178851000 00:05 1901 /dev/dri/card0
7f856b50d000-7f856b68d000 rw-s 155054000 00:05 1901 /dev/dri/card0
7f856b68d000-7f856b80d000 rw-s 154ed4000 00:05 1901 /dev/dri/card0
7f856b80d000-7f856b98d000 rw-s 154d54000 00:05 1901 /dev/dri/card0
7f856b98d000-7f856bb0d000 rw-s 154bd4000 00:05 1901 /dev/dri/card0
7f856bb0d000-7f856bb0e000 rw-s 00000000 00:04 11217532 /drm mm object (deleted)
7f856bb0e000-7f856bb0f000 rw-s 00000000 00:04 11217531 /drm mm object (deleted)
7f856bb0f000-7f856bb10000 rw-s 00000000 00:04 11217530 /drm mm object (deleted)
7f856bb10000-7f856bb11000 rw-s 00000000 00:04 11217529 /drm mm object (deleted)
7f856bb11000-7f856bb12000 rw-s 00000000 00:04 11217528 /drm mm object (deleted)
7f856bb12000-7f856bb13000 rw-s 00000000 00:04 11217527 /drm mm object (deleted)
7f856bb13000-7f856bb14000 rw-s 00000000 00:04 11217526 /drm mm object (deleted)
7f856bb14000-7f856bb15000 rw-s 00000000 00:04 11217525 /drm mm object (deleted)
7f856bb15000-7f856bb16000 rw-s 00000000 00:04 11217524 /drm mm object (deleted)
7f856bb16000-7f856bb17000 rw-s 00000000 00:04 11217523 /drm mm object (deleted)
7f856bb17000-7f856bb18000 rw-s 00000000 00:04 11217522 /drm mm object (deleted)
7f856bb18000-7f856bb19000 rw-s 00000000 00:04 11217521 /drm mm object (deleted)
7f856bb19000-7f856bb1a000 rw-s 00000000 00:04 11217516 /drm mm object (deleted)
7f856bb1a000-7f856bb1b000 rw-s 00000000 00:04 11217309 /drm mm object (deleted)
7f856bb1b000-7f856bb1c000 rw-s 00000000 00:04 11217518 /drm mm object (deleted)
7f856bb1c000-7f856bb1d000 rw-s 00000000 00:04 11217510 /drm mm object (deleted)
7f856bb1d000-7f856bb1e000 rw-s 00000000 00:04 11217506 /drm mm object (deleted)
7f856bb1e000-7f856bb1f000 rw-s 00000000 00:04 11217502 /drm mm object (deleted)
7f856bb1f000-7f856bb20000 rw-s 00000000 00:04 11216764 /drm mm object (deleted)
7f856bb20000-7f856bb21000 rw-s 00000000 00:04 11217520 /drm mm object (deleted)
7f856bb21000-7f856bb22000 rw-s 00000000 00:04 11217519 /drm mm object (deleted)
7f856bb22000-7f856bb23000 rw-s 00000000 00:04 11217517 /drm mm object (deleted)
7f856bb23000-7f856bb24000 rw-s 00000000 00:04 11217515 /drm mm object (deleted)
7f856bb24000-7f856bb25000 rw-s 00000000 00:04 11217514 /drm mm object (deleted)
7f856bb25000-7f856bb26000 rw-s 00000000 00:04 11217513 /drm mm object (deleted)
7f856bb26000-7f856bb27000 rw-s 00000000 00:04 11217512 /drm mm object (deleted)
7f856bb27000-7f856bb28000 rw-s 00000000 00:04 11217511 /drm mm object (deleted)
7f856bb28000-7f856bb29000 rw-s 00000000 00:04 11217509 /drm mm object (deleted)
7f856bb29000-7f856bb2a000 rw-s 00000000 00:04 11217508 /drm mm object (deleted)
7f856bb2a000-7f856bb2b000 rw-s 00000000 00:04 11217507 /drm mm object (deleted)
7f856bb2b000-7f856bb2c000 rw-s 00000000 00:04 11217505 /drm mm object (deleted)
7f856bb2c000-7f856bb2d000 rw-s 00000000 00:04 11217504 /drm mm object (deleted)
7f856bb2d000-7f856bb2e000 rw-s 00000000 00:04 11217503 /drm mm object (deleted)
7f856bb2e000-7f856bb2f000 rw-s 00000000 00:04 11217501 /drm mm object (deleted)
7f856bb2f000-7f856bb30000 rw-s 00000000 00:04 11217499 /drm mm object (deleted)
7f856bb30000-7f856bb31000 rw-s 00000000 00:04 11216672 /drm mm object (deleted)
7f856bb31000-7f856bb32000 rw-s 00000000 00:04 11216776 /drm mm object (deleted)
7f856bb32000-7f856bb33000 rw-s 00000000 00:04 11216773 /drm mm object (deleted)
7f856bb33000-7f856bb34000 rw-s 00000000 00:04 11216806 /drm mm object (deleted)
7f856bb34000-7f856bb35000 rw-s 00000000 00:04 11216803 /drm mm object (deleted)
7f856bb35000-7f856bb36000 rw-s 00000000 00:04 11216801 /drm mm object (deleted)
7f856bb36000-7f856bb37000 rw-s 00000000 00:04 11217310 /drm mm object (deleted)
7f856bb37000-7f856bcb7000 rw-s 178669000 00:05 1901 /dev/dri/card0
7f856bcb7000-7f856be37000 rw-s 1784e9000 00:05 1901 /dev/dri/card0
7f856be37000-7f856bfb7000 rw-s 178369000 00:05 1901 /dev/dri/card0
7f856bfb7000-7f856bfb8000 rw-s 00000000 00:04 11216799 /drm mm object (deleted)
7f856bfb8000-7f856bfb9000 rw-s 00000000 00:04 11216779 /drm mm object (deleted)
7f856bfb9000-7f856bfbb000 rw-s 00000000 00:04 11216807 /drm mm object (deleted)
7f856bfbb000-7f856bfbc000 rw-s 00000000 00:04 11216770 /drm mm object (deleted)
7f856bfbc000-7f856bfbd000 rw-s 00000000 00:04 11216767 /drm mm object (deleted)
7f856bfbd000-7f856bfbe000 rw-s 00000000 00:04 11216805 /drm mm object (deleted)
7f856bfbe000-7f856bfbf000 rw-s 00000000 00:04 11216802 /drm mm object (deleted)
7f856bfbf000-7f856bfc0000 rw-s 00000000 00:04 11216800 /drm mm object (deleted)
7f856bfc0000-7f856bfc1000 rw-s 00000000 00:04 11216761 /drm mm object (deleted)
7f856bfc1000-7f856bfc2000 rw-s 00000000 00:04 11216686 /drm mm object (deleted)
7f856bfc2000-7f856bfc3000 rw-s 00000000 00:04 11216798 /drm mm object (deleted)
7f856bfc3000-7f856bfc4000 rw-s 00000000 00:04 11216796 /drm mm object (deleted)
7f856bfc4000-7f856bfc5000 rw-s 00000000 00:04 11216795 /drm mm object (deleted)
7f856bfc5000-7f856bfc6000 rw-s 00000000 00:04 11216794 /drm mm object (deleted)
7f856bfc6000-7f856bfc7000 rw-s 00000000 00:04 11216793 /drm mm object (deleted)
7f856bfc7000-7f856bfc8000 rw-s 00000000 00:04 11216792 /drm mm object (deleted)
7f856bfc8000-7f856bfc9000 rw-s 00000000 00:04 11216791 /drm mm object (deleted)
7f856bfc9000-7f856bfca000 rw-s 00000000 00:04 11216790 /drm mm object (deleted)
7f856bfca000-7f856bfcb000 rw-s 00000000 00:04 11216789 /drm mm object (deleted)
7f856bfcb000-7f856bfcc000 rw-s 00000000 00:04 11216788 /drm mm object (deleted)
7f856bfcc000-7f856bfcd000 rw-s 00000000 00:04 11216787 /drm mm object (deleted)
7f856bfcd000-7f856bfce000 rw-s 00000000 00:04 11216786 /drm mm object (deleted)
7f856bfce000-7f856bfcf000 rw-s 00000000 00:04 11216784 /drm mm object (deleted)
7f856bfcf000-7f856bfd0000 rw-s 00000000 00:04 11216782 /drm mm object (deleted)
7f856bfd0000-7f856bfd1000 rw-s 00000000 00:04 11216781 /drm mm object (deleted)
7f856bfd1000-7f856bfd2000 rw-s 00000000 00:04 11216780 /drm mm object (deleted)
7f856bfd2000-7f856bfd3000 rw-s 00000000 00:04 11216778 /drm mm object (deleted)
7f856bfd3000-7f856bfd4000 rw-s 00000000 00:04 11216775 /drm mm object (deleted)
7f856bfd4000-7f856bfd5000 rw-s 00000000 00:04 11216772 /drm mm object (deleted)
7f856bfd5000-7f856bfd6000 rw-s 00000000 00:04 11216768 /drm mm object (deleted)
7f856bfd6000-7f856bfd7000 rw-s 00000000 00:04 11216766 /drm mm object (deleted)
7f856bfd7000-7f856bfd8000 rw-s 00000000 00:04 11216763 /drm mm object (deleted)
7f856bfd8000-7f856bfd9000 rw-s 00000000 00:04 11216760 /drm mm object (deleted)
7f856bfd9000-7f856bfda000 rw-s 00000000 00:04 11216759 /drm mm object (deleted)
7f856bfda000-7f856bfdb000 rw-s 00000000 00:04 11216758 /drm mm object (deleted)
7f856bfdb000-7f856bfdc000 rw-s 00000000 00:04 11216757 /drm mm object (deleted)
7f856bfdc000-7f856bfdd000 rw-s 00000000 00:04 11216756 /drm mm object (deleted)
7f856bfdd000-7f856bfde000 rw-s 00000000 00:04 11216755 /drm mm object (deleted)
7f856bfde000-7f856bfdf000 rw-s 00000000 00:04 11216754 /drm mm object (deleted)
7f856bfdf000-7f856bfe0000 rw-s 00000000 00:04 11216753 /drm mm object (deleted)
7f856bfe0000-7f856bfe1000 rw-s 00000000 00:04 11216752 /drm mm object (deleted)
7f856bfe1000-7f856bfe2000 rw-s 00000000 00:04 11216751 /drm mm object (deleted)
7f856bfe2000-7f856bfe3000 rw-s 00000000 00:04 11216750 /drm mm object (deleted)
7f856bfe3000-7f856bfe4000 rw-s 00000000 00:04 11216749 /drm mm object (deleted)
7f856bfe4000-7f856bfe5000 rw-s 00000000 00:04 11216748 /drm mm object (deleted)
7f856bfe5000-7f856bfe6000 rw-s 00000000 00:04 11216747 /drm mm object (deleted)
7f856bfe6000-7f856bfe7000 rw-s 00000000 00:04 11216746 /drm mm object (deleted)
7f856bfe7000-7f856bfe8000 rw-s 00000000 00:04 11216745 /drm mm object (deleted)
7f856bfe8000-7f856bfea000 rw-s 00000000 00:04 11216744 /drm mm object (deleted)
7f856bfea000-7f856bfeb000 rw-s 00000000 00:04 11216743 /drm mm object (deleted)
7f856bfeb000-7f856bfec000 rw-s 00000000 00:04 11216742 /drm mm object (deleted)
7f856bfec000-7f856bfed000 rw-s 00000000 00:04 11216741 /drm mm object (deleted)
7f856bfed000-7f856bfee000 rw-s 00000000 00:04 11216740 /drm mm object (deleted)
7f856bfee000-7f856bfef000 rw-s 00000000 00:04 11216739 /drm mm object (deleted)
7f856bfef000-7f856bff0000 rw-s 00000000 00:04 11216738 /drm mm object (deleted)
7f856bff0000-7f856bff1000 rw-s 00000000 00:04 11216737 /drm mm object (deleted)
7f856bff1000-7f856bff2000 rw-s 00000000 00:04 11216736 /drm mm object (deleted)
7f856bff2000-7f856bff3000 rw-s 00000000 00:04 11216735 /drm mm object (deleted)
7f856bff3000-7f856bff4000 rw-s 00000000 00:04 11216734 /drm mm object (deleted)
7f856bff4000-7f856bff5000 rw-s 00000000 00:04 11216733 /drm mm object (deleted)
7f856bff5000-7f856bff6000 rw-s 00000000 00:04 11216732 /drm mm object (deleted)
7f856bff6000-7f856bff7000 rw-s 00000000 00:04 11216731 /drm mm object (deleted)
7f856bff7000-7f856bff8000 rw-s 00000000 00:04 11216730 /drm mm object (deleted)
7f856bff8000-7f856bff9000 rw-s 00000000 00:04 11216729 /drm mm object (deleted)
7f856bff9000-7f856bffa000 rw-s 00000000 00:04 11216728 /drm mm object (deleted)
7f856bffa000-7f856bffb000 rw-s 00000000 00:04 11216727 /drm mm object (deleted)
7f856bffb000-7f856bffc000 rw-s 00000000 00:04 11216726 /drm mm object (deleted)
7f856bffc000-7f856bffd000 rw-s 00000000 00:04 11216725 /drm mm object (deleted)
7f856bffd000-7f856bffe000 rw-s 00000000 00:04 11216724 /drm mm object (deleted)
7f856bffe000-7f856bfff000 rw-s 00000000 00:04 11216723 /drm mm object (deleted)
7f856bfff000-7f856c000000 rw-s 00000000 00:04 11217209 /drm mm object (deleted)
7f856c000000-7f856d398000 rw-p 00000000 00:00 0
7f856d398000-7f8570000000 ---p 00000000 00:00 0 Aborted (core dumped)

@Bertram25
Valyria Tear member

The fact is that I still didn't work on that. And indeed, the confirm sound seems to be involved.

@Bertram25
Valyria Tear member

I've done two commits that might have helped with the audio and script crashes. Still a way until we've got something free from crash at app quit since it's been following allacrost for years now:
55c6ef3
5ccd4cd

@shirishag75

Understood, this is with the latest git, played for about 20 odd minutes and saved and nice. It was only when quitting that I got hit with it.

````commit e443c9a
Author: Yohann Ferreira
Date: Sun Sep 30 03:19:01 2012 +0200

Fixed crashes caused by errors in the status script.

There was a typo in the evade raise status effect leading to a crash,
and a obsolete statement in the paralysis one, leading to a crash
with the Stun Strike.

I had to remove the paralysis effect of the stun strike since
the necessary code isn't ready yet to add that effect.````

The actual crash fwiw

~/games/valyriatear$ ./src/valyriatear
*** glibc detected *** ./src/valyriatear: free(): invalid pointer: 0x0000000001d7d170 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x75b76)[0x7f0840db4b76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f0840db98ac]
/usr/lib/x86_64-linux-gnu/libvorbis.so.0(vorbis_comment_clear+0x47)[0x7f083dd6d317]
/usr/lib/x86_64-linux-gnu/libvorbisfile.so.3(ov_clear+0x157)[0x7f084210d937]
./src/valyriatear(_ZN9hoa_audio13private_audio7OggFileD1Ev+0x28)[0x9bf4fc]
./src/valyriatear(_ZN9hoa_audio13private_audio7OggFileD0Ev+0x18)[0x9bf55c]
./src/valyriatear(_ZN9hoa_audio15AudioDescriptor9FreeAudioEv+0x129)[0x9b6599]
./src/valyriatear(_ZN9hoa_audio15AudioDescriptorD1Ev+0x24)[0x9ba6fc]
./src/valyriatear(_ZN9hoa_audio15SoundDescriptorD1Ev+0xb2)[0x9b9eec]
./src/valyriatear(_ZN9hoa_audio15SoundDescriptorD0Ev+0x18)[0x9b9f42]
./src/valyriatear(_ZN9hoa_audio11AudioEngineD1Ev+0x78)[0x9aeaf8]
./src/valyriatear(_ZN9hoa_audio11AudioEngineD0Ev+0x18)[0x9af20e]
./src/valyriatear(_ZN9hoa_utils9SingletonIN9hoa_audio11AudioEngineEE16SingletonDestroyEv+0x39)[0x90ad98]
./src/valyriatear(_Z7QuitAppv+0x18)[0x90369d]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7f0840d75df2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45)[0x7f0840d75e45]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x104)[0x7f0840d5deb4]
./src/valyriatear[0x903569]
======= Memory map: ========
00400000-00e28000 r-xp 00000000 08:0a 2759991 /home/shirish/games/valyriatear/src/valyriatear
01027000-0102a000 rw-p 00a27000 08:0a 2759991 /home/shirish/games/valyriatear/src/valyriatear
0102a000-0102d000 rw-p 00000000 00:00 0
0167f000-03aea000 rw-p 00000000 00:00 0 [heap]
7f0828000000-7f0828021000 rw-p 00000000 00:00 0
7f0828021000-7f082c000000 ---p 00000000 00:00 0
7f082fc14000-7f0830214000 rw-s 1201ae000 00:05 4711 /dev/dri/card0
7f0830214000-7f0830394000 rw-s 14dcb3000 00:05 4711 /dev/dri/card0
7f08307d1000-7f0830951000 rw-s 122a52000 00:05 4711 /dev/dri/card0
7f0830951000-7f0830ad1000 rw-s 121807000 00:05 4711 /dev/dri/card0
7f0830ad1000-7f0830c51000 rw-s 121687000 00:05 4711 /dev/dri/card0
7f0830c51000-7f0830dd1000 rw-s 14db33000 00:05 4711 /dev/dri/card0
7f0830dd1000-7f0830f51000 rw-s 12329b000 00:05 4711 /dev/dri/card0
7f0830f51000-7f0831111000 rw-s 1230db000 00:05 4711 /dev/dri/card0
7f0831111000-7f0831291000 rw-s 122f5b000 00:05 4711 /dev/dri/card0
7f0831291000-7f0831411000 rw-s 14b7da000 00:05 4711 /dev/dri/card0
7f0831411000-7f0831591000 rw-s 14b65a000 00:05 4711 /dev/dri/card0
7f0831591000-7f0831711000 rw-s 14b4da000 00:05 4711 /dev/dri/card0
7f0831711000-7f0831891000 rw-s 14b35a000 00:05 4711 /dev/dri/card0
7f0831891000-7f0831a11000 rw-s 14b1da000 00:05 4711 /dev/dri/card0
7f0831a11000-7f0831b91000 rw-s 1478c4000 00:05 4711 /dev/dri/card0
7f0831b91000-7f0831d11000 rw-s 121bbe000 00:05 4711 /dev/dri/card0
7f0831d11000-7f0831e91000 rw-s 121a3e000 00:05 4711 /dev/dri/card0
7f0831f6a000-7f08320ea000 rw-s 12611a000 00:05 4711 /dev/dri/card0
7f083256a000-7f08326ea000 rw-s 123e83000 00:05 4711 /dev/dri/card0
7f08326ea000-7f083286a000 rw-s 1228d2000 00:05 4711 /dev/dri/card0
7f083297a000-7f083297b000 rw-s 00000000 00:04 2961334 /drm mm object (deleted)
7f083297b000-7f083297c000 rw-s 12819a000 00:05 4711 /dev/dri/card0
7f083297c000-7f083297d000 rw-s 123e82000 00:05 4711 /dev/dri/card0
7f083297e000-7f083297f000 rw-s 127321000 00:05 4711 /dev/dri/card0
7f0832981000-7f0832982000 rw-s 00000000 00:04 2972841 /drm mm object (deleted)
7f0832982000-7f0832983000 rw-s 00000000 00:04 2972392 /drm mm object (deleted)
7f0832983000-7f0832984000 rw-s 00000000 00:04 2972838 /drm mm object (deleted)
7f0832984000-7f0832985000 rw-s 125a17000 00:05 4711 /dev/dri/card0
7f0832985000-7f0832986000 rw-s 1266c7000 00:05 4711 /dev/dri/card0
7f0832986000-7f0832987000 rw-s 00000000 00:04 2972843 /drm mm object (deleted)
7f0832987000-7f0832988000 rw-s 00000000 00:04 2972840 /drm mm object (deleted)
7f0832988000-7f0832989000 rw-s 00000000 00:04 2952145 /drm mm object (deleted)
7f0832989000-7f083298a000 rw-s 00000000 00:04 2951793 /drm mm object (deleted)
7f083298a000-7f0832b0a000 rw-s 1238d1000 00:05 4711 /dev/dri/card0
7f0832b0a000-7f0832b0b000 rw-s 00000000 00:04 2972845 /drm mm object (deleted)
7f0832b0b000-7f0832b0c000 rw-s 00000000 00:04 2972570 /drm mm object (deleted)
7f0832b0c000-7f0832b0d000 rw-s 00000000 00:04 2972568 /drm mm object (deleted)
7f0832b0d000-7f0832b0e000 rw-s 00000000 00:04 2972567 /drm mm object (deleted)
7f0832b0e000-7f0832b0f000 rw-s 00000000 00:04 2972831 /drm mm object (deleted)
7f0832b0f000-7f0832b10000 rw-s 00000000 00:04 2972550 /drm mm object (deleted)
7f0832b10000-7f0832b11000 rw-s 00000000 00:04 2972828 /drm mm object (deleted)
7f0832b11000-7f0832b12000 rw-s 00000000 00:04 2972827 /drm mm object (deleted)
7f0832b12000-7f0832b13000 rw-s 00000000 00:04 2972564 /drm mm object (deleted)
7f0832b13000-7f0832b14000 rw-s 00000000 00:04 2972563 /drm mm object (deleted)
7f0832b14000-7f0832b15000 rw-s 00000000 00:04 2972557 /drm mm object (deleted)
7f0832b15000-7f0832b16000 rw-s 00000000 00:04 2972556 /drm mm object (deleted)
7f0832b16000-7f0832b17000 rw-s 00000000 00:04 2972555 /drm mm object (deleted)
7f0832b17000-7f0832b18000 rw-s 00000000 00:04 2972554 /drm mm object (deleted)
7f0832b18000-7f0832b19000 rw-s 00000000 00:04 2972553 /drm mm object (deleted)
7f0832b19000-7f0832b1a000 rw-s 00000000 00:04 2972552 /drm mm object (deleted)
7f0832b1a000-7f0832b1b000 rw-s 00000000 00:04 2972551 /drm mm object (deleted)
7f0832b1b000-7f0832b1c000 rw-s 00000000 00:04 2972793 /drm mm object (deleted)
7f0832b5c000-7f0832b5d000 rw-s 00000000 00:04 2972546 /drm mm object (deleted)
7f0832b97000-7f0832b98000 rw-s 00000000 00:04 2972839 /drm mm object (deleted)
7f0832b98000-7f0832b99000 rw-s 00000000 00:04 2973025 /drm mm object (deleted)
7f0832b99000-7f0832b9a000 rw-s 00000000 00:04 2973857 /drm mm object (deleted)
7f0832b9a000-7f0832b9b000 rw-s 00000000 00:04 2972829 /drm mm object (deleted)
7f0832b9b000-7f0832b9c000 rw-s 00000000 00:04 2972506 /drm mm object (deleted)
7f0832b9d000-7f0832b9e000 rw-s 00000000 00:04 2972544 /drm mm object (deleted)
7f0832b9e000-7f0832b9f000 rw-s 00000000 00:04 2972543 /drm mm object (deleted)
7f0832b9f000-7f0832ba1000 rw-s 00000000 00:04 2972542 /drm mm object (deleted)
7f0832ba1000-7f0832ba2000 rw-s 00000000 00:04 2972541 /drm mm object (deleted)
7f0832ba2000-7f0832ba3000 rw-s 00000000 00:04 2972540 /drm mm object (deleted)
7f0832ba3000-7f0832ba4000 rw-s 00000000 00:04 2972539 /drm mm object (deleted)
7f0832ba4000-7f0832ba5000 rw-s 00000000 00:04 2972538 /drm mm object (deleted)
7f0832ba5000-7f0832ba6000 rw-s 00000000 00:04 2972537 /drm mm object (deleted)
7f0832ba6000-7f0832ba7000 rw-s 00000000 00:04 2972536 /drm mm object (deleted)
7f0832ba7000-7f0832ba8000 rw-s 00000000 00:04 2972535 /drm mm object (deleted)
7f0832ba8000-7f0832ba9000 rw-s 00000000 00:04 2972534 /drm mm object (deleted)
7f0832ba9000-7f0832baa000 rw-s 00000000 00:04 2972533 /drm mm object (deleted)
7f0832baa000-7f0832bab000 rw-s 00000000 00:04 2972532 /drm mm object (deleted)
7f0832bab000-7f0832bac000 rw-s 00000000 00:04 2972531 /drm mm object (deleted)
7f0832bac000-7f0832bad000 rw-s 00000000 00:04 2972530 /drm mm object (deleted)
7f0832bad000-7f0832bae000 rw-s 00000000 00:04 2972529 /drm mm object (deleted)
7f0832bae000-7f0832baf000 rw-s 00000000 00:04 2972528 /drm mm object (deleted)
7f0832baf000-7f0832bb0000 rw-s 00000000 00:04 2972527 /drm mm object (deleted)
7f0832bb0000-7f0832bb1000 rw-s 00000000 00:04 2972526 /drm mm object (deleted)
7f0832bb1000-7f0832bb2000 rw-s 00000000 00:04 2972825 /drm mm object (deleted)
7f0832bb2000-7f0832bb3000 rw-s 00000000 00:04 2972824 /drm mm object (deleted)
7f0832bb3000-7f0832bb5000 rw-s 00000000 00:04 2972823 /drm mm object (deleted)
7f0832bb5000-7f0832bb6000 rw-s 00000000 00:04 2972822 /drm mm object (deleted)
7f0832bb6000-7f0832bb7000 rw-s 00000000 00:04 2972821 /drm mm object (deleted)
7f0832bb7000-7f0832bb8000 rw-s 00000000 00:04 2972820 /drm mm object (deleted)
7f0832bb8000-7f0832bb9000 rw-s 00000000 00:04 2972819 /drm mm object (deleted)
7f0832bb9000-7f0832bba000 rw-s 00000000 00:04 2972818 /drm mm object (deleted)
7f0832bba000-7f0832bbb000 rw-s 00000000 00:04 2972817 /drm mm object (deleted)
7f0832bbb000-7f0832bbc000 rw-s 00000000 00:04 2972816 /drm mm object (deleted)
7f0832bbc000-7f0832bbd000 rw-s 00000000 00:04 2972815 /drm mm object (deleted)
7f0832bbd000-7f0832bbe000 rw-s 00000000 00:04 2972814 /drm mm object (deleted)
7f0832bbe000-7f0832bbf000 rw-s 00000000 00:04 2972813 /drm mm object (deleted)
7f0832bbf000-7f0832bc0000 rw-s 00000000 00:04 2972812 /drm mm object (deleted)
7f0832bc0000-7f0832bc1000 rw-s 00000000 00:04 2972811 /drm mm object (deleted)
7f0832bc1000-7f0832bc2000 rw-s 00000000 00:04 2972810 /drm mm object (deleted)
7f0832bc2000-7f0832bc3000 rw-s 00000000 00:04 2972525 /drm mm object (deleted)
7f0832bc3000-7f0832bc4000 rw-s 00000000 00:04 2972524 /drm mm object (deleted)
7f0832bc4000-7f0832bc5000 rw-s 00000000 00:04 2972523 /drm mm object (deleted)
7f0832bc5000-7f0832bc6000 rw-s 00000000 00:04 2972522 /drm mm object (deleted)
7f0832bc6000-7f0832bc7000 rw-s 00000000 00:04 2972521 /drm mm object (deleted)
7f0832bc7000-7f0832bc8000 rw-s 00000000 00:04 2972520 /drm mm object (deleted)
7f0832bc8000-7f0832bc9000 rw-s 00000000 00:04 2972519 /drm mm object (deleted)
7f0832bc9000-7f0832bca000 rw-s 00000000 00:04 2972518 /drm mm object (deleted)
7f0832bca000-7f0832bcb000 rw-s 00000000 00:04 2972517 /drm mm object (deleted)
7f0832bcb000-7f0832bcc000 rw-s 00000000 00:04 2972516 /drm mm object (deleted)
7f0832bcc000-7f0832bcd000 rw-s 00000000 00:04 2972515 /drm mm object (deleted)
7f0832bcd000-7f0832bce000 rw-s 00000000 00:04 2972514 /drm mm object (deleted)
7f0832bce000-7f0832bcf000 rw-s 00000000 00:04 2972513 /drm mm object (deleted)
7f0832bcf000-7f0832bd0000 rw-s 00000000 00:04 2972512 /drm mm object (deleted)
7f0832bd0000-7f0832bd1000 rw-s 00000000 00:04 2965587 /drm mm object (deleted)
7f0832bd1000-7f0832bd2000 rw-s 00000000 00:04 2972762 /drm mm object (deleted)
7f0832bd2000-7f0832bd3000 rw-s 00000000 00:04 2960291 /drm mm object (deleted)
7f0832bd3000-7f0832bd4000 rw-s 00000000 00:04 2972400 /drm mm object (deleted)
7f0832bd4000-7f0832bd5000 rw-s 00000000 00:04 2972404 /drm mm object (deleted)
7f0832bd5000-7f0832bd6000 rw-s 00000000 00:04 2972402 /drm mm object (deleted)
7f0832bd6000-7f0832bd7000 rw-s 00000000 00:04 2972401 /drm mm object (deleted)
7f0832bd7000-7f0832bd8000 rw-s 00000000 00:04 2972399 /drm mm object (deleted)
7f0832bd8000-7f0832bda000 rw-s 00000000 00:04 2972398 /drm mm object (deleted)
7f0832bda000-7f0832bdc000 rw-s 00000000 00:04 2972397 /drm mm object (deleted)
7f0832bdc000-7f0832bdd000 rw-s 00000000 00:04 2972396 /drm mm object (deleted)
7f0832bdd000-7f0832bdf000 rw-s 00000000 00:04 2972395 /drm mm object (deleted)
7f0832bdf000-7f0832be1000 rw-s 00000000 00:04 2972394 /drm mm object (deleted)
7f0832be1000-7f0832be8000 rw-s 127a61000 00:05 4711 /dev/dri/card0
7f0832be8000-7f0832be9000 rw-s 00000000 00:04 2972646 /drm mm object (deleted)
7f0832be9000-7f0832bea000 rw-s 00000000 00:04 2965586 /drm mm object (deleted)
7f0832bea000-7f0832d6a000 rw-s 122752000 00:05 4711 /dev/dri/card0
7f0832d6a000-7f0832d6d000 r-xp 00000000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f0832d6d000-7f0832f6c000 ---p 00003000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f0832f6c000-7f0832f6d000 r--p 00002000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f0832f6d000-7f0832f6e000 rw-p 00003000 08:09 2133686 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f0832f6e000-7f08330ee000 rw-s 1225aa000 00:05 4711 /dev/dri/card0
7f08330ee000-7f083326e000 rw-s 12242a000 00:05 4711 /dev/dri/card0
7f083326e000-7f0833cf2000 rw-p 00000000 00:00 0
7f0833cf2000-7f0833cfa000 r-xp 00000000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f0833cfa000-7f0833ef9000 ---p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f0833ef9000-7f0833efa000 r--p 00007000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f0833efa000-7f0833efb000 rw-p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f0833efb000-7f0833f18000 r-xp 00000000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f0833f18000-7f0834117000 ---p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f0834117000-7f0834118000 r--p 0001c000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f0834118000-7f0834119000 rw-p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f0834119000-7f0834140000 r-xp 00000000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f0834140000-7f0834340000 ---p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f0834340000-7f0834342000 r--p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0Aborted (core dumped)

I have no idea if I should have been memory locations or not, perhaps it's not so wise as a potential attacker could hack into the game.

@Bertram25
Valyria Tear member

Hmm, this one is new AFAIK.
From what I can read, the bug comes from when the ogg/vorbis library tries to delete the sound file.

I have no idea if I should have been memory locations or not, perhaps it's not so wise as a potential attacker could hack into the game.

Err, no, not when using that one. Yet, consider all the applications you're using even on closed sources software and OS being full of holes waiting to be discovered. Allacrost/Valyria Tear have their own but I sincerely guess a true hacker would prefer using a program a wide variety of people is using rather than a mere demo game.

I wonder what computering level you personally have and I don't want to judge somebody on that, but sincerely you can't ask me to worry about potential attacks.

@shirishag75

@Bertram25 I think you misunderstood my point/issue. Lemme ask another way, does it help you anyway if I provide/don't provide memory locations when a crash happens? If it doesn't help you other than just for the sake of completeness, then wouldn't provide the memory map unless asked.

Shouldn't the backtrace have enough info. as to the nature of the crash ?

Your point is fair that a potential attacker would probably use a mainstream program and could probably use many ways if they wanted to get onto my system.

Looking forward to updates.

@Bertram25
Valyria Tear member

Ah, ok, my bad then.

As the pointer values are different on each crashes because the binary changes each time (new commits and recompilation) and because I didn't setup some advanced tools for that yet, (I should look again at how, first, anyway...), I indeed only need the backtraces are for the last statement calls, and then work around that, which has paid off until now, even little by little.

If you've got some good tutorial about reusing such other values, btw, I'll use them. :)

@Bertram25
Valyria Tear member

Latest invalid pointer bug should dealt with:
638dc36

@Bertram25
Valyria Tear member

Should be partly dealt with, with this one:
a86034a

Unfortunately, crashes aren't gone since there is still something badly removed sometimes. And I don't have a clue for now.

@Bertram25 Bertram25 pushed a commit that referenced this issue
Yohann Ferreira Catched another script file open without its counter closeFile call.
This will help fix issue #15

I also added the try/catch useful to get feedback for bugs in lua
scripts.
4e895d1
@Bertram25 Bertram25 pushed a commit that referenced this issue
Yohann Ferreira Fixed a small mistake in the audio input wave file destructor.
This should help with issue #15.
a41fbff
@Bertram25
Valyria Tear member

An helper for the crash related to lua_close() call
http://sylefeb.blogspot.ch/2010/08/luabind-global-tables-of-classes.html

Certain luabind::object might not destructed before the lua_close invocation is done, which should be the case to avoid a crash resembling the one we have. (I'm not speaking of audio crashes).
I'll work toward that.

@Bertram25
Valyria Tear member

Also, temp object pointers in lua function calls shouldn't be used as said here:
http://stackoverflow.com/questions/1441885/obtaining-a-pointer-to-lua-object-instance-in-c/1443309#1443309
So, never do: FunctionCall(new pointer); in a lua script. It could lead to a crash since the temporary new pointer instance will be deleted after the function call and might lead to a crash.

I'll check that also in my scripts.

@Bertram25 Bertram25 pushed a commit that referenced this issue
Yohann Ferreira Made the scripting engine singleton be destroyed last to try and fix …
…certain crash cases.

I did that with the hope that it will prevent certain crashes due to luabind::object
not destroyed when the lua state is closed, according to:
http://sylefeb.blogspot.ch/2010/08/luabind-global-tables-of-classes.html

Related to #15.
72cc2f4
@IkarusDowned

Just curious, have you tried running hte binary on Valgrind? Its a linux-only tool (AFAIK) but its phenominal for finding bad frees / memory leaks. you're gonna get some MAJOR slowdown, but it may be worth it...

@Bertram25
Valyria Tear member
@shirishag75

maybe a new one. It gives more info. than before for sure. This is with the latest git commit.

~/games/valyriatear$ ./src/valyriatear
WARNING:/home/shirish/games/valyriatear/src/modes/map/map_events.cpp:StartEvent:1085: The event: Forest entrance heal is already active and can be active only once at a time. The StartEvent() call will be ignored. Fix your script!
*** glibc detected *** ./src/valyriatear: free(): invalid pointer: 0x000000000219da30 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x76d76)[0x7f5bc355ed76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f5bc3563aac]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0x180b9)[0x7f5bc40290b9]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0x1037c)[0x7f5bc402137c]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xe42b)[0x7f5bc401f42b]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0xec61)[0x7f5bc401fc61]
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0(+0x1389e)[0x7f5bc402489e]
./src/valyriatear(_ZN10hoa_script12ScriptEngineD1Ev+0xba)[0xc6745a]
./src/valyriatear(_ZN10hoa_script12ScriptEngineD0Ev+0x18)[0xc67510]
./src/valyriatear(_ZN9hoa_utils9SingletonIN10hoa_script12ScriptEngineEE16SingletonDestroyEv+0x39)[0x9224f8]
./src/valyriatear(_Z7QuitAppv+0x2c)[0x91a361]
/lib/x86_64-linux-gnu/libc.so.6(+0x36df2)[0x7f5bc351edf2]
/lib/x86_64-linux-gnu/libc.so.6(+0x36e45)[0x7f5bc351ee45]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x104)[0x7f5bc3506eb4]
./src/valyriatear[0x91a219]
======= Memory map: ========
00400000-00e56000 r-xp 00000000 08:0a 2773633 /home/shirish/games/valyriatear/src/valyriatear
01055000-01058000 rw-p 00a55000 08:0a 2773633 /home/shirish/games/valyriatear/src/valyriatear
01058000-0105b000 rw-p 00000000 00:00 0
01ad8000-03acb000 rw-p 00000000 00:00 0 [heap]
7f5bad0fe000-7f5bad0ff000 rw-s 00000000 00:04 13344559 /drm mm object (deleted)
7f5bad0ff000-7f5bad100000 rw-s 00000000 00:04 13344558 /drm mm object (deleted)
7f5bad100000-7f5bad101000 rw-s 00000000 00:04 13344557 /drm mm object (deleted)
7f5bad101000-7f5bad102000 rw-s 00000000 00:04 13344556 /drm mm object (deleted)
7f5bad102000-7f5bad103000 rw-s 00000000 00:04 13344555 /drm mm object (deleted)
7f5bad103000-7f5bad104000 rw-s 00000000 00:04 13344554 /drm mm object (deleted)
7f5bad104000-7f5bad105000 rw-s 00000000 00:04 13344553 /drm mm object (deleted)
7f5bad105000-7f5bad106000 rw-s 00000000 00:04 13344505 /drm mm object (deleted)
7f5bad106000-7f5bad107000 rw-s 00000000 00:04 13343311 /drm mm object (deleted)
7f5bad108000-7f5bad288000 rw-s 13b6d6000 00:05 5256 /dev/dri/card0
7f5baea84000-7f5baec04000 rw-s 12c44f000 00:05 5256 /dev/dri/card0
7f5baec04000-7f5baed84000 rw-s 12c2cf000 00:05 5256 /dev/dri/card0
7f5baed84000-7f5baef04000 rw-s 12c14f000 00:05 5256 /dev/dri/card0
7f5baef04000-7f5baef05000 rw-s 00000000 00:04 13344510 /drm mm object (deleted)
7f5baef05000-7f5baef06000 rw-s 00000000 00:04 13343263 /drm mm object (deleted)
7f5baef06000-7f5baf0c6000 rw-s 12bf8f000 00:05 5256 /dev/dri/card0
7f5baf0c6000-7f5baf246000 rw-s 12be0f000 00:05 5256 /dev/dri/card0
7f5baf246000-7f5baf3c6000 rw-s 12bc8f000 00:05 5256 /dev/dri/card0
7f5baf3c6000-7f5baf546000 rw-s 138499000 00:05 5256 /dev/dri/card0
7f5baf546000-7f5baf6c6000 rw-s 138319000 00:05 5256 /dev/dri/card0
7f5baf6c6000-7f5baf846000 rw-s 138199000 00:05 5256 /dev/dri/card0
7f5baf846000-7f5baf9c6000 rw-s 125a7d000 00:05 5256 /dev/dri/card0
7f5baf9c6000-7f5bafb46000 rw-s 1258fd000 00:05 5256 /dev/dri/card0
7f5bafb46000-7f5bafb47000 rw-s 00000000 00:04 13343288 /drm mm object (deleted)
7f5bafb47000-7f5bafb48000 rw-s 00000000 00:04 13343287 /drm mm object (deleted)
7f5bafb48000-7f5bafb49000 rw-s 00000000 00:04 13343286 /drm mm object (deleted)
7f5bafb49000-7f5bafb4a000 rw-s 00000000 00:04 13343285 /drm mm object (deleted)
7f5bafb4a000-7f5bafb4b000 rw-s 00000000 00:04 13343284 /drm mm object (deleted)
7f5bafb4b000-7f5bafb4c000 rw-s 00000000 00:04 13343283 /drm mm object (deleted)
7f5bafb4c000-7f5bafb4d000 rw-s 00000000 00:04 13343282 /drm mm object (deleted)
7f5bafb4d000-7f5bafb4e000 rw-s 00000000 00:04 13343281 /drm mm object (deleted)
7f5bafb4e000-7f5bafb4f000 rw-s 00000000 00:04 13343280 /drm mm object (deleted)
7f5bafb4f000-7f5bafb50000 rw-s 00000000 00:04 13343279 /drm mm object (deleted)
7f5bafb50000-7f5bafb51000 rw-s 00000000 00:04 13343272 /drm mm object (deleted)
7f5bafb51000-7f5bafb52000 rw-s 00000000 00:04 13336524 /drm mm object (deleted)
7f5bafb52000-7f5bafb53000 rw-s 00000000 00:04 13343277 /drm mm object (deleted)
7f5bafb53000-7f5bafb54000 rw-s 00000000 00:04 13343269 /drm mm object (deleted)
7f5bafb54000-7f5bafb55000 rw-s 00000000 00:04 13343260 /drm mm object (deleted)
7f5bafb55000-7f5bafb56000 rw-s 00000000 00:04 13343256 /drm mm object (deleted)
7f5bafb56000-7f5bafb57000 rw-s 00000000 00:04 13343254 /drm mm object (deleted)
7f5bafb57000-7f5bafb58000 rw-s 00000000 00:04 13335400 /drm mm object (deleted)
7f5bafb58000-7f5bafb59000 rw-s 00000000 00:04 13343276 /drm mm object (deleted)
7f5bafb59000-7f5bafb5a000 rw-s 00000000 00:04 13343274 /drm mm object (deleted)
7f5bafb5a000-7f5bafb5b000 rw-s 00000000 00:04 13343273 /drm mm object (deleted)
7f5bafb5b000-7f5bafb5c000 rw-s 00000000 00:04 13343271 /drm mm object (deleted)
7f5bafb5c000-7f5bafb5d000 rw-s 00000000 00:04 13343268 /drm mm object (deleted)
7f5bafb5d000-7f5bafb5e000 rw-s 00000000 00:04 13343266 /drm mm object (deleted)
7f5bafb5e000-7f5bafb5f000 rw-s 00000000 00:04 13343265 /drm mm object (deleted)
7f5bafb5f000-7f5bafb60000 rw-s 00000000 00:04 13343264 /drm mm object (deleted)
7f5bafb60000-7f5bafb61000 rw-s 00000000 00:04 13343262 /drm mm object (deleted)
7f5bafb61000-7f5bafb62000 rw-s 00000000 00:04 13343261 /drm mm object (deleted)
7f5bafb62000-7f5bafb63000 rw-s 00000000 00:04 13343259 /drm mm object (deleted)
7f5bafb63000-7f5bafb64000 rw-s 00000000 00:04 13343258 /drm mm object (deleted)
7f5bafb64000-7f5bafb65000 rw-s 00000000 00:04 13343257 /drm mm object (deleted)
7f5bafb65000-7f5bafb66000 rw-s 00000000 00:04 13343255 /drm mm object (deleted)
7f5bafb66000-7f5bafb67000 rw-s 00000000 00:04 13343253 /drm mm object (deleted)
7f5bafb67000-7f5bafb68000 rw-s 00000000 00:04 13343252 /drm mm object (deleted)
7f5bafb68000-7f5bafb69000 rw-s 00000000 00:04 13343251 /drm mm object (deleted)
7f5bafb69000-7f5bafb6a000 rw-s 00000000 00:04 13343250 /drm mm object (deleted)
7f5bafb6a000-7f5bafb6b000 rw-s 00000000 00:04 13343249 /drm mm object (deleted)
7f5bafb6b000-7f5bafb6c000 rw-s 00000000 00:04 13343248 /drm mm object (deleted)
7f5bafb6c000-7f5bafb6d000 rw-s 00000000 00:04 13335386 /drm mm object (deleted)
7f5bafb6d000-7f5bafb6e000 rw-s 00000000 00:04 13336521 /drm mm object (deleted)
7f5bafb6e000-7f5bafcee000 rw-s 13ab4e000 00:05 5256 /dev/dri/card0
7f5bafcee000-7f5bafe6e000 rw-s 13a9ce000 00:05 5256 /dev/dri/card0
7f5bafe6e000-7f5baffee000 rw-s 134267000 00:05 5256 /dev/dri/card0
7f5baffee000-7f5baffef000 rw-s 00000000 00:04 13336522 /drm mm object (deleted)
7f5baffef000-7f5bafff0000 rw-s 00000000 00:04 13336520 /drm mm object (deleted)
7f5bafff0000-7f5bafff1000 rw-s 00000000 00:04 13336518 /drm mm object (deleted)
7f5bafff1000-7f5bafff2000 rw-s 00000000 00:04 13336517 /drm mm object (deleted)
7f5bafff2000-7f5bafff3000 rw-s 00000000 00:04 13336516 /drm mm object (deleted)
7f5bafff3000-7f5bafff4000 rw-s 00000000 00:04 13336515 /drm mm object (deleted)
7f5bafff4000-7f5bafff5000 rw-s 00000000 00:04 13336514 /drm mm object (deleted)
7f5bafff5000-7f5bafff6000 rw-s 00000000 00:04 13336512 /drm mm object (deleted)
7f5bafff6000-7f5bafff7000 rw-s 00000000 00:04 13336510 /drm mm object (deleted)
7f5bafff7000-7f5bafff8000 rw-s 00000000 00:04 13336509 /drm mm object (deleted)
7f5bafff8000-7f5bafff9000 rw-s 00000000 00:04 13336507 /drm mm object (deleted)
7f5bafff9000-7f5bafffa000 rw-s 00000000 00:04 13336506 /drm mm object (deleted)
7f5bafffa000-7f5bafffb000 rw-s 00000000 00:04 13336505 /drm mm object (deleted)
7f5bafffb000-7f5bafffc000 rw-s 00000000 00:04 13336504 /drm mm object (deleted)
7f5bafffc000-7f5bafffd000 rw-s 00000000 00:04 13336503 /drm mm object (deleted)
7f5bafffd000-7f5bafffe000 rw-s 00000000 00:04 13336502 /drm mm object (deleted)
7f5bafffe000-7f5baffff000 rw-s 00000000 00:04 13336501 /drm mm object (deleted)
7f5baffff000-7f5bb0000000 rw-s 00000000 00:04 13335402 /drm mm object (deleted)
7f5bb0000000-7f5bb0021000 rw-p 00000000 00:00 0
7f5bb0021000-7f5bb4000000 ---p 00000000 00:00 0
7f5bb405a000-7f5bb465a000 rw-s 12c8cf000 00:05 5256 /dev/dri/card0
7f5bb4e9b000-7f5bb4e9c000 rw-s 00000000 00:04 13344618 /drm mm object (deleted)
7f5bb4e9c000-7f5bb4e9d000 rw-s 00000000 00:04 13344591 /drm mm object (deleted)
7f5bb4ea3000-7f5bb4ea4000 rw-s 00000000 00:04 13344592 /drm mm object (deleted)
7f5bb4ea4000-7f5bb4ea5000 rw-s 00000000 00:04 13343377 /drm mm object (deleted)
7f5bb4ea9000-7f5bb4eaa000 rw-s 00000000 00:04 13344583 /drm mm object (deleted)
7f5bb4eaa000-7f5bb4eab000 rw-s 00000000 00:04 13344586 /drm mm object (deleted)
7f5bb4eab000-7f5bb4eac000 rw-s 00000000 00:04 13344584 /drm mm object (deleted)
7f5bb4eac000-7f5bb4ead000 rw-s 00000000 00:04 13343415 /drm mm object (deleted)
7f5bb4eb3000-7f5bb5033000 rw-s 1243a0000 00:05 5256 /dev/dri/card0
7f5bb53b3000-7f5bb5533000 rw-s 137046000 00:05 5256 /dev/dri/card0
7f5bb5533000-7f5bb5536000 r-xp 00000000 08:09 2113679 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5bb5536000-7f5bb5735000 ---p 00003000 08:09 2113679 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5bb5735000-7f5bb5736000 r--p 00002000 08:09 2113679 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5bb5736000-7f5bb5737000 rw-p 00003000 08:09 2113679 /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7f5bb5737000-7f5bb58b7000 rw-s 136cfd000 00:05 5256 /dev/dri/card0
7f5bb58b7000-7f5bb5a37000 rw-s 136b7d000 00:05 5256 /dev/dri/card0
7f5bb5a37000-7f5bb64bb000 rw-p 00000000 00:00 0
7f5bb64bb000-7f5bb64c3000 r-xp 00000000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5bb64c3000-7f5bb66c2000 ---p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5bb66c2000-7f5bb66c3000 r--p 00007000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5bb66c3000-7f5bb66c4000 rw-p 00008000 08:09 2100827 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.1
7f5bb66c4000-7f5bb66e1000 r-xp 00000000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5bb66e1000-7f5bb68e0000 ---p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5bb68e0000-7f5bb68e1000 r--p 0001c000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5bb68e1000-7f5bb68e2000 rw-p 0001d000 08:09 2098101 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7f5bb68e2000-7f5bb6909000 r-xp 00000000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5bb6909000-7f5bb6b09000 ---p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5bb6b09000-7f5bb6b0b000 r--p 00027000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5bb6b0b000-7f5bb6b0c000 rw-p 00029000 08:09 2229184 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f5bb6b0c000-7f5bb6e91000 r-xp 00000000 08:09 2626256 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f5bb6e91000-7f5bb7091000 ---p 00385000 08:09 2626256 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f5bb7091000-7f5bb70a8000 rw-p 00385000 08:09 2626256 /usr/lib/x86_64-linux-gnu/dri/i915_dri.so
7f5bb70a8000-7f5bb70c0000 rw-p 00000000 00:00 0
7f5bb70c0000-7f5bb70cb000 r-xp 00000000 08:09 2234476 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5bb70cb000-7f5bb72ca000 ---p 0000b000 08:09 2234476 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5bb72ca000-7f5bb72cb000 r--p 0000a000 08:09 2234476 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5bb72cb000-7f5bb72cc000 rw-p 0000b000 08:09 2234476 /lib/x86_64-linux-gnu/libnss_files-2.13.so
7f5bb72cc000-7f5bb72d6000 r-xp 00000000 08:09 2232932 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5bb72d6000-7f5bb74d5000 ---p 0000a000 08:09 2232932 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5bb74d5000-7f5bb74d6000 r--p 00009000 08:09 2232932 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5bb74d6000-7f5bb74d7000 rw-p 0000a000 08:09 2232932 /lib/x86_64-linux-gnu/libnss_nis-2.13.so
7f5bb74d7000-7f5bb74de000 r-xp 00000000 08:09 2232557 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5bb74de000-7f5bb76dd000 ---p 00007000 08:09 2232557 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5bb76dd000-7f5bb76de000 r--p 00006000 08:09 2232557 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5bb76de000-7f5bb76df000 rw-p 00007000 08:09 2232557 /lib/x86_64-linux-gnu/libnss_compat-2.13.so
7f5bb76df000-7f5bb76e0000 ---p 00000000 00:00 0
7f5bb76e0000-7f5bb7ee0000 rw-p 00000000 00:00 0
7f5bbbee1000-7f5bbbee2000 ---p 00000000 00:00 0
7f5bbbee2000-7f5bbc6e2000 rw-p 00000000 00:00 0
7f5bbc6e2000-7f5bbc6eb000 r-xp 00000000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f5bbc6eb000-7f5bbc8ea000 ---p 00009000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f5bbc8ea000-7f5bbc8eb000 rw-p 00008000 08:09 2124763 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f5bbc8eb000-7f5bbc8f4000 r-xp 00000000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f5bbc8f4000-7f5bbcaf4000 ---p 00009000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f5bbcaf4000-7f5bbcaf5000 rw-p 00009000 08:09 2100989 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f5bbcaf5000-7f5bbcc6c000 r--p 00000000 08:09 2101390 /usr/lib/locale/locale-archive
7f5bbcc6c000-7f5bbcc6d000 ---p 00000000 00:00 0
7f5bbcc6d000-7f5bbd46d000 rw-p 00000000 00:00 0
7f5bbd46d000-7f5bbd480000 r-xp 00000000 08:09 2229630 /lib/x86_64-linux-gnu/libresolv-2.13.so
7f5bbd480000-7f5bbd67f000 ---p 00013000 08:09 2229630 /lib/x86_64-linux-gnu/libresolv-2.13.so
7f5bbd67f000-7f5bbd680000 r--p 00012000 08:09 2229630 /lib/x86_64-linux-gnu/libresolv-2.13.soAborted (core dumped)

See the error message it gave :-

~/games/valyriatear$ ./src/valyriatear
WARNING:/home/shirish/games/valyriatear/src/modes/map/map_events.cpp:StartEvent:1085: The event: Forest entrance heal is already active and can be active only once at a time. The StartEvent() call will be ignored. Fix your script!

Dunno if this is another error or not. If it's another error please lemme know. I am sending the save file to you . This is after saving when quitting the game.

@Bertram25
Valyria Tear member

The warning is about an event play at the beginning of a dialogue, which is played twice when you pass the dialogue fast. We've been seeing this several times already and I used to fix this through scripting adaptations, but I'll open another issue now I've found the actual cause of this.

The crash at quit belongs to #15. Thanks for the info, I'll close this one and open a new issue about the warning.

@Bertram25 Bertram25 closed this
@Bertram25 Bertram25 reopened this
@Bertram25
Valyria Tear member

arf, 'm sleepy, didn't see it was th #15, I've reopened it.

@Bertram25 Bertram25 pushed a commit that referenced this issue
Yohann Ferreira Removed an unexisting GlobalEvents reference in certain maps.
The GlobalEvents reference was unexisting and thus possibly equal
to other refs, and possibly triggering random crashes.

I removed everything and didn't permit anymore to set GlobalEvents
references as it was some useless API.

This will hopefully help with issues #15 and #74.
8a25982
@Bertram25
Valyria Tear member

Replaced by #134

@Bertram25 Bertram25 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.