Open dxhgq-github opened 2 years ago
Please provide a proper gdb log. See Creating A Backtrace With gdb
section: https://freeswitch.org/confluence/display/FREESWITCH/Debugging
What version of the sofia-sip library are you using?
sofia-sip 1.13.7
Thread 146 (LWP 63539):
Thread 145 (LWP 45867):
Thread 144 (LWP 64468):
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 143 (LWP 45890):
Thread 142 (LWP 45893):
Thread 141 (LWP 65096):
Backtrace stopped: frame did not save the PC
Thread 140 (LWP 45895):
Thread 139 (LWP 45905):
Thread 138 (LWP 45876):
Thread 137 (LWP 45879):
Thread 136 (LWP 45880):
Thread 135 (LWP 45883):
Thread 134 (LWP 64687):
Thread 133 (LWP 45886):
Thread 132 (LWP 63929):
Thread 131 (LWP 64389):
Thread 130 (LWP 64075):
Thread 129 (LWP 64456):
Thread 128 (LWP 64839):
Backtrace stopped: frame did not save the PC
Thread 127 (LWP 64774):
Thread 126 (LWP 64469):
Thread 125 (LWP 65053):
Thread 124 (LWP 65073):
Thread 123 (LWP 65095):
Thread 122 (LWP 65104):
Backtrace stopped: frame did not save the PC
Thread 121 (LWP 45898):
Thread 120 (LWP 64225):
Thread 119 (LWP 64452):
Thread 118 (LWP 64451):
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 117 (LWP 65040):
Thread 116 (LWP 65059):
Thread 115 (LWP 45877):
Thread 114 (LWP 45882):
Thread 113 (LWP 65214):
Thread 112 (LWP 45884):
Thread 111 (LWP 45885):
Thread 110 (LWP 65071):
Thread 109 (LWP 65077):
Thread 108 (LWP 45887):
Thread 107 (LWP 45888):
Thread 106 (LWP 45889):
Thread 105 (LWP 45891):
Thread 104 (LWP 45892):
Thread 103 (LWP 45894):
Thread 102 (LWP 45896):
Thread 101 (LWP 45897):
Thread 100 (LWP 65207):
Thread 99 (LWP 65166):
Thread 98 (LWP 65060):
Backtrace stopped: frame did not save the PC
Thread 97 (LWP 45944):
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 96 (LWP 45986):
Thread 95 (LWP 61545):
Thread 94 (LWP 63430):
Thread 93 (LWP 63542):
Thread 92 (LWP 63867):
Thread 91 (LWP 64379):
Thread 90 (LWP 64450):
Thread 89 (LWP 63971):
Thread 88 (LWP 63972):
Thread 87 (LWP 64092):
Thread 86 (LWP 65167):
Backtrace stopped: frame did not save the PC
Thread 85 (LWP 65151):
Backtrace stopped: frame did not save the PC
Thread 84 (LWP 65212):
Thread 83 (LWP 64561):
Thread 82 (LWP 64700):
Thread 81 (LWP 64703):
Thread 80 (LWP 64838):
Thread 79 (LWP 64855):
Thread 78 (LWP 64856):
Backtrace stopped: frame did not save the PC
Thread 77 (LWP 64928):
Thread 76 (LWP 64945):
Thread 75 (LWP 65048):
Thread 74 (LWP 65062):
Thread 73 (LWP 65066):
Thread 72 (LWP 65072):
Thread 71 (LWP 65063):
Backtrace stopped: frame did not save the PC
Thread 70 (LWP 65213):
Thread 69 (Thread 0x7f1654c9e8c0 (LWP 45827)):
Backtrace stopped: frame did not save the PC
Thread 68 (LWP 45836):
Thread 67 (LWP 65087):
Thread 66 (LWP 65101):
Thread 65 (LWP 65103):
Thread 64 (LWP 65108):
Thread 63 (LWP 65113):
Thread 62 (LWP 65161):
Thread 61 (LWP 65208):
Backtrace stopped: frame did not save the PC
Thread 60 (LWP 65150):
Thread 59 (LWP 65160):
Thread 58 (LWP 65162):
Thread 57 (LWP 45830):
Backtrace stopped: frame did not save the PC
Thread 56 (LWP 45832):
Thread 55 (LWP 65215):
Thread 54 (LWP 65216):
Thread 53 (LWP 65217):
Thread 52 (LWP 45833):
Thread 51 (LWP 45851):
Thread 50 (LWP 45870):
Thread 49 (LWP 64464):
Thread 48 (LWP 45834):
Thread 47 (LWP 45850):
Thread 46 (LWP 64308):
Thread 45 (LWP 45852):
Thread 44 (LWP 45878):
Thread 43 (LWP 45881):
Thread 42 (LWP 45932):
Thread 41 (LWP 45933):
Thread 40 (LWP 45938):
Thread 39 (LWP 45928):
Thread 38 (LWP 45859):
Thread 37 (LWP 45863):
Thread 36 (LWP 64592):
Thread 35 (LWP 45860):
Thread 34 (LWP 64949):
Thread 33 (LWP 45856):
Thread 32 (LWP 45855):
Thread 31 (LWP 65067):
Backtrace stopped: frame did not save the PC
Thread 30 (LWP 65076):
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 29 (LWP 45837):
Thread 28 (LWP 45849):
Thread 27 (LWP 45854):
Thread 26 (LWP 45929):
Thread 25 (LWP 45865):
Thread 24 (LWP 45846):
Thread 23 (LWP 45838):
Thread 22 (LWP 45930):
Thread 21 (LWP 45840):
Thread 20 (LWP 45841):
Thread 19 (LWP 45931):
Thread 18 (LWP 45842):
Thread 17 (LWP 45927):
Thread 16 (LWP 45845):
Thread 15 (LWP 45844):
Thread 14 (LWP 45847):
Thread 13 (LWP 45873):
Thread 12 (LWP 45872):
Thread 11 (LWP 45843):
Thread 10 (LWP 65206):
Thread 9 (LWP 45831):
Thread 8 (LWP 45848):
Thread 7 (LWP 45861):
Thread 6 (LWP 45874):
Thread 5 (LWP 45862):
Thread 4 (LWP 45900):
Thread 3 (LWP 45875):
Thread 2 (LWP 45864):
Thread 1 (LWP 45853):
You need to install sofia sip debugging symbols. Also I don't think your sofia is the latest. And please attach the log, do not paste it.
Sounds like it is not a bug but some memory issues on your box. Information you provided does not show me that a crash happened. Line numbers do not match sofia-sip version you mentioned.
Ok, I will take a check at sofia-sip version , Thanks!
Hello I have downloaded and rebuilt the latest version 1.13.7 of sofia-sip , after running 4 days , the FreeSwitch still crashs. error message is : Core was generated by `/usr/local/fs1.10.7/bin/freeswitch -nonat'. Program terminated with signal SIGFPE, Arithmetic exception.
342 h = (size_t)((uintptr_t)p % b->sub_n); [Current thread is 1 (LWP 92647)] (gdb) (gdb) bt
zero=do_calloc) at su_alloc.c:530
answers=0x7f2c541167b0) at nta.c:10830
at sres.c:2991
timeout=0) at sres.c:3091
errcode=111, remote=0x7f2c7d58c560, remotelen=16,
info=0x7f2c7d58c4e0 "icmp type=3 code=3 reported by 127.0.0.1") at sres.c:3440
reg=0x7f2c540037c0) at sresolv.c:357
at su_epoll_port.c:510
at su_pthread_port.c:343
(gdb)
Please help , thanks
Please wrap backtraces into a code block when you comment.
Based on your last backtrace please print some debugging information:
frame 2
p *home
thank you for replay !
(gdb) (gdb) (gdb) frame 2
1577 data = sub_alloc(home, MEMLOCK(home), size, (enum sub_zero)1); (gdb) p *home $1 = {suh_size = 1620230464, suh_blocks = 0x7ff8613c3900, suh_lock = 0x0} (gdb)
thank you !
whether it is a IPv6 resolve problem ? but I do not configure any call flow about local resolve, and ping 127.0.0.1 is alive , and /etc/resolv.conf is empty.
last week ,i disabled the ipv6 profile ,mv internal-ipv6.xml internal-ipv6.xml.bak ,mv external-ipv6 external-ipv6.bak , but problem is still unsolved。
yesterday ,i disabled the ipv6 on box ,add tow lines : net.ipv6.conf.all.disable_ipv6 =1 net.ipv6.conf.default.disable_ipv6 =1 to /etc/sysctl.conf. by the end of this time ,i have tested for about 30 hours.
This frame 2 is not from a backtrace mentioned in this github issue. From another crash?
@dxhgq-github , https://github.com/signalwire/freeswitch/issues/1659 - you should not open the same issue in two places, sofia-sip and FS, just keep the discussion in one place.
ok , This frame 2 is from another crash, same problem ,above attachment is backtrace
Hello,
FreeSwitch crashs one or two times every 24 hours , the FS version is 1.10.7 ,the OS is centos 7 ,the only error messages in /var/log/messages is : Apr 25 12:19:43 localhost systemd: freeswitch.service: main process exited, code=killed, status=8/FPE Apr 25 12:19:43 localhost systemd: Unit freeswitch.service entered failed state. Apr 25 12:19:43 localhost systemd: freeswitch.service failed.
Backtrace:
Thanks!