[Serdev] Core dump with bsd if location table not empty

Barry Murphy barry at unix.co.nz
Tue Mar 15 21:15:56 UTC 2005


Ok so i did a cvs and recompiled, however I now get the following error:

root at max:/usr/home/icepick/ser/sip_router/modules/mysql# ser -Ed
 0(27018) ERROR: load_module: could not open module
</usr/local/lib/ser/modules/mysql.so>: /usr/local/lib/ser/modules/mysql.so:
Undefined symbol "fm_malloc"
 0(27018) parse error (27,13-14): failed to load module
ERROR: bad config file (1 errors)

When I ls -al the  /usr/local/lib/ser/modules/ folder I see mysql.so isn't
new but the others are:
-rwxr-xr-x  1 root  827  127933 Mar 16 10:11 msilo.so
-rwxr-xr-x  1 827   827   94218 Jul 27  2004 mysql.so
-rwxr-xr-x  1 root  827  156706 Mar 16 10:11 nathelper.so

Any ideas?
Barry

----- Original Message -----
From: "Maxim Sobolev" <sobomax at portaone.com>
To: "Barry Murphy" <barry at unix.co.nz>
Cc: <serdev at lists.iptel.org>
Sent: Tuesday, March 15, 2005 9:58 PM
Subject: Re: [Serdev] Core dump with bsd if location table not empty


> This is already fixed in 0.9.0. Just in the case I've backported the fix
> into the FreeBSD port so that you should be able to cvsup and reinstall
> to get a rid of this problem.
>
> Thanks for reporting1
>
> -Maxim
>
> Barry Murphy wrote:
> > Hi,
> >
> > Running FBSD 4.10, ser starts as it should (showing from debug on)
> >
> >  0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
> >  0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
> >  0(0) fixing /usr/local/lib/ser/modules/sl.so sl_send_reply
> >  0(0) fixing /usr/local/lib/ser/modules/group.so is_user_in
> >  0(0) fixing /usr/local/lib/ser/modules/rr.so record_route
> >  0(0) fixing /usr/local/lib/ser/modules/rr.so loose_route
> >  0(0) fixing /usr/local/lib/ser/modules/tm.so t_relay
> >  0(0) fixing /usr/local/lib/ser/modules/auth_db.so www_authorize
> >  0(0) fixing /usr/local/lib/ser/modules/auth.so www_challenge
> >  0(0) fixing /usr/local/lib/ser/modules/registrar.so save
> >  0(0) query="select
> > username,contact,expires,q,callid,cseq,replicate,state,flags,user_agent
from
> > location "
> >
> > However unless I login to the database and actualy empty (1-5 records)
the
> > location table, it wont start, it core dumps:
> > Mar 15 21:26:04 max /kernel: pid 20999 (ser), uid 0: exited on signal 11
> > (core dumped)
> > Mar 15 21:26:04 max /kernel: Mar 15 21:26:04 max /kernel: pid 20999
(ser),
> > uid 0: exited on signal 11 (core dumped)
> >
> >
> > root at max:/usr/local/etc/ser# gdb ser /tmp/ser.core
> > GNU gdb 4.18 (FreeBSD)
> > Copyright 1998 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-unknown-freebsd"...Deprecated bfd_read
> > called at
> > /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line
> > 2627 in elfstab_build_psymtabs
> > Deprecated bfd_read called at
> > /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line
> > 933 in fill_symbuf
> >
> > Core was generated by `ser'.
> > Program terminated with signal 11, Segmentation fault.
> > Reading symbols from /usr/lib/libc.so.4...done.
> > Reading symbols from /usr/local/lib/ser/modules/mysql.so...done.
> > Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.10...done.
> > Reading symbols from /usr/lib/libz.so.2...done.
> > Reading symbols from /usr/lib/libcrypt.so.2...done.
> > Reading symbols from /usr/lib/libm.so.2...done.
> > Reading symbols from /usr/local/lib/ser/modules/sl.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/tm.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/rr.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/maxfwd.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/usrloc.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/registrar.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/acc.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/group.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/auth.so...done.
> > Reading symbols from /usr/local/lib/ser/modules/auth_db.so...done.
> > Reading symbols from /usr/libexec/ld-elf.so.1...done.
> > #0  0x2a247da4 in preload_udomain (_d=0x282f6f28) at udomain.c:291
> > 291                     ua.len      = strlen(ua.s);
> > (gdb) backtrace
> > #0  0x2a247da4 in preload_udomain (_d=0x282f6f28) at udomain.c:291
> > #1  0x2a244809 in register_udomain (_n=0x80dade0 "ocation",
_d=0xbfbff88c)
> > at dlist.c:219
> > #2  0x2a256374 in domain_fixup (param=0x80dae0c, param_no=1) at
> > reg_mod.c:171
> > #3  0x8070273 in fix_actions (a=0x80dada8) at route.c:231
> > #4  0x80701af in fix_actions (a=0x80dae48) at route.c:218
> > #5  0x80701af in fix_actions (a=0x80da640) at route.c:218
> > #6  0x80748d0 in fix_rls () at route.c:651
> > #7  0x805bdac in main (argc=3, argv=0xbfbffb68) at main.c:1776
> > (gdb) print ua
> > $1 = {s = 0x0, len = 672125302}
> >
> >
> >
> > _______________________________________________
> > Serdev mailing list
> > serdev at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serdev
> >
> >
> >
>
>




More information about the Serdev mailing list