[Users] Stability, and -DF_MALLOC

Kanakatti Mahesh Subramanya mahesh at aptela.com
Fri Aug 5 04:52:34 CEST 2005


Briefly (oh so briefly) put the version with -DF_MALLOC online, and, as 
expected, had a couple of crashes.
There was really not much information in the debug logs.
The core dumps said the following

Dump 1
#0  0xb7f083f0 in strnlen () from /lib/libc.so.6
#1  0xb7eda8e2 in vfprintf () from /lib/libc.so.6
#2  0xb7f67fa1 in vsyslog () from /lib/libc.so.6
#3  0xb7f67e0f in syslog () from /lib/libc.so.6
#4  0xb7d5da49 in wt_timer (_r=0xafe4edd0) at urecord.c:267
#5  0xb7d57548 in timer_udomain (_d=0xafe407e8) at udomain.c:424
#6  0xb7d52f52 in synchronize_all_udomains () at dlist.c:325
#7  0xb7d5ac39 in destroy () at ul_mod.c:245
#8  0x0807286e in destroy_modules () at sr_module.c:355
#9  0x0805a6dd in cleanup (show_status=1) at main.c:351
#10 0x0805b125 in handle_sigs () at main.c:510
#11 0x0805ba6a in main_loop () at main.c:1163
#12 0x0805c916 in main (argc=8, argv=0x0) at main.c:1564

Dump 2

#0  0xb7d5d8d8 in wt_timer (_r=0xb03c3168) at urecord.c:247
247                     if (!VALID_CONTACT(ptr, act_time)) {
(gdb) bt
#0  0xb7d5d8d8 in wt_timer (_r=0xb03c3168) at urecord.c:247
#1  0xb7d57548 in timer_udomain (_d=0xafe63518) at udomain.c:424
#2  0xb7d52f52 in synchronize_all_udomains () at dlist.c:325
#3  0xb7d5ac39 in destroy () at ul_mod.c:245
#4  0x0807286e in destroy_modules () at sr_module.c:355
#5  0x0805a6dd in cleanup (show_status=1) at main.c:351
#6  0x0805b125 in handle_sigs () at main.c:510
#7  0x0805ba6a in main_loop () at main.c:1163
#8  0x0805c916 in main (argc=8, argv=0x0) at main.c:1564
(gdb) print ptr
$1 = (ucontact_t *) 0xc
(gdb) print act_time
$2 = 1123163783

Anything obvious leaps out at you???


Cheers, and thanx...

Kanakatti Mahesh Subramanya wrote:

> Yeah, recompiled, etc., etc.
> I was actually hoping for somebody to say "Oh Yeah, if you are using 
> tm, be sure to .... if you have -DF_MALLOC"
> Unfortunately, the problem only occurs at *high* loads, and I cant 
> replicate this on a test system.
> Soooo, for now, I'm probably just going to leave -DBG_QM_MALLOC in 
> place, and hope that the "a miracle occurs" approach to solving 
> problems pans out :-)
>
>
> Thanx anyway....
>
> Bogdan-Andrei Iancu wrote:
>
>> Hi Kanakatti,
>>
>> please first be sure you recompiled all the used modules and the core 
>> with same configuration. Updating from CVS will be also a way to go. 
>> If the problem still persist, try to provide more info - switch to 
>> strerr and increase the logging level (openser logs are good info 
>> source); also, if the case, the core file will be good.
>> More info about "crash" is good to trace it down.
>>
>> regards,
>> Bogdan
>>
>> Kanakatti M. Subramanya wrote:
>>
>>> I'm running 0.9.5, on my system, and *have* to comment out 
>>> -DF_MALLOC (and uncomment -DDBG_QM_MALLOC) to have the system be 
>>> stable.  It pretty much always crashes when trying to do 
>>> save("location")
>>>
>>> Anyone else seen this?
>>>
>>> List of modules is
>>>
>>> loadmodule "/usr/local/lib/openser/modules/mysql.so"
>>> loadmodule "/usr/local/lib/openser/modules/sl.so"
>>> loadmodule "/usr/local/lib/openser/modules/tm.so"
>>> loadmodule "/usr/local/lib/openser/modules/rr.so"
>>> loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
>>> loadmodule "/usr/local/lib/openser/modules/usrloc.so"
>>> loadmodule "/usr/local/lib/openser/modules/registrar.so"
>>> loadmodule "/usr/local/lib/openser/modules/auth.so"
>>> loadmodule "/usr/local/lib/openser/modules/auth_db.so"
>>> loadmodule "/usr/local/lib/openser/modules/acc.so"
>>> loadmodule "/usr/local/lib/openser/modules/exec.so"
>>> loadmodule "/usr/local/lib/openser/modules/group.so"
>>> loadmodule "/usr/local/lib/openser/modules/nathelper.so"
>>> loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"
>>> loadmodule "/usr/local/lib/openser/modules/textops.so"
>>> loadmodule "/usr/local/lib/openser/modules/uri_db.so"
>>> loadmodule "/usr/local/lib/openser/modules/uri.so"
>>> loadmodule "/usr/local/lib/openser/modules/domain.so"
>>> loadmodule "/usr/local/lib/openser/modules/xlog.so"
>>> loadmodule "/usr/local/lib/openser/modules/options.so"
>>> loadmodule "/usr/local/lib/openser/modules/avpops.so"
>>> loadmodule "/usr/local/lib/openser/modules/lcr.so"
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>  
>>>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mahesh.vcf
Type: text/x-vcard
Size: 332 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050804/659ff772/attachment.vcf>


More information about the sr-users mailing list