Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] audiohost segfault on sample plugin #58

Open
jhammen opened this issue Jul 14, 2023 · 0 comments
Open

[Linux] audiohost segfault on sample plugin #58

jhammen opened this issue Jul 14, 2023 · 0 comments

Comments

@jhammen
Copy link

jhammen commented Jul 14, 2023

Ubuntu 22.04 "jammy"

audiohost loads and runs the noteexpressionsynth sample but segfaults on exit:

/vst3test/build/bin/Debug$ ./audiohost /home/john/Desktop/vst3test/build/VST3/Debug/noteexpressionsynth.vst3
Press <enter> to continue . . .
Segmentation fault (core dumped)

GDB stacktrace:

Reading symbols from ./audiohost...
(gdb) run /vst3test/build/VST3/Debug/noteexpressionsynth.vst3
Starting program: /vst3test/build/bin/Debug/audiohost /vst3test/build/VST3/Debug/noteexpressionsynth.vst3

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff5e5c640 (LWP 276805)]
[New Thread 0x7ffff5c67640 (LWP 276806)]
[New Thread 0x7ffff5be4640 (LWP 276807)]
Press <enter> to continue . . .
[Thread 0x7ffff5be4640 (LWP 276807) exited]
[Thread 0x7ffff5c67640 (LWP 276806) exited]
[Thread 0x7ffff5e5c640 (LWP 276805) exited]

Thread 1 "audiohost" received signal SIGSEGV, Segmentation fault.
0x0000555555603320 in ?? ()
(gdb) bt
#0  0x0000555555603320 in  ()
#1  0x00007ffff728840a in VSTGUI::SharedPointer<VSTGUI::CFontDesc>::operator=(VSTGUI::CFontDesc*) (this=0x7ffff7842660 <VSTGUI::globalFonts>, _ptr=0x0)
    at /vst3test/vst3sdk/vstgui4/vstgui/lib/vstguibase.h:441
#2  0x00007ffff74d5c04 in VSTGUI::CFontDesc::cleanup() () at /vst3test/vst3sdk/vstgui4/vstgui/lib/cfont.cpp:96
#3  0x00007ffff7588528 in VSTGUI::exit() () at /vst3test/vst3sdk/vstgui4/vstgui/lib/vstguiinit.cpp:20
#4  0x00007ffff72af445 in operator()() const (__closure=0x555555612628) at /vst3test/vst3sdk/public.sdk/source/vst/vstguieditor.cpp:67
#5  0x00007ffff72b0796 in std::__invoke_impl<void, <lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/11/bits/invoke.h:61
#6  0x00007ffff72b05d6 in std::__invoke_r<void, <lambda()>&>(struct {...} &) (__fn=...) at /usr/include/c++/11/bits/invoke.h:111
#7  0x00007ffff72b038c in std::_Function_handler<void(), <lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/11/bits/std_function.h:290
#8  0x00007ffff72a5658 in std::function<void ()>::operator()() const (this=0x555555612628) at /usr/include/c++/11/bits/std_function.h:590
#9  0x00007ffff72b2285 in Steinberg::(anonymous namespace)::sortAndRunFunctions(Steinberg::(anonymous namespace)::FunctionVector&) (array=std::vector of length 1, capacity 1 = {...})
    at /vst3test/vst3sdk/public.sdk/source/main/moduleinit.cpp:84
#10 0x00007ffff72b2375 in DeinitModule() () at /vst3test/vst3sdk/public.sdk/source/main/moduleinit.cpp:121
#11 0x00007ffff728c757 in ModuleExit() () at /vst3test/vst3sdk/public.sdk/source/main/linuxmain.cpp:77
#12 0x000055555558c9f9 in VST3::Hosting::(anonymous namespace)::LinuxModule::~LinuxModule() (this=0x5555555e4fa0, __in_chrg=<optimized out>)
    at /vst3test/vst3sdk/public.sdk/source/vst/hosting/module_linux.cpp:140
#13 0x000055555558f17b in __gnu_cxx::new_allocator<VST3::Hosting::(anonymous namespace)::LinuxModule>::destroy<VST3::Hosting::(anonymous namespace)::LinuxModule>(VST3::Hosting::(anonymous namespace)::LinuxModule*) (this=0x5555555e4fa0, __p=0x5555555e4fa0) at /usr/include/c++/11/ext/new_allocator.h:168
#14 0x000055555558f147 in std::allocator_traits<std::allocator<VST3::Hosting::(anonymous namespace)::LinuxModule> >::destroy<VST3::Hosting::(anonymous namespace)::LinuxModule>(std::allocator_traits<std::allocator<VST3::Hosting::(anonymous namespace)::LinuxModule> >::allocator_type&, VST3::Hosting::(anonymous namespace)::LinuxModule*) (__a=..., __p=0x5555555e4fa0)
    at /usr/include/c++/11/bits/alloc_traits.h:535
#15 0x000055555558f00b in std::_Sp_counted_ptr_inplace<VST3::Hosting::(anonymous namespace)::LinuxModule, std::allocator<VST3::Hosting::(anonymous namespace)::LinuxModule>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() (this=0x5555555e4f90) at /usr/include/c++/11/bits/shared_ptr_base.h:528
#16 0x000055555557f285 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (this=0x5555555e4f90) at /usr/include/c++/11/bits/shared_ptr_base.h:168
#17 0x000055555557de5f in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() (this=0x5555555e47f0, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:705
#18 0x000055555557d23c in std::__shared_ptr<VST3::Hosting::Module, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() (this=0x5555555e47e8, __in_chrg=<optimized out>)
    at /usr/include/c++/11/bits/shared_ptr_base.h:1154
#19 0x000055555557d25c in std::shared_ptr<VST3::Hosting::Module>::~shared_ptr() (this=0x5555555e47e8, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr.h:122
#20 0x000055555557c0da in Steinberg::Vst::AudioHost::App::~App() (this=0x5555555e47e0, __in_chrg=<optimized out>)
    at /vst3test/vst3sdk/public.sdk/samples/vst-hosting/audiohost/source/audiohost.cpp:68
#21 0x000055555557c106 in Steinberg::Vst::AudioHost::App::~App() (this=0x5555555e47e0, __in_chrg=<optimized out>)
    at /vst3test/vst3sdk/public.sdk/samples/vst-hosting/audiohost/source/audiohost.cpp:68
#22 0x000055555557e4be in std::default_delete<Steinberg::Vst::EditorHost::IApplication>::operator()(Steinberg::Vst::EditorHost::IApplication*) const
    (this=0x5555555d1890 <Steinberg::Vst::AudioHost::gInit>, __ptr=0x5555555e47e0) at /usr/include/c++/11/bits/unique_ptr.h:85
#23 0x000055555557d47e in std::unique_ptr<Steinberg::Vst::EditorHost::IApplication, std::default_delete<Steinberg::Vst::EditorHost::IApplication> >::~unique_ptr()
    (this=0x5555555d1890 <Steinberg::Vst::AudioHost::gInit>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/unique_ptr.h:361
#24 0x000055555558296a in Steinberg::Vst::AudioHost::AppInit::~AppInit() (this=0x5555555d1890 <Steinberg::Vst::AudioHost::gInit>, __in_chrg=<optimized out>)
    at /vst3test/vst3sdk/public.sdk/samples/vst-hosting/audiohost/source/platform/appinit.h:48
#25 0x00007ffff7b24495 in __run_exit_handlers (status=0, listp=0x7ffff7cf8838 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at ./stdlib/exit.c:113
#26 0x00007ffff7b24610 in __GI_exit (status=<optimized out>) at ./stdlib/exit.c:143
#27 0x00007ffff7b08d97 in __libc_start_call_main (main=main@entry=0x55555557c99d <main(int, char**)>, argc=argc@entry=2, argv=argv@entry=0x7fffffffe088) at ../sysdeps/nptl/libc_start_call_main.h:74
#28 0x00007ffff7b08e40 in __libc_start_main_impl
     (main=0x55555557c99d <main(int, char**)>, argc=2, argv=0x7fffffffe088, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe078) at ../csu/libc-start.c:392
#29 0x0000555555566635 in _start ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 276802] will be killed.

Quit anyway? (y or n) y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant