and if I try to run this chunk of code from the FluidDataSet help file examples (Flucoma):
// Using routine
(
fork{
var point = Buffer.alloc(s,1);
var ds = FluidDataSet(s);
s.sync;
10.do{
arg i;
point.set(0,i);
ds.addPoint("point-%".format(i),point);
s.sync;
};
ds.print;
};
)
I get this from valgrind:
valgrind --leak-check=yes scsynth -u 57110 -a 1024 -i 2 -o 2 -b 262144 -n 32768 -d 4096 -m 2097152 -w 512 -R 0 -C 1 -l 1
==30959== Memcheck, a memory error detector
==30959== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==30959== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==30959== Command: scsynth -u 57110 -a 1024 -i 2 -o 2 -b 262144 -n 32768 -d 4096 -m 2097152 -w 512 -R 0 -C 1 -l 1
==30959==
no more csLADSPA plugins
Found 237 LADSPA plugins
==30959== Warning: set address range perms: large range [0x59c93040, 0xd9c930e0) (undefined)
JackDriver: client name is 'SuperCollider'
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512
SuperCollider 3 server ready.
==30959== Thread 7:
==30959== Invalid read of size 8
==30959== at 0x16B32318: fluid::client::copyReplyAddress(void*) (in /home/fabien/.local/share/SuperCollider/Extensions/Ext_Classes/FluidCorpusManipulation/Plugins/FluidManipulation.so)
==30959== by 0x16A2AA02: fluid::client::impl::NonRealTime<fluid::client::NRTThreadingAdaptor<fluid::client::NRTSharedInstanceAdaptor<fluid::client::dataset::DataSetClient> >, fluid::client::FluidSCWrapper<fluid::client::NRTThreadingAdaptor<fluid::client::NRTSharedInstanceAdaptor<fluid::client::dataset::DataSetClient> > > >::defineNRTCommand<fluid::client::impl::NonRealTime<fluid::client::NRTThreadingAdaptor<fluid::client::NRTSharedInstanceAdaptor<fluid::client::dataset::DataSetClient> >, fluid::client::FluidSCWrapper<fluid::client::NRTThreadingAdaptor<fluid::client::NRTSharedInstanceAdaptor<fluid::client::dataset::DataSetClient> > > >::CommandNew>()::{lambda(World*, void*, sc_msg_iter*, void*)#1}::_FUN(World*, void*, sc_msg_iter*, void*) (in /home/fabien/.local/share/SuperCollider/Extensions/Ext_Classes/FluidCorpusManipulation/Plugins/FluidManipulation.so)
==30959== by 0x1695607B: fluid::client::impl::NonRealTime<fluid::client::NRTThreadingAdaptor<fluid::client::NRTSharedInstanceAdaptor<fluid::client::dataset::DataSetClient> >, fluid::client::FluidSCWrapper<fluid::client::NRTThreadingAdaptor<fluid::client::NRTSharedInstanceAdaptor<fluid::client::dataset::DataSetClient> > > >::setup(InterfaceTable*, char const*)::{lambda(World*, void*, sc_msg_iter*, void*)#1}::_FUN(World*, void*, sc_msg_iter*, void*) (in /home/fabien/.local/share/SuperCollider/Extensions/Ext_Classes/FluidCorpusManipulation/Plugins/FluidManipulation.so)
==30959== by 0x1578A1: PlugIn_DoCmd(World*, int, char*, ReplyAddress*) (SC_UnitDef.cpp:159)
==30959== by 0x13A440: SC_LibCmd::Perform(World*, int, char*, ReplyAddress*) (SC_Lib.cpp:188)
==30959== by 0x13491B: PerformOSCPacket(World*, OSC_Packet*, void (*)(World*, OSC_Packet*)) (SC_CoreAudio.cpp:249)
==30959== by 0x1349A0: Perform_ToEngine_Msg(FifoMsg*) (SC_CoreAudio.cpp:287)
==30959== by 0x16F3C7: Perform (SC_FifoMsg.h:47)
==30959== by 0x16F3C7: Perform (MsgFifo.h:62)
==30959== by 0x16F3C7: SC_JackDriver::Run() (SC_Jack.cpp:392)
==30959== by 0x16FB0F: sc_jack_process_cb(unsigned int, void*) (SC_Jack.cpp:165)
==30959== by 0x493543E: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0.3.1005)
==30959== by 0x5C6964C: ??? (in /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so)
==30959== by 0x544B7B5: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== Address 0x6c6db88 is 0 bytes after a block of size 72 alloc'd
==30959== at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x12FD78: scsynth::SC_UdpInPort::handleReceivedUDP(boost::system::error_code const&, unsigned long) (SC_ComPort.cpp:224)
==30959== by 0x12E9DA: operator()<scsynth::SC_UdpInPort*&> (mem_fn.hpp:74)
==30959== by 0x12E9DA: call_impl<boost::_mfi::mf<void (scsynth::SC_UdpInPort::*)(const boost::system::error_code&, long unsigned int), void, scsynth::SC_UdpInPort, const boost::system::error_code&, long unsigned int>, boost::_bi::rrlist<const boost::system::error_code&, long unsigned int const&>, 0, 1, 2> (bind.hpp:192)
==30959== by 0x12E9DA: operator()<void, boost::_mfi::mf<void (scsynth::SC_UdpInPort::*)(const boost::system::error_code&, long unsigned int), void, scsynth::SC_UdpInPort, const boost::system::error_code&, long unsigned int>, boost::_bi::rrlist<const boost::system::error_code&, long unsigned int const&> > (bind.hpp:208)
==30959== by 0x12E9DA: operator()<const boost::system::error_code&, long unsigned int const&> (bind.hpp:321)
==30959== by 0x12E9DA: operator() (bind_handler.hpp:181)
==30959== by 0x12E9DA: complete<boost::asio::detail::binder2<boost::_bi::bind_t<boost::_bi::unspecified, boost::_mfi::mf<void (scsynth::SC_UdpInPort::*)(const boost::system::error_code&, long unsigned int), void, scsynth::SC_UdpInPort, const boost::system::error_code&, long unsigned int>, boost::_bi::list<boost::_bi::value<scsynth::SC_UdpInPort*>, boost::arg<1>, boost::arg<2> > >, boost::system::error_code, long unsigned int> > (handler_work.hpp:470)
==30959== by 0x12E9DA: boost::asio::detail::reactive_socket_recvfrom_op<boost::asio::mutable_buffers_1, boost::asio::ip::basic_endpoint<boost::asio::ip::udp>, boost::_bi::bind_t<boost::_bi::unspecified, boost::_mfi::mf<void (scsynth::SC_UdpInPort::*)(boost::system::error_code const&, unsigned long), void, scsynth::SC_UdpInPort, boost::system::error_code const&, unsigned long>, boost::_bi::list<boost::_bi::value<scsynth::SC_UdpInPort*>, boost::arg<1>, boost::arg<2> > >, boost::asio::any_io_executor>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) (reactive_socket_recvfrom_op.hpp:156)
==30959== by 0x129EF6: complete (scheduler_operation.hpp:40)
==30959== by 0x129EF6: boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) (scheduler.ipp:493)
==30959== by 0x121630: boost::asio::detail::scheduler::run(boost::system::error_code&) [clone .isra.0] (scheduler.ipp:210)
==30959== by 0x121921: run (io_context.ipp:64)
==30959== by 0x121921: scsynth::asioFunction() (SC_ComPort.cpp:453)
==30959== by 0x4C80DB3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.33)
==30959== by 0x4FC5A93: start_thread (pthread_create.c:447)
==30959== by 0x5052A33: clone (clone.S:100)
==30959==
==30959== Thread 4:
==30959== Use of uninitialised value of size 8
==30959== at 0x6DBE9D2: ???
==30959== by 0x656E2F7465536173: ???
==30959== by 0x69692C00000076: ???
==30959== by 0xE6E38736: ???
==30959==
==30959== Invalid read of size 4
==30959== at 0x6DBE9F1: ???
==30959== by 0x656E2F7465536173: ???
==30959== by 0x69692C00000076: ???
==30959== by 0xE6E38736: ???
==30959== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==30959==
==30959==
==30959== Process terminating with default action of signal 11 (SIGSEGV)
==30959== Access not within mapped region at address 0x0
==30959== at 0x6DBE9F1: ???
==30959== by 0x656E2F7465536173: ???
==30959== by 0x69692C00000076: ???
==30959== by 0xE6E38736: ???
==30959== If you believe this happened as a result of a stack
==30959== overflow in your program's main thread (unlikely but
==30959== possible), you can try to increase the size of the
==30959== main thread stack using the --main-stacksize= flag.
==30959== The main thread stack size used in this run was 8388608.
==30959==
==30959== HEAP SUMMARY:
==30959== in use at exit: 2,192,261,793 bytes in 58,852 blocks
==30959== total heap usage: 357,370 allocs, 298,518 frees, 2,275,091,014 bytes allocated
==30959==
==30959== Thread 1:
==30959== 64 bytes in 1 blocks are possibly lost in loss record 3,002 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0xCC6E3E1: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0xCC57C36: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0x544D9A1: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x544DD9F: pw_context_connect (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x4937DE7: jack_client_open (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0.3.1005)
==30959== by 0x16E7F4: SC_JackDriver::DriverSetup(int*, double*) (SC_Jack.cpp:236)
==30959== by 0x133C18: SC_AudioDriver::Setup() (SC_CoreAudio.cpp:418)
==30959== by 0x16096D: World_New (SC_World.cpp:454)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 102 bytes in 4 blocks are definitely lost in loss record 4,126 of 4,921
==30959== at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0xA766A38: LADSPAPluginSearch (in /usr/local/lib/SuperCollider/plugins/LadspaUGen.so)
==30959== by 0xA76676F: load (in /usr/local/lib/SuperCollider/plugins/LadspaUGen.so)
==30959== by 0x1367BC: PlugIn_Load (SC_Lib_Cintf.cpp:372)
==30959== by 0x1367BC: PlugIn_LoadDir(std::filesystem::__cxx11::path const&, bool) [clone .isra.0] (SC_Lib_Cintf.cpp:405)
==30959== by 0x1374E2: initialize_library(char const*) (SC_Lib_Cintf.cpp:195)
==30959== by 0x15FD9B: World_New (SC_World.cpp:319)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 144 bytes in 2 blocks are possibly lost in loss record 4,254 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x546B827: pw_memblock_map (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x49292AD: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0.3.1005)
==30959== by 0xCD78B05: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-client-node.so)
==30959== by 0xCC56EE0: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0xCC576C7: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0x5C67D15: ??? (in /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so)
==30959== by 0x5497C66: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x4FC5A93: start_thread (pthread_create.c:447)
==30959== by 0x5052A33: clone (clone.S:100)
==30959==
==30959== 352 bytes in 1 blocks are possibly lost in loss record 4,584 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x4C80EB0: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.33)
==30959== by 0x8B8F0C0: thread<std::_Bind<void ((anonymous namespace)::DiskIOThread::*((anonymous namespace)::DiskIOThread*))()> > (std_thread.h:164)
==30959== by 0x8B8F0C0: launchThread (DiskIO_UGens.cpp:173)
==30959== by 0x8B8F0C0: load (DiskIO_UGens.cpp:634)
==30959== by 0x1367BC: PlugIn_Load (SC_Lib_Cintf.cpp:372)
==30959== by 0x1367BC: PlugIn_LoadDir(std::filesystem::__cxx11::path const&, bool) [clone .isra.0] (SC_Lib_Cintf.cpp:405)
==30959== by 0x1374E2: initialize_library(char const*) (SC_Lib_Cintf.cpp:195)
==30959== by 0x15FD9B: World_New (SC_World.cpp:319)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 352 bytes in 1 blocks are possibly lost in loss record 4,585 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x4C80EB0: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.33)
==30959== by 0x8CD7C61: thread<void (&)()> (std_thread.h:164)
==30959== by 0x8CD7C61: load (UIUGens.cpp:268)
==30959== by 0x1367BC: PlugIn_Load (SC_Lib_Cintf.cpp:372)
==30959== by 0x1367BC: PlugIn_LoadDir(std::filesystem::__cxx11::path const&, bool) [clone .isra.0] (SC_Lib_Cintf.cpp:405)
==30959== by 0x1374E2: initialize_library(char const*) (SC_Lib_Cintf.cpp:195)
==30959== by 0x15FD9B: World_New (SC_World.cpp:319)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 880 bytes in 1 blocks are possibly lost in loss record 4,724 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x4C80EB0: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.33)
==30959== by 0x133BD5: thread<std::_Bind<void (SC_AudioDriver::*(SC_AudioDriver*))()> > (std_thread.h:164)
==30959== by 0x133BD5: SC_AudioDriver::Setup() (SC_CoreAudio.cpp:412)
==30959== by 0x16096D: World_New (SC_World.cpp:454)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 896 bytes in 1 blocks are possibly lost in loss record 4,725 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x548F23D: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0xC5F8878: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-rt.so)
==30959== by 0x544E289: pw_data_loop_start (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x54500F5: pw_context_new (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x4937B12: jack_client_open (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0.3.1005)
==30959== by 0x16E7F4: SC_JackDriver::DriverSetup(int*, double*) (SC_Jack.cpp:236)
==30959== by 0x133C18: SC_AudioDriver::Setup() (SC_CoreAudio.cpp:418)
==30959== by 0x16096D: World_New (SC_World.cpp:454)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959==
==30959== 896 bytes in 1 blocks are possibly lost in loss record 4,726 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x548F23D: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x54988AD: pw_thread_loop_start (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x4938868: jack_client_open (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0.3.1005)
==30959== by 0x16E7F4: SC_JackDriver::DriverSetup(int*, double*) (SC_Jack.cpp:236)
==30959== by 0x133C18: SC_AudioDriver::Setup() (SC_CoreAudio.cpp:418)
==30959== by 0x16096D: World_New (SC_World.cpp:454)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 896 bytes in 1 blocks are possibly lost in loss record 4,727 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x548F23D: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0xC5F8878: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-rt.so)
==30959== by 0x544E289: pw_data_loop_start (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x4936D06: jack_activate (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0.3.1005)
==30959== by 0x16EDA8: SC_JackDriver::DriverStart() (SC_Jack.cpp:320)
==30959== by 0x16097F: World_New (SC_World.cpp:458)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 896 bytes in 1 blocks are possibly lost in loss record 4,728 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x40145AB: calloc (rtld-malloc.h:44)
==30959== by 0x40145AB: allocate_dtv (dl-tls.c:370)
==30959== by 0x40145AB: _dl_allocate_tls (dl-tls.c:629)
==30959== by 0x4FC6606: allocate_stack (allocatestack.c:429)
==30959== by 0x4FC6606: pthread_create@@GLIBC_2.34 (pthread_create.c:655)
==30959== by 0x4C80EB0: std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.33)
==30959== by 0x121B6F: thread<void (*)()> (std_thread.h:164)
==30959== by 0x121B6F: scsynth::startAsioThread() (SC_ComPort.cpp:457)
==30959== by 0x1609A4: World_New (SC_World.cpp:473)
==30959== by 0x11F81F: scsynth_main(int, char**) (scsynth_main.cpp:417)
==30959== by 0x4F531C9: (below main) (libc_start_call_main.h:58)
==30959==
==30959== 4,096 bytes in 1 blocks are possibly lost in loss record 4,841 of 4,921
==30959== at 0x484D953: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0xCC6EDC3: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0xCC56F31: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0xCC576C7: ??? (in /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so)
==30959== by 0x5C67D15: ??? (in /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so)
==30959== by 0x5497C66: ??? (in /usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0.1005.0)
==30959== by 0x4FC5A93: start_thread (pthread_create.c:447)
==30959== by 0x5052A33: clone (clone.S:100)
==30959==
==30959== 29,344 (312 direct, 29,032 indirect) bytes in 13 blocks are definitely lost in loss record 4,880 of 4,921
==30959== at 0x484DECC: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x497F3D8: fftwf_malloc_plain (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A733C5: fftwf_mkapiplan (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A7DB26: fftwf_plan_many_dft_r2c (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A7CFE8: fftwf_plan_dft_r2c (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A7CEF6: fftwf_plan_dft_r2c_1d (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x11E0CC: scfft_global_initialization (SC_fftlib.cpp:209)
==30959== by 0x11E0CC: __static_initialization_and_destruction_0 (SC_fftlib.cpp:225)
==30959== by 0x11E0CC: _GLOBAL__sub_I__Z12scfft_createmm20SCFFT_WindowFunctionPfS0_15SCFFT_DirectionR15SCFFT_Allocator (SC_fftlib.cpp:446)
==30959== by 0x4F53303: call_init (libc-start.c:145)
==30959== by 0x4F53303: __libc_start_main@@GLIBC_2.34 (libc-start.c:347)
==30959== by 0x11E794: (below main) (in /usr/local/bin/scsynth)
==30959==
==30959== 32,896 bytes in 6 blocks are possibly lost in loss record 4,884 of 4,921
==30959== at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x4004EDC: malloc (rtld-malloc.h:56)
==30959== by 0x4004EDC: _dlfo_mappings_segment_allocate (dl-find_object.c:217)
==30959== by 0x4004EDC: _dl_find_object_update_1 (dl-find_object.c:671)
==30959== by 0x4004EDC: _dl_find_object_update (dl-find_object.c:805)
==30959== by 0x400DC37: dl_open_worker_begin (dl-open.c:756)
==30959== by 0x400151B: _dl_catch_exception (dl-catch.c:237)
==30959== by 0x400CD1F: dl_open_worker (dl-open.c:803)
==30959== by 0x400151B: _dl_catch_exception (dl-catch.c:237)
==30959== by 0x400D163: _dl_open (dl-open.c:905)
==30959== by 0x4FC1193: dlopen_doit (dlopen.c:56)
==30959== by 0x400151B: _dl_catch_exception (dl-catch.c:237)
==30959== by 0x4001668: _dl_catch_error (dl-catch.c:256)
==30959== by 0x4FC0C72: _dlerror_run (dlerror.c:138)
==30959== by 0x4FC124E: dlopen_implementation (dlopen.c:71)
==30959== by 0x4FC124E: dlopen@@GLIBC_2.34 (dlopen.c:81)
==30959==
==30959== 39,456 (312 direct, 39,144 indirect) bytes in 13 blocks are definitely lost in loss record 4,889 of 4,921
==30959== at 0x484DECC: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30959== by 0x497F3D8: fftwf_malloc_plain (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A733C5: fftwf_mkapiplan (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A7D978: fftwf_plan_many_dft_c2r (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A7CEC8: fftwf_plan_dft_c2r (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x4A7CDD6: fftwf_plan_dft_c2r_1d (in /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.6.10)
==30959== by 0x11E117: scfft_global_initialization (SC_fftlib.cpp:216)
==30959== by 0x11E117: __static_initialization_and_destruction_0 (SC_fftlib.cpp:225)
==30959== by 0x11E117: _GLOBAL__sub_I__Z12scfft_createmm20SCFFT_WindowFunctionPfS0_15SCFFT_DirectionR15SCFFT_Allocator (SC_fftlib.cpp:446)
==30959== by 0x4F53303: call_init (libc-start.c:145)
==30959== by 0x4F53303: __libc_start_main@@GLIBC_2.34 (libc-start.c:347)
==30959== by 0x11E794: (below main) (in /usr/local/bin/scsynth)
==30959==
==30959== LEAK SUMMARY:
==30959== definitely lost: 726 bytes in 30 blocks
==30959== indirectly lost: 68,176 bytes in 534 blocks
==30959== possibly lost: 42,368 bytes in 17 blocks
==30959== still reachable: 2,192,150,523 bytes in 58,271 blocks
==30959== suppressed: 0 bytes in 0 blocks
==30959== Reachable blocks (those to which a pointer was found) are not shown.
==30959== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==30959==
==30959== Use --track-origins=yes to see where uninitialised values come from
==30959== For lists of detected and suppressed errors, rerun with: -s
==30959== ERROR SUMMARY: 17 errors from 17 contexts (suppressed: 0 from 0)
Erreur de segmentation (core dumped)
This one is huge,
I don´t know if I have to open another thread for this one cause I don´t know how to interpret the output of valgrind.
Maybe the title of this thread is wrong too, because my problem doesn´t seem to be SuperDirt specific after all.
Any help is very much appreciated.