-
Notifications
You must be signed in to change notification settings - Fork 53
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
malloc creates "random" uninitialized pointers in plugin_data. Crashes allpass_1895 and maybe others. #17
Comments
I belive 17031ca should address this. Can you test? |
This seems to be working. I did run into some problems on the build though. faf0a93 seems to beak the build on systems with a more recent libtools. Also autogen.sh expects to find libtoolize in the current directory by the -x test. Maybe that test isn't needed. Last, 422ee38 seems to cause problems with gcc 4.8 and glib 2.17 (at least on Slackware); the deprecated init and fini seem to work. I don't know if this is just some wart with dlopen or something deeper. |
On Wed, 24 Jun 2015 02:33:47 -0700
You're correct to be worried. There's something deeper going on. I just tried a simple example, and The libtool complaint is "libtool: link: unsupported hardcode properties" I'm not a libtool/autotools guru. I just git bisected until I found something that let me compile. I don't think both troubles are related, but I'll dig and get back to you. BTW: thanks for the fix on Bode. I was worried that the scratchy nastiness was just an inevitable DSP artifact, but it sounds great now. Update: |
OK, I've put back what I think is the same code con/de-structor code (modulo there was a typo). Can you test it? |
On Thu, 25 Jun 2015 06:24:58 -0700
Without changing line 46 in Makefile.am from:
to:
the reversion just takes us back where we started. The point of the post and the LDP reference was to mention that -nostartfiles can't be used when building shared libraries. |
... I thought you wanted to go back to where we started? So Makefile.am just needs that option removing? |
Perhaps it would be easier if you sent pull requests? I don't have a test environment set up, so I'm kind of changing things blind. |
On Thu, 25 Jun 2015 10:24:39 -0700
I'm basing my replies on a clone taken on my private machine. Forgive me, but I generally hate web See line #46 on https://github.com/swh/ladspa/blob/master/Makefile.am You need to remove the '-Wc,-nostartfiles' in order for the new style ctor/dtors to get seen at load time, otherwise Sincere regards, Christopher Oliver current.input.port@gmail.com |
Thanks, fixed in f3c11af I share your disdain for web interfaces for development, for what it's worth. |
If one activates a initialized LADSPA allpass delay plugin with max_delay unconnected, the host crashes with SIGSEGV by chasing plugin_data->max_delay which will contain an unpredictable value, and the NULL test can't guard against that. I don't know how many other plugins suffer the same fault, but perhaps makestub.pl should generate calloc rather than malloc so that pointers are NULL by default.
This is the complaint NerdyProjects raised earlier. BTW: Alsa Modular Synth uses LADSPA plugins, and simply disregarding this issue is not a good thing to do.
The text was updated successfully, but these errors were encountered: