"Alberto Simões" <[EMAIL PROTECTED]> wrote:
#7 0x000400b8 in scan_paths (filename=0xfcc888 "/Users/ambs/tmp/parrot/runtime/parrot/dynext/libnci_test.bundle", libpath=0xbffff8a8 ":") at config/gen/platform/darwin/dl.c:35
That gives it away. :-)
-- path_list = strdup(libpath);path = strsep(&path_list, ":"); <-- NOTE: strsep modifies path_list pointer!
while(path) { snprintf(buf, PATH_MAX, "%s/%s", path, filename); if(stat(buf, &st) == 0) {free(path_list); <--Blows up here, as not pointing at start of block now
return buf; } path = strsep(&path_list, ":"); } free(path_list); -- Try the attached patch (I can't test it, so don't want to apply it).Jonathan
darwindl.diff
Description: Binary data