sunvox hang (present in 1.9.1)

Found a bug? Post it here.
Post Reply
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

sunvox hang (present in 1.9.1)

Post by Koekepan »

I think I've figured out the duplication of the hang bug I mentioned earlier:

1. Load sunvox, play a song.

2. Without silencing the song, load another song.

3. Hang.

I can avoid it by first stopping the music, then hitting stop again to silence all modules.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

What is the system?
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

Re: sunvox hang (present in 1.9.1)

Post by Koekepan »

System: Debian jessie, amd64, ALSA audio.

I've noticed that it's not entirely consistent - sometimes it hangs, sometimes it doesn't. It seems to hang more if my window has been expanded (1920x1200 screen) but not sure. X.org, fluxbox as the window manager in case that helps.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

Ok, thanks!

Please do the following steps.
1) Install GDB through some package manager (apt-get?).
2) Download this SunVox version (with debug information): http://warmplace.ru/temp/sunvox_linux_debug.zip
3) Unpack it.
4) Open Terminal and go to the folder with unpacked SunVox.
5) Enter the following command: gdb ./sunvox
6) SunVox will be launched. This version is slightly slower, don't worry about it :) Try to reproduce the bug now.
7) When SunVox will be hanged - go to the Terminal window and press CTRL+C to enter to GDB.
8) Enter the following command: thread apply all bt
9) Send me the result of this command
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

Re: sunvox hang (present in 1.9.1)

Post by Koekepan »

NightRadio wrote:Ok, thanks!

6) SunVox will be launched. This version is slightly slower, don't worry about it :) Try to reproduce the bug now.

Took a while, but I did it! By the way, the gdb window message at hang:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff65a0528 in _int_free (av=0x7ffff68ca620 <main_arena>,
p=<optimized out>, have_lock=0) at malloc.c:3996
3996 malloc.c: No such file or directory.


7) When SunVox will be hanged - go to the Terminal window and press CTRL+C to enter to GDB.
8) Enter the following command: thread apply all bt
9) Send me the result of this command
(gdb) thread apply all bt

Thread 16 (Thread 0x7fffee7c8700 (LWP 5203)):
#0 0x00007ffff660450d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000000410c64 in midi_client_thread (user_data=0x8448d0)
at ../../lib_sundog/sound/code/sound_linux_alsa_midi.h:59
#2 0x0000000000408771 in bthread_handler (arg=0x8fdf58)
at ../../lib_sundog/utils/code/utils.cpp:360
#3 0x00007ffff78840a4 in start_thread (arg=0x7fffee7c8700)
at pthread_create.c:309
#4 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffeefc9700 (LWP 5189)):
#0 0x00007ffff660450d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007ffff70c3d26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#2 0x00007ffff70c80ce in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#3 0x00007ffff70d351b in snd_pcm_mmap_writei ()
from /usr/lib/x86_64-linux-gnu/libasound.so.2
#4 0x00000000004127cc in sound_thread (arg=0x7969a0 <g_snd>)
at ../../lib_sundog/sound/code/sound_linux.h:181
#5 0x00007ffff78840a4 in start_thread (arg=0x7fffeefc9700)
at pthread_create.c:309
#6 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7ffff06e4700 (LWP 5188)):
#0 0x00007ffff788b18d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007ffff6e2e515 in SDL_Delay ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2 0x00007ffff6de6402 in SDL_WaitEvent ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3 0x000000000041f024 in event_thread (arg=0x7958e0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wm_unixgraphics_sdl.h:173
#4 0x00007ffff78840a4 in start_thread (arg=0x7ffff06e4700)
at pthread_create.c:309
#5 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7ffff0ee5700 (LWP 5187)):
#0 0x00007ffff66062b3 in select () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000000407bce in time_sleep (milliseconds=33)
at ../../lib_sundog/time/code/timemanager.cpp:297
#2 0x000000000041ec1e in frames_thread (arg=0x7958e0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wm_unixgraphics_sdl.h:33
#3 0x0000000000408771 in bthread_handler (arg=0x7966f8 <g_wmanager+3608>)
at ../../lib_sundog/utils/code/utils.cpp:360
#4 0x00007ffff78840a4 in start_thread (arg=0x7ffff0ee5700)
at pthread_create.c:309
#5 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fc67c0 (LWP 5183)):
#0 0x00007ffff65a0528 in _int_free (av=0x7ffff68ca620 <main_arena>,
p=<optimized out>, have_lock=0) at malloc.c:3996
#1 0x000000000040475c in simple_bmem_free (ptr=0xe83910)
at ../../lib_sundog/memory/code/memory.cpp:150
#2 0x000000000040486f in bmem_free (ptr=0xe83938)
at ../../lib_sundog/memory/code/memory.cpp:192
#3 0x00000000004a66d5 in psynth_remove_synth (snum=17, pnet=0x844878)
at ../../lib_sunvox/psynth/psynth_net.cpp:398
#4 0x00000000004a5c4b in psynth_close (pnet=0x844878)
at ../../lib_sunvox/psynth/psynth_net.cpp:150
#5 0x0000000000486ca1 in sunvox_engine_close (s=0x83b3a8)
at ../../lib_sunvox/sunvox_engine.cpp:275
#6 0x0000000000496846 in sunvox_load_proj_from_fd (f=1, load_flags=0,
s=0x83b3a8) at ../../lib_sunvox/sunvox_engine_load_proj.cpp:151
#7 0x000000000049b1f4 in sunvox_load_proj (
name=0x8fbdc8 "/home/paleman/musictools/sunvoxbeta/examples/sunvox_compo/KnyazIvan - Cold Summer.sunvox", load_flags=0, s=0x83b3a8)
at ../../lib_sunvox/sunvox_engine_load_proj.cpp:1320
#8 0x000000000046612c in load_proj_with_name (
name=0x8fbdc8 "/home/paleman/musictools/sunvoxbeta/examples/sunvox_compo/KnyazIvan - Cold Summer.sunvox", f=0, load_flags=0, sunvox_win=0x827ec8)
at ../main/sunvox_windows_project.cpp:447
#9 0x0000000000466488 in load_proj (sunvox_win=0x827ec8)
at ../main/sunvox_windows_project.cpp:559
#10 0x00000000004471e0 in main_menu_handler (user_data=0x827fa8, win=0x8ee078,
wm=0x7958e0 <g_wmanager>) at ../main/sunvox_windows_main.cpp:936
#11 0x0000000000433ce8 in button_handler (evt=0x7fffffffe4e0,
wm=0x7958e0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/handlers.cpp:1213
#12 0x000000000041a220 in handle_event_by_window (evt=0x7fffffffe4e0,
wm=0x7958e0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:1803
#13 0x000000000041a12e in handle_event (evt=0x7fffffffe550,
wm=0x7958e0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:1774
#14 0x000000000041a412 in EVENT_LOOP_BEGIN (evt=0x7fffffffe550,
wm=0x7958e0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:1874
#15 0x000000000040d7f6 in sundog_main (sys_pars=0x7fffffffe5a0)
at ../../lib_sundog/core/code/main.cpp:161
#16 0x000000000040d6eb in main (argc=2, argv=0x7fffffffe698)
at ../../lib_sundog/core/code/main.cpp:132


Hope that helps! Yes, it was noticeably slower, but worked fairly well, all things considered.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

Thank you!
I will examine this information
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

Can you say what song was loaded before the "KnyazIvan - Cold Summer.sunvox"?
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

Re: sunvox hang (present in 1.9.1)

Post by Koekepan »

Recreated it, here's the output:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff65a0528 in _int_free (av=0x7ffff68ca620 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3996
3996 malloc.c: No such file or directory.
(gdb) thread apply all bt

Thread 26 (Thread 0x7fffee7c8700 (LWP 4094)):
#0 0x00007ffff660450d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000000410c64 in midi_client_thread (user_data=0x84e2f0) at ../../lib_sundog/sound/code/sound_linux_alsa_midi.h:59
#2 0x0000000000408771 in bthread_handler (arg=0x8382b8) at ../../lib_sundog/utils/code/utils.cpp:360
#3 0x00007ffff78840a4 in start_thread (arg=0x7fffee7c8700) at pthread_create.c:309
#4 0x00007ffff660d04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffeefc9700 (LWP 4071)):
#0 0x00007ffff660450d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007ffff70c3d26 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#2 0x00007ffff70c80ce in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#3 0x00007ffff70d351b in snd_pcm_mmap_writei () from /usr/lib/x86_64-linux-gnu/libasound.so.2
#4 0x00000000004127cc in sound_thread (arg=0x7969a0 <g_snd>) at ../../lib_sundog/sound/code/sound_linux.h:181
#5 0x00007ffff78840a4 in start_thread (arg=0x7fffeefc9700) at pthread_create.c:309
#6 0x00007ffff660d04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7ffff06e4700 (LWP 4070)):
#0 0x00007ffff788b18d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007ffff6e2e515 in SDL_Delay () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2 0x00007ffff6de6402 in SDL_WaitEvent () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3 0x000000000041f024 in event_thread (arg=0x7958e0 <g_wmanager>) at ../../lib_sundog/window_manager/code/wm_unixgraphics_sdl.h:173
#4 0x00007ffff78840a4 in start_thread (arg=0x7ffff06e4700) at pthread_create.c:309
#5 0x00007ffff660d04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7ffff0ee5700 (LWP 4069)):
#0 0x00007ffff66062b3 in select () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000000407bce in time_sleep (milliseconds=33) at ../../lib_sundog/time/code/timemanager.cpp:297
#2 0x000000000041ec1e in frames_thread (arg=0x7958e0 <g_wmanager>) at ../../lib_sundog/window_manager/code/wm_unixgraphics_sdl.h:33
#3 0x0000000000408771 in bthread_handler (arg=0x7966f8 <g_wmanager+3608>) at ../../lib_sundog/utils/code/utils.cpp:360
#4 0x00007ffff78840a4 in start_thread (arg=0x7ffff0ee5700) at pthread_create.c:309
#5 0x00007ffff660d04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fc67c0 (LWP 4065)):
#0 0x00007ffff65a0528 in _int_free (av=0x7ffff68ca620 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3996
#1 0x000000000040475c in simple_bmem_free (ptr=0x86b970) at ../../lib_sundog/memory/code/memory.cpp:150
#2 0x000000000040486f in bmem_free (ptr=0x86b998) at ../../lib_sundog/memory/code/memory.cpp:192
#3 0x00000000004a6766 in psynth_remove_synth (snum=12, pnet=0x84e298) at ../../lib_sunvox/psynth/psynth_net.cpp:410
#4 0x00000000004a5c4b in psynth_close (pnet=0x84e298) at ../../lib_sunvox/psynth/psynth_net.cpp:150
#5 0x0000000000486ca1 in sunvox_engine_close (s=0x83b3a8) at ../../lib_sunvox/sunvox_engine.cpp:275
#6 0x0000000000496846 in sunvox_load_proj_from_fd (f=1, load_flags=0, s=0x83b3a8) at ../../lib_sunvox/sunvox_engine_load_proj.cpp:151
#7 0x000000000049b1f4 in sunvox_load_proj (name=0x11a0548 "/home/paleman/musictools/sunvoxbeta/examples/sunvox_compo/KnyazIvan - Left Double Quotation Mark.sunvox", load_flags=0, s=0x83b3a8)
at ../../lib_sunvox/sunvox_engine_load_proj.cpp:1320
#8 0x000000000046612c in load_proj_with_name (name=0x11a0548 "/home/paleman/musictools/sunvoxbeta/examples/sunvox_compo/KnyazIvan - Left Double Quotation Mark.sunvox", f=0, load_flags=0, sunvox_win=0x827ec8)
at ../main/sunvox_windows_project.cpp:447
#9 0x0000000000466488 in load_proj (sunvox_win=0x827ec8) at ../main/sunvox_windows_project.cpp:559
#10 0x00000000004471e0 in main_menu_handler (user_data=0x827fa8, win=0x8ee078, wm=0x7958e0 <g_wmanager>) at ../main/sunvox_windows_main.cpp:936
#11 0x0000000000433ce8 in button_handler (evt=0x7fffffffe4e0, wm=0x7958e0 <g_wmanager>) at ../../lib_sundog/window_manager/code/handlers.cpp:1213
#12 0x000000000041a220 in handle_event_by_window (evt=0x7fffffffe4e0, wm=0x7958e0 <g_wmanager>) at ../../lib_sundog/window_manager/code/wmanager.cpp:1803
#13 0x000000000041a12e in handle_event (evt=0x7fffffffe550, wm=0x7958e0 <g_wmanager>) at ../../lib_sundog/window_manager/code/wmanager.cpp:1774
#14 0x000000000041a412 in EVENT_LOOP_BEGIN (evt=0x7fffffffe550, wm=0x7958e0 <g_wmanager>) at ../../lib_sundog/window_manager/code/wmanager.cpp:1874
#15 0x000000000040d7f6 in sundog_main (sys_pars=0x7fffffffe5a0) at ../../lib_sundog/core/code/main.cpp:161
#16 0x000000000040d6eb in main (argc=1, argv=0x7fffffffe698) at ../../lib_sundog/core/code/main.cpp:132
(gdb)


I did it this time by specifically cycling through the demo songs, so before Left Double Quotation Mark came Cold Summer, both by KnyazIvan.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

Thank you again! :)
Now i see that the crash point is in the memory freeing operation. But why - it is still the question...
And if you don't complicate, please also launch the SunVox through the Valgrind debugger - this will give me much more information.
Valgrind is a powerful dynamic code analyzer (you can find it in the Debian repos).
How to launch: valgrind ./sunvox
The speed will be terrible, the sound will stutter. But it is a normal situation for Valgrind, don't worry :)
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

Re: sunvox hang (present in 1.9.1)

Post by Koekepan »

I've been trying for several hours now to replicate with valgrind, but no luck so far. I'm starting to wonder whether something about valgrind's behaviour is inhibiting some kind of race condition between threads that reveals the problem.

But this is pure speculation on my part.

Another (possibly) relevant point: I'm using an AMD FX8320E CPU. It's just possible that threading on AMD is somehow weirder? I have no data to support this hypothesis.
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

Re: sunvox hang (present in 1.9.1)

Post by Koekepan »

SOUND: sound_stream_deinit() begin
ALSA snd_pcm_writei error: Broken pipe
ALSA EPIPE (underrun)
SOUND: sound_stream_deinit() end
SDL_Quit()...
Removing SDL mutexes...
Max memory used: 44879235
==4429==
==4429== HEAP SUMMARY:
==4429== in use at exit: 256,203 bytes in 6,853 blocks
==4429== total heap usage: 1,234,305 allocs, 1,227,452 frees, 1,678,088,972 bytes allocated
==4429==
==4429== LEAK SUMMARY:
==4429== definitely lost: 668 bytes in 20 blocks
==4429== indirectly lost: 6,912 bytes in 152 blocks
==4429== possibly lost: 197,568 bytes in 6,091 blocks
==4429== still reachable: 51,055 bytes in 590 blocks
==4429== suppressed: 0 bytes in 0 blocks
==4429== Rerun with --leak-check=full to see details of leaked memory
==4429==
==4429== For counts of detected and suppressed errors, rerun with: -v
==4429== Use --track-origins=yes to see where uninitialised values come from
==4429== ERROR SUMMARY: 312 errors from 23 contexts (suppressed: 79750 from 1)

There is the last output when I finally gave up trying to recreate under valgrind.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

I've been trying for several hours now to replicate with valgrind, but no luck so far.
No problem. Thank you anyway!
I will try to make some additional tests with GDB.
It's just possible that threading on AMD is somehow weirder?
I don't think so
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: sunvox hang (present in 1.9.1)

Post by NightRadio »

Please try this version with GDB: http://warmplace.ru/temp/sunvox_linux_debug2.zip
Also please send me the following file after the SunVox crash: /tmp/sunvox_log.txt
Thank you!
Koekepan
Posts: 262
Joined: Thu Dec 05, 2013 4:56 am

Re: sunvox hang (present in 1.9.1)

Post by Koekepan »

FREE 0x10685d0; size=7680; name=psynth_add_synt
FREE 0x106a400; size=7680; name=psynth_add_synt
FREE 0x1029b30; size=8; name=load_block
FREE 0x1029b70; size=8; name=psynth_add_outp
FREE 0x1148370; size=39936; name=psynth_init
FREE 0xff53c0; size=3112; name=bsymtab_init
FREE 0xff3f90; size=5120; name=psynth_init
FREE 0xfbe6b0; size=8440; name=sunvox_engine_i
FREE 0x7fffe4002150; size=2048; name=ring_buf_write
FREE 0xfc3140; size=80; name=ring_buf_new
FREE 0xf88040; size=80; name=ring_buf_new
SunVox engine closed.
[Thread 0x7fffeede7700 (LWP 7676) exited]
SunVox engine closed.
[New Thread 0x7fffeede7700 (LWP 7681)]
SunVox engine closing...
FREE 0xffaef0; size=17; name=sunvox_engine_i
FREE 0xde44f0; size=512; name=psynth_add_synt
FREE 0xde4720; size=7680; name=psynth_add_synt
FREE 0xde6550; size=7680; name=psynth_add_synt
FREE 0xddfd30; size=9984; name=psynth_init
FREE 0xde3890; size=3112; name=bsymtab_init
FREE 0xde2460; size=5120; name=psynth_init
FREE 0xdddc00; size=8440; name=sunvox_engine_i
FREE 0xd3a7a0; size=80; name=ring_buf_new
FREE 0x8a44a0; size=80; name=ring_buf_new
SunVox engine closed.

Program received signal SIGSEGV, Segmentation fault.
malloc_consolidate (av=av@entry=0x7ffff68ca620 <main_arena>) at malloc.c:4157
4157 malloc.c: No such file or directory.
(gdb) thread apply all bt

Thread 7 (Thread 0x7fffeede7700 (LWP 7681)):
#0 0x00007ffff660450d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000000410c9b in midi_client_thread (user_data=0x7f9910)
at ../../lib_sundog/sound/code/sound_linux_alsa_midi.h:59
#2 0x00000000004087a8 in bthread_handler (arg=0x8a96b8)
at ../../lib_sundog/utils/code/utils.cpp:360
#3 0x00007ffff78840a4 in start_thread (arg=0x7fffeede7700)
at pthread_create.c:309
#4 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffef5e8700 (LWP 7664)):
#0 0x00007ffff6b275a3 in __sin_fma4 (x=5.5197722043710149)
at ../sysdeps/ieee754/dbl-64/s_sin.c:370
#1 0x00000000004b6658 in psynth_fm (synth_id=99, event=0x7fffef5e5610,
pnet=0x7f98b8) at ../../lib_sunvox/psynth/psynths_fm.cpp:481
#2 0x00000000004a9a27 in psynth_render (start_item=99, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1474
#3 0x00000000004a9289 in psynth_render (start_item=100, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#4 0x00000000004a9289 in psynth_render (start_item=65, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
---Type <return> to continue, or q <return> to quit---
#5 0x00000000004a9289 in psynth_render (start_item=67, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#6 0x00000000004a9289 in psynth_render (start_item=68, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#7 0x00000000004a9289 in psynth_render (start_item=64, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#8 0x00000000004a9289 in psynth_render (start_item=63, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#9 0x00000000004a9289 in psynth_render (start_item=12, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#10 0x00000000004a9289 in psynth_render (start_item=66, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#11 0x00000000004a9289 in psynth_render (start_item=60, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#12 0x00000000004a9289 in psynth_render (start_item=71, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#13 0x00000000004a9289 in psynth_render (start_item=47, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#14 0x00000000004a9289 in psynth_render (start_item=70, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#15 0x00000000004a9289 in psynth_render (start_item=31, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#16 0x00000000004a9289 in psynth_render (start_item=74, pnet=0x7f98b8)
---Type <return> to continue, or q <return> to quit---
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#17 0x00000000004a9289 in psynth_render (start_item=36, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#18 0x00000000004a9289 in psynth_render (start_item=77, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1324
#19 0x00000000004a8b3d in psynth_render (start_item=0, pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1197
#20 0x00000000004aabc4 in psynth_render_all (pnet=0x7f98b8)
at ../../lib_sunvox/psynth/psynth_net.cpp:1795
#21 0x000000000049370d in sunvox_render_piece_of_sound_level2 (
rdata=0x7fffef5e7cf0, level1_offset=0, f_current_buffer=0, s=0x7f03e8)
at ../../lib_sunvox/sunvox_engine_audio_callback.cpp:1982
#22 0x000000000049460f in sunvox_render_piece_of_sound (rdata=0x7fffef5e7cf0,
s=0x7f03e8) at ../../lib_sunvox/sunvox_engine_audio_callback.cpp:2277
#23 0x0000000000445e6d in render_piece_of_sound (ss=0x796a60 <g_snd>,
slot_num=0) at ../main/sunvox_windows_main.cpp:476
#24 0x000000000040da81 in main_sound_output_callback (ss=0x796a60 <g_snd>,
flags=0) at ../../lib_sundog/sound/code/sound_player.cpp:50
#25 0x0000000000412663 in sound_thread (arg=0x796a60 <g_snd>)
at ../../lib_sundog/sound/code/sound_linux.h:141
#26 0x00007ffff78840a4 in start_thread (arg=0x7fffef5e8700)
at pthread_create.c:309
#27 0x00007ffff660d04d in clone ()
---Type <return> to continue, or q <return> to quit---
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7ffff06e4700 (LWP 7663)):
#0 0x00007ffff788b18d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007ffff6e2e515 in SDL_Delay ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2 0x00007ffff6de6402 in SDL_WaitEvent ()
from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3 0x000000000041f05b in event_thread (arg=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wm_unixgraphics_sdl.h:173
#4 0x00007ffff78840a4 in start_thread (arg=0x7ffff06e4700)
at pthread_create.c:309
#5 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7ffff0ee5700 (LWP 7662)):
#0 0x00007ffff66062b3 in select () at ../sysdeps/unix/syscall-template.S:81
#1 0x0000000000407c05 in time_sleep (milliseconds=33)
at ../../lib_sundog/time/code/timemanager.cpp:297
#2 0x000000000041ec55 in frames_thread (arg=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wm_unixgraphics_sdl.h:33
#3 0x00000000004087a8 in bthread_handler (arg=0x7967b8 <g_wmanager+3608>)
at ../../lib_sundog/utils/code/utils.cpp:360
---Type <return> to continue, or q <return> to quit---
#4 0x00007ffff78840a4 in start_thread (arg=0x7ffff0ee5700)
at pthread_create.c:309
#5 0x00007ffff660d04d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fc67c0 (LWP 7658)):
#0 malloc_consolidate (av=av@entry=0x7ffff68ca620 <main_arena>)
at malloc.c:4157
#1 0x00007ffff65a0ee8 in _int_malloc (av=0x7ffff68ca620 <main_arena>,
bytes=4136) at malloc.c:3423
#2 0x00007ffff65a3070 in __GI___libc_malloc (bytes=4136) at malloc.c:2891
#3 0x00000000004045db in bmem_new_ext (size=4096,
name=0x5419b0 <list_init(list_data*)::__FUNCTION__> "list_init")
at ../../lib_sundog/memory/code/memory.cpp:99
#4 0x0000000000407c23 in list_init (data=0x8a7a98)
at ../../lib_sundog/utils/code/utils.cpp:31
#5 0x000000000042d2ce in list_handler (evt=0x796200 <g_wmanager+2144>,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/handlers_list.h:112
#6 0x00000000004176a9 in new_window (name=0x544e28 "files", x=0, y=49,
xsize=100, ysize=100, color=1310720, parent=0xbd6ae8, host=0x0,
win_handler=0x42d1d7 <list_handler(sundog_event*, window_manager*)>,
wm=0x7959a0 <g_wmanager>)
---Type <return> to continue, or q <return> to quit---
at ../../lib_sundog/window_manager/code/wmanager.cpp:730
#7 0x0000000000417748 in new_window (name=0x544e28 "files", x=0, y=49,
xsize=100, ysize=100, color=1310720, parent=0xbd6ae8,
win_handler=0x42d1d7 <list_handler(sundog_event*, window_manager*)>,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:756
#8 0x000000000042bf11 in files_handler (evt=0x796200 <g_wmanager+2144>,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/handlers_files.h:1141
#9 0x00000000004176a9 in new_window (name=0x54d35b "Load project", x=0, y=0,
xsize=490, ysize=580, color=1310720, parent=0x1055e88, host=0x0,
win_handler=0x42ae53 <files_handler(sundog_event*, window_manager*)>,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:730
#10 0x000000000041c30c in new_window_with_decorator (
name=0x54d35b "Load project", x=0, y=0, xsize=490, ysize=580,
color=1310720, parent=0x7dcce8, host=0x0,
win_handler=0x42ae53 <files_handler(sundog_event*, window_manager*)>,
flags=3, wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:2617
#11 0x000000000041c626 in new_window_with_decorator (
name=0x54d35b "Load project", x=0, y=0, xsize=490, ysize=580,
color=1310720, parent=0x7dcce8,
---Type <return> to continue, or q <return> to quit---
win_handler=0x42ae53 <files_handler(sundog_event*, window_manager*)>,
flags=3, wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:2659
#12 0x000000000041df60 in dialog_open_file (name=0x54d35b "Load project",
mask=0x548eb4 "sunvox/mod/xm/mid/midi", id=0x548ea5 ".sunvox_song_l",
def_filename=0x0, wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:3321
#13 0x000000000046649e in load_proj (sunvox_win=0x7dcf08)
at ../main/sunvox_windows_project.cpp:558
#14 0x0000000000447217 in main_menu_handler (user_data=0x7dcfe8, win=0x8a3188,
wm=0x7959a0 <g_wmanager>) at ../main/sunvox_windows_main.cpp:936
#15 0x0000000000433d1f in button_handler (evt=0x7fffffffe4e0,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/handlers.cpp:1213
#16 0x000000000041a257 in handle_event_by_window (evt=0x7fffffffe4e0,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:1803
#17 0x000000000041a165 in handle_event (evt=0x7fffffffe550,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:1774
#18 0x000000000041a449 in EVENT_LOOP_BEGIN (evt=0x7fffffffe550,
wm=0x7959a0 <g_wmanager>)
at ../../lib_sundog/window_manager/code/wmanager.cpp:1874
---Type <return> to continue, or q <return> to quit---
#19 0x000000000040d82d in sundog_main (sys_pars=0x7fffffffe5a0)
at ../../lib_sundog/core/code/main.cpp:161
#20 0x000000000040d722 in main (argc=1, argv=0x7fffffffe698)
at ../../lib_sundog/core/code/main.cpp:132
(gdb)
Attachments
sunvox_log.txt
Looks like part of gdb output.
(32.42 KiB) Downloaded 400 times
Post Reply