[15:20] <wrowe> there's a move afoot to change dsosym get into fn get and data get
[15:20] <wrowe> wonder if that's what you've run into
[15:21] <_Vile> dunno, i was told that nothing changed from 1.2.6 to 1.2.7
[15:21] <_Vile> nothing in my area
[15:21] <wrowe> not apr
[15:21] <wrowe> bsd6
[15:21] <_Vile> ahh
[15:21] <wrowe> just a thought
> >
I cannot compile freeswitch on freebsd 6.1-anything but can on 6.0 -- i have backtraces leading to map_object, but i think the inherent problem is in
load_object, can someone please easily give me a diff between 6.1 stable and 6.0 stable so i can track down this problem (something to do w/ fs, apr and
fbsd)?
<<
I was told to e-mail you.
6.0 works fine...
6.1 coredumps every time, I think it may be an APR Problem?
I have tested this on 6.1 release, stable, and stable w/ cvsup
notice:
path=0x282ed014 <Address 0x282ed014 out of bounds>
clear_addr = 0x282ed014 <Address 0x282ed014 out of bounds>
[root@odin]>> uname -a
FreeBSD odin.xx.net 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Aug 6 05:00:01 PDT 2006 mattk@odin.xx.net:/usr/obj/usr/src/sys/GENERIC i386
bt:
[root@odin]>> gdb freeswitch freeswitch.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `freeswitch'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.
Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1
Reading symbols from /usr/local/freeswitch/lib/libaprutil-1.so.2...done.
Loaded symbols for /usr/local/freeswitch/lib/libaprutil-1.so.2
Reading symbols from /usr/local/freeswitch/lib/libapr-1.so.2...done.
Loaded symbols for /usr/local/freeswitch/lib/libapr-1.so.2
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/freeswitch/lib/libteletone.so.0...done.
Loaded symbols for /usr/local/freeswitch/lib/libteletone.so.0
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/freeswitch/lib/libsqlite3.so.8...done.
Loaded symbols for /usr/local/freeswitch/lib/libsqlite3.so.8
Reading symbols from /usr/lib/libpthread.so.2...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /usr/local/freeswitch/lib/libspeakup.so.0...done.
Loaded symbols for /usr/local/freeswitch/lib/libspeakup.so.0
Reading symbols from /usr/local/freeswitch/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/freeswitch/lib/libpcre.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/libapr-1.so.2...done.
Loaded symbols for /usr/local/lib/libapr-1.so.2
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x2805ddbb in memset () from /libexec/ld-elf.so.1
[New Thread 0x8054c00 (sleeping)]
[New Thread 0x8054a00 (sleeping)]
[New Thread 0x8054800 (sleeping)]
[New Thread 0x8054600 (LWP 100058)]
[New Thread 0x8054000 (LWP 100070)]
(gdb) bt
#0 0x2805ddbb in memset () from /libexec/ld-elf.so.1
#1 0x280782c0 in ?? ()
#2 0x280533f5 in map_object (fd=6, path=0x282ed014 <Address 0x282ed014 out of bounds>, sb=0xbfbfe690) at /usr/src/libexec/rtld-elf/map_object.c:195
#3 0x280502eb in load_object (path=0x280782c0 "/usr/local/freeswitch/mod/mod_console.so") at /usr/src/libexec/rtld-elf/rtld.c:1277
#4 0x2805220d in dlopen (name=0x8208470 "/usr/local/freeswitch/mod/mod_console.so", mode=258) at /usr/src/libexec/rtld-elf/rtld.c:1714
#5 0x280d90e2 in apr_dso_load (res_handle=0x0, path=0x8208470 "/usr/local/freeswitch/mod/mod_console.so", pool=0x8208018) at dso/unix/dso.c:139
#6 0x28094e6e in switch_loadable_module_load_module (dir=0x280afa44 "/usr/local/freeswitch/mod", fname=0x282de1e6 "mod_console")
at src/switch_loadable_module.c:250
#7 0x2809543e in switch_loadable_module_init () at src/switch_loadable_module.c:487
#8 0x08049070 in main (argc=1, argv=0x0) at src/switch.c:170
(gdb) bt full
#0 0x2805ddbb in memset () from /libexec/ld-elf.so.1
No symbol table info available.
#1 0x280782c0 in ?? ()
No symbol table info available.
#2 0x280533f5 in map_object (fd=6, path=0x282ed014 <Address 0x282ed014 out of bounds>, sb=0xbfbfe690) at /usr/src/libexec/rtld-elf/map_object.c:195
obj = (Obj_Entry *) 0x3fb
i = 0
phdr = (Elf_Phdr *) 0x3fb
phlimit = (Elf_Phdr *) 0xfec
nsegs = 1
phdyn = (Elf_Phdr *) 0x2806e5d4
phphdr = (Elf_Phdr *) 0x0
phinterp = (Elf_Phdr *) 0x0
phtls = (Elf_Phdr *) 0x0
mapbase = 0x282ec000 <Address 0x282ec000 out of bounds>
mapsize = 12288
base_offset = 0
base_vaddr = 0
base_addr = 0xfec <Address 0xfec out of bounds>
data_offset = 0
data_vaddr = 0
data_vlimit = 8192
data_addr = 0x282ec000 <Address 0x282ec000 out of bounds>
data_prot = 5
data_flags = 1019
clear_vaddr = 0
clear_addr = 0x282ed014 <Address 0x282ed014 out of bounds>
clear_page = 0x282ed000 <Address 0x282ed000 out of bounds>
nclear = 4076
bss_vlimit = 0
bss_addr = 0x0
#3 0x280502eb in load_object (path=0x280782c0 "/usr/local/freeswitch/mod/mod_console.so") at /usr/src/libexec/rtld-elf/rtld.c:1277
obj = (Obj_Entry *) 0x0
fd = 6
sb = {st_dev = 83, st_ino = 2520096, st_mode = 33261, st_nlink = 1, st_uid = 0, st_gid = 0, st_rdev = 10070496, st_atimespec = {tv_sec =
1154896447,
tv_nsec = 0}, st_mtimespec = {tv_sec = 1154891850, tv_nsec = 0}, st_ctimespec = {tv_sec = 1154891850, tv_nsec = 0}, st_size = 23844, st_blocks = 48,
st_blksize = 4096, st_flags = 0, st_gen = 1378782720, st_lspare = 0, st_birthtimespec = {tv_sec = 1154891850, tv_nsec = 0}}
fs = {f_version = 134561792, f_type = 135019316, f_flags = 2889768022757598456, f_bsize = 135481088, f_iosize = 2886204827694523624,
f_blocks = 585520728790113701, f_bfree = 2889729575288307776, f_bavail = 581886842859324596, f_files = 2889477176162247976, f_ffree =
578061641368056152,
f_syncwrites = 2886421896419606544, f_asyncwrites = 578063084477067288, f_syncreads = 2886215616652371240, f_asyncreads = 68854067224, f_spare = {
2886215312787636226, 842178924, 2886373847542523224, 11806958882, 2886218264102159212, 3851070695953334, 3435973837, 581888375625304102,
2886064798875773192, 16101926456}, f_namemax = 3217024572, f_owner = 169, f_fsid = {val = {-1077942992, 0}},
f_charspare = "\000\000\000\0002\n(\000(\n(-\006\005(\f(\022,(\005\005(\200M*(\223\002\000\000\020\001\030\006(b\a($,\036(l\a\005(\f(f\006\000]\a(",
f_fstypename = "-\006\005(\f(\030\004(\000\000\000\001",
f_mntfromname =
"\005\005(0b\a\001\001\000\000\f\001\030\006(\000\000\000\000$,\036(\t\005(\f(f\006\006(\001\000\000\000\000\000\000\001\000P\a(\000Q\a(\000R\a(\000S\a(\0
00T\a(\000U\a(\000V\a(\000W\a(",
f_mntonname =
"\000X\a(\000Y\a(\000Z\a(\000[\a(\000\\\a(\000]\a(\000R\a(\000S\a(\000\000\000\000\000\000\000\000\a\005(\2368\005(\006(\200\006(\b\002\001f\006\f(\000\\\
a(\030\006()\000\000\000\202\a("}
#4 0x2805220d in dlopen (name=0x8208470 "/usr/local/freeswitch/mod/mod_console.so", mode=258) at /usr/src/libexec/rtld-elf/rtld.c:1714
path = 0x0
old_obj_tail = (Obj_Entry **) 0x28075d08
obj = (Obj_Entry *) 0x0
initlist = {stqh_first = 0x0, stqh_last = 0xbfbfe720}
result = 0
lockstate = 1
#5 0x280d90e2 in apr_dso_load (res_handle=0x0, path=0x8208470 "/usr/local/freeswitch/mod/mod_console.so", pool=0x8208018) at dso/unix/dso.c:139
os_handle = (void *) 0x3
#6 0x28094e6e in switch_loadable_module_load_module (dir=0x280afa44 "/usr/local/freeswitch/mod", fname=0x282de1e6 "mod_console")
at src/switch_loadable_module.c:250
len = 44
path = 0x8208470 "/usr/local/freeswitch/mod/mod_console.so"
file = 0x8208460 "mod_console"
new_module = (switch_loadable_module_t *) 0x0
ext = 0x0
#7 0x2809543e in switch_loadable_module_init () at src/switch_loadable_module.c:487
val = 0x282de1e6 "mod_console"
mods = 0x0
ld = 0x805d240
finfo = {pool = 0x0, valid = 0, protection = 0, filetype = APR_NOFILE, user = 0, group = 0, inode = 0, device = 0, nlink = 0, size = 0, csize = 0,
atime = 0, mtime = 0, ctime = 0, fname = 0x0, name = 0x0, filehand = 0x0}
module_dir_handle = (apr_dir_t *) 0x0
cf = 0x805d240 "-( \004\b\n\v(\022"
pcf = 0x280b0a2c "post_load_modules.conf"
cfg = 0x805d1c0
xml = 0x804e100
count = 0
ext = 0x280b09f4 ".so"
EXT = 0x280b0a43 ".SO"
__FUNCTION__ = "switch_loadable_module_init"
#8 0x08049070 in main (argc=1, argv=0x0) at src/switch.c:170
pfile = 0x8049456 "freeswitch.pid"
path = "/usr/local/freeswitch/log/freeswitch.pid", '\0' <repeats 215 times>
ppath = 0x0
err = 0x0
event = (switch_event_t *) 0x1
bg = 0
f = (FILE *) 0x8049449
pid = 0
__FUNCTION__ = "main"
thoughts? thx