[sr-dev] mysql_ping in db_mysql_submit_query

Juha Heinanen jh at tutpro.com
Fri Sep 13 13:17:36 CEST 2019


Juha Heinanen writes:

> And finally the last should_acc_reply() before the freeze that does not
> result to any kind db_cluster entry in syslog:
> 
> Sep  2 12:00:21 rox2 /usr/bin/sip-proxy[341]: DEBUG: acc [acc_logic.c:413]: should_acc_reply(): probing acc state - code: 480 flags: 0x240005c4
> Sep  2 12:00:21 rox2 /usr/bin/sip-proxy[341]: DEBUG: acc [acc_logic.c:430]: should_acc_reply(): failed acc is on
> Sep  2 12:00:21 rox2 /usr/bin/sip-proxy[341]: DEBUG: tm [t_lookup.c:1111]: t_check_msg(): msg (0x7f2383bea9e0) id=12872/341 global id=12872/341 T end=0x7f236b1cc3f0
> Sep  2 12:00:21 rox2 /usr/bin/sip-proxy[341]: DEBUG: tm [t_reply.c:2243]: reply_received(): transaction found - T:0x7f236b1cc3f0 branch:0

I guess because process 341 is waiting for a lock (below).  Before this
acc attempt I have not found any failing ones. They have all ended up in
cleaning of memory, cleanup_uac_timers(), and reply-route executed.

-- Juha


---start 341 -----------------------------------------------------
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
38	../sysdeps/unix/sysv/linux/x86_64/syscall.S: No such file or directory.
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
No locals.
#1  0x00007f2380e7f05d in futex_get (lock=0x7f236b1cc5c0) at ../../core/parser/../mem/../futexlock.h:108
        v = 2
        i = 1024
#2  0x00007f2380e80f10 in _lock (s=0x7f236b1cc5c0) at lock.h:80
No locals.
#3  0x00007f2380ea04e8 in tm_reply_mutex_lock (t=0x7f236b1cc3f0) at t_reply.c:2928
        mypid = 341
#4  0x00007f2380e9ab51 in reply_received (p_msg=0x7f2383bea9e0) at t_reply.c:2248
        msg_status = 2011789584
        last_uac_status = 271554156
        ack = 0x1ffb <error: Cannot access memory at address 0x1ffb>
        ack_len = 2011789776
        branch = 0
        reply_status = 32765
        onreply_route = 271554156
        cancel_data = {cancel_bitmap = 2213206539, reason = {cause = 24, u = {text = {s = 0x7ffd77e97a90 "\227\224D\017AV", len = 271554144}, e2e_cancel = 0x7ffd77e97a90, packed_hdrs = {s = 0x7ffd77e97a90 "\227\224D\017AV", len = 271554144}}}}
        uac = 0x31343341101bac10
...



More information about the sr-dev mailing list