Re: mbeq_119700 issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 04 Jan 2007 09:43:16 +0100Sebastian Schäfer <schaefer@xxxxxxx> wrote:
> On Do, 2007-01-04 at 00:41 +0200, Sergei Steshenko wrote:> [removed stuff]> > After applying all changes the behaviour stays the same. Following is> the output of applyplugin (cleared of my debug fprintf()s):> > ------------------> # applyplugin herbie.wav> herbie_equalized.wav /usr/lib/ladspa/mbeq_119700.so MChMBEq 5 5 5 5 5 5> 5 5 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47 -47> -47 -47 -47 -47 -47 -47 -47> ladspa_descriptor: returning MChMBEqDescriptor=0804cf18> just after allocation (*plugin_data).comp_L=00000000 at line number 901> just after allocation (*plugin_data).comp_R=00000000 at line number 909> just after allocation (*plugin_data).comp_C=00000000 at line number 917> just after allocation (*plugin_data).comp_LFE=00000000 at line number> 925> just after allocation (*plugin_data).comp_LS=00000000 at line number 933> just after allocation (*plugin_data).comp_RS=00000000 at line number 941
[stuff deleted]
OK, OK, at least the segmentation fault stopped being mysterious :-) -the '00000000' means the program is trying to dereference NULL pointer,so no wonder it crashes.
Now we have to find out why this is happening.

Sebastian, your printout is from modified by you source code ofmine, and the code was intended to be modified, but let's returnto the latest unmodified version I sent you yesterday and let's firstcheck how it behaves.
First of all, I do not understand how the program at all continuesafter obtaining NULL after allocation - in my code the allocations areperformed using this macro:
    111 #define CALLOC_AND_CHECK(type, ptr, number_of_items, item_size, line_number) \\    112 if((ptr = (type)calloc(number_of_items, item_size)) == NULL) \\    113   {\\    114   fprintf(stderr, "$MBEQ::__config_hash{FileLabel}: !!! ERROR !!! could not allocate memory at line number %d of %s file\\n", line_number, __FILE__);\\    115   exit(1);\\    116   }
, i.e. in case of NULL pointer the program should have exited with an errormessage produced by line #114.

Regards,  Sergei.-- Visit my http://appsfromscratch.berlios.de/ open source project.
-------------------------------------------------------------------------Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys - and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________Alsa-user mailing listAlsa-user@xxxxxxxxxxxxxxxxxxxxxxxxxx://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux