how@IVY.UCDAVIS.EDU (W. Wilson Ho) (09/15/89)
gdb version 3.2, running under Sun 3 Unix 4.3 release 3.4 In file dbxread.c, function add_file_command() : > add_file_command (arg_string) > char* arg_string; > { > [ ...omitted... ] > > name = arg_string; > > [ ...omitted...] > > make_cleanup (free_current_contents, &name); Variable "name" was first assigned the value of the argument "arg_string" and then its value is passed to free_current_contents(), thus creating an error for passing invalid address to free(). I think either a savestring() should be called or the call to make_cleanup() should be removed. Thanks for your attention! Wilson Ho ------------------------------------------------------------------------------- W. Wilson Ho | INTERNET: how@ivy.ucdavis.edu Division of Computer Science | UUCP: ...!ucbvax!ucdavis!ivy!how EECS Department | BITNET: wwho@ucdavis.bitnet University of California | Davis, CA 95616 | Phone: (916)752-7109 -------------------------------------------------------------------------------