Hi Jan,

    Thank you for your reply and sorry for coming back so late on the subject. Below is some output from SER and the backtrace that I obtained with gdb.

Quang

-----Message d'origine-----
De : Jan Janak [mailto:jan@iptel.org]
Envoyé : jeudi 27 janvier 2005 18:47
À : PHAN, Quang-Minh (Docteur Ordinateur)
Cc : 'serusers@lists.iptel.org'
Objet : Re: [Serusers] SER crash !!! ( Problem with q_malloc ???? )

Unfortunately the coredump itself is not enough, could you make a
backtrace in gdb so that we can see where exactly does it crash ?

  Jan.

On 20-01 11:50, PHAN, Quang-Minh (Docteur Ordinateur) wrote:
> Hi all,
>
>      I'm running SER 0.9 on an FEDORA CORE 3 machine and it crashes every
> time I try to use mysql module. I have compile SER in mode debug and spent
> some time trying to figure it out. I first found a bug in the q_find_free
> function in q_malloc.c:290:  "if (f->size == size)" which cause memory
> access violation when f is NULL. I fixed this but it didn't solve the
> problem.
>
>      I attached here the coredump and the ser.cfg file. The version of MySQL
> Server and libraries is 4.1
>
> Any helps will be highly appreciated,
>
> Quang
>

[ser@localhost sbin]$ ./ser -f ser.cfg
              127.0.0.1 [127.0.0.1]:5060
 0(9063) WARNING: fix_socket_list: could not rev.
resolve 192.168.4.24
              192.168.4.24 [192.168.4.24]:5060
              127.0.0.1 [127.0.0.1]:5060
 0(9063) WARNING: fix_socket_list: could not rev.
resolve 192.168.4.24
              192.168.4.24 [192.168.4.24]:5060 Listening on
             udp: 127.0.0.1 [127.0.0.1]:5060
             udp: 192.168.4.24 [192.168.4.24]:5060
             tcp: 127.0.0.1 [127.0.0.1]:5060
             tcp: 192.168.4.24 [192.168.4.24]:5060
Aliases:
             tcp: localhost:5060
             tcp: localhost.localdomain:5060
             udp: localhost:5060
             udp: localhost.localdomain:5060

WARNING: no fork mode  and more than one listen address found(will use only the the first one) stateless - initializing
 0(0) Maxfwd module- initializing
Erreur de segmentation (core dumped)
[ser@localhost sbin]$ ls
core.9063  gen_ha1  ser  ser.cfg  serctl  ser_mysql.sh  serunix [ser@localhost sbin]$ gdb ser core.9063
GNU gdb Red Hat Linux (6.1post-1.20040607.41rh) 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-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `./ser -f ser.cfg'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/mysql.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/mysql.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/sl.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/sl.so
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/tm.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/tm.so
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/rr.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/rr.so
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/maxfwd.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/maxfwd.so
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/usrloc.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/usrloc.so
Reading symbols from
/home/ser/compiled/sip_router/lib/ser/modules/registrar.so...done.
Loaded symbols for
/home/ser/compiled/sip_router/lib/ser/modules/registrar.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
#0  0x002f3da3 in strlen () from /lib/tls/libc.so.6
(gdb) bt
#0  0x002f3da3 in strlen () from /lib/tls/libc.so.6
#1  0xf6eecb57 in new_my_id (url=0x8d6dbc0
"mysql://root@192.168.4.24/ser") at my_id.c:80
#2  0xf6eed299 in get_connection (url=0x8d6dbc0
"mysql://root@192.168.4.24/ser") at my_pool.c:69
#3  0xf6eeb3c2 in db_init (_url=0x8d6dbc0
"mysql://root@192.168.4.24/ser") at dbase.c:260
#4  0xf6e77a4d in register_udomain (_n=0x8136df0 "location", _d=0xfef72ce0) at dlist.c:233
#5  0xf6e6f6ce in domain_fixup (param=0x8136eb4,
param_no=1) at reg_mod.c:207
#6  0x0806cac0 in fix_actions (a=0x8136ea0) at
route.c:238
#7  0x0806c9cc in fix_actions (a=0x8136f40) at
route.c:225
#8  0x0806c9cc in fix_actions (a=0x8136240) at
route.c:225
#9  0x0806ef97 in fix_rls () at route.c:721 #10 0x0805cdb6 in main (argc=3, argv=0xfef72f84) at
main.c:1558





> _______________________________________________
> Serusers mailing list
> serusers@lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers