On Thu, 04 Jan 2007 09:43:16 +0100 Sebastian Schäfer <[EMAIL PROTECTED]> 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 of mine, and the code was intended to be modified, but let's return to the latest unmodified version I sent you yesterday and let's first check how it behaves. First of all, I do not understand how the program at all continues after obtaining NULL after allocation - in my code the allocations are performed 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 error message produced by line #114. Regards, Sergei. -- Visit my http://appsfromscratch.berlios.de/ open source project. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user