[Top][All Lists]

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

segfault in ltdl:lt_dlforeachfile() on Mac OS 10

From: Daniel Reed
Subject: segfault in ltdl:lt_dlforeachfile() on Mac OS 10
Date: Thu, 3 Jul 2003 16:13:05 -0400 (EDT)

libtool 1.5

[FrankenMac:~/naim-0.11.6/libltdl] n% ../config.guess
[FrankenMac:~/naim-0.11.6/libltdl] n% cat test.c
#include <time.h>
#include <ltdl.h>

int     modlist_filehelper(const char *path, lt_ptr data) {
        printf("path=%s, data=%p\n", path, data);

int     main(void) {
        lt_dlforeachfile(NULL, modlist_filehelper, NULL);
[FrankenMac:~/naim-0.11.6/libltdl] n% gcc -g3 test.c .libs/libltdlc.a -o test
[FrankenMac:~/naim-0.11.6/libltdl] n% gdb test
(gdb) run
Starting program: /Users/n/naim-0.11.6/libltdl/test
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x9000423c in free_list_remove_ptr ()
(gdb) bt
#0  0x9000423c in free_list_remove_ptr ()
#1  0x90003f74 in szone_free ()
#2  0x9000e428 in szone_realloc ()
#3  0x9000de70 in malloc_zone_realloc ()
#4  0x9000dde8 in realloc ()
#5  0x00002300 in rpl_argz_insert (pargz=0xbffffc00, pargz_len=0xbffffc04, 
before=0x1650f "ibDHCPServer", entry=0x164a0 "/usr/lib/libform") at ltdl.c:692
#6  0x000055d8 in lt_argz_insert (pargz=0x15010, pargz_len=0xfffb4220, 
before=0x622f "\2348\017`H", entry=0x5f74 "8\036") at ltdl.c:3524
#7  0x0000594c in lt_argz_insertdir (pargz=0xbffffc00, pargz_len=0xbffffc04, 
dirnam=0x15430 "/usr/lib", dp=0x10) at ltdl.c:3623
#8  0x00005aa0 in list_files_by_dir (dirnam=0x15430 "/usr/lib", 
pargz=0xbffffc00, pargz_len=0xbffffc04) at ltdl.c:3652
#9  0x00005b18 in foreachfile_callback (dirname=0x15010 "", data1=0x1de4, 
data2=0x0) at ltdl.c:3682
#10 0x000042bc in foreach_dirinpath (search_path=0x8 <Address 0x8 out of 
bounds>, base_name=0x0, func=0x5ae0 <foreachfile_callback>, data1=0x1de4, 
data2=0x0) at ltdl.c:2690
#11 0x00005bf4 in lt_dlforeachfile (search_path=0x15010 "", func=0x1de4 
<modlist_filehelper>, data=0x0) at ltdl.c:3725
#12 0x00001e74 in main () at test.c:11

The same .c without the lt_dlsetsearchpath() works, but does not find any

Daniel Reed <address@hidden>    http://shell.n.ml.org/n/
I'd say some people have no lives, but I'm the one who's going to wallpaper his 
room in naim source in a few days. -- FalseName, EFnet #naim

reply via email to

[Prev in Thread] Current Thread [Next in Thread]