{"id":233824,"date":"2020-12-29T17:17:17","date_gmt":"2020-12-29T09:17:17","guid":{"rendered":"http:\/\/4563.org\/?p=233824"},"modified":"2020-12-29T17:17:17","modified_gmt":"2020-12-29T09:17:17","slug":"%e9%95%bf%e6%9c%9f%e8%bf%90%e8%a1%8c%e7%9a%84-c-%e7%a8%8b%e5%ba%8f%e9%81%87%e5%88%b0-sigsegv-%e9%94%99%e8%af%af%ef%bc%8c%e5%a6%82%e4%bd%95%e5%ae%9a%e4%bd%8d%e9%94%99%e8%af%af%e5%8f%91%e7%94%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=233824","title":{"rendered":"\u957f\u671f\u8fd0\u884c\u7684 C \u7a0b\u5e8f\u9047\u5230 SIGSEGV \u9519\u8bef\uff0c\u5982\u4f55\u5b9a\u4f4d\u9519\u8bef\u53d1\u751f\u7684\u4f4d\u7f6e\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u957f\u671f\u8fd0\u884c\u7684 C \u7a0b\u5e8f\u9047\u5230 SIGSEGV \u9519\u8bef\uff0c\u5982\u4f55\u5b9a\u4f4d\u9519\u8bef\u53d1\u751f\u7684\u4f4d\u7f6e\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5199\u4e86\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u957f\u671f\u8fd0\u884c\u65f6\u4f1a\u9047\u5230 SIGSEGV \u9519\u8bef\uff0c\u4f46\u662f\u4e0d\u77e5\u9053\u600e\u4e48\u5b9a\u4f4d\u9519\u8bef\u4f4d\u7f6e<br \/>\u73b0\u5728\u662f\u8d77\u4e86\u4e00\u4e2a\u7236\u8fdb\u7a0b\u89c2\u5bdf\u5230\u5b50\u8fdb\u7a0b\u6302\u6389\u5c31\u91cd\u542f\uff0c\u786c\u6297\u3002<br \/>\u77ed\u65f6\u8fd0\u884c\u4e0d\u62a5\u9519\uff0c\u6240\u4ee5\u6ca1\u6cd5\u5728\u5f00\u53d1\u673a\u4e0a\u7528 gdb \u8ddf\u8e2a\uff0c\u7f16\u8bd1\u51fa\u6765\u7684\u7a0b\u5e8f\u5728\u8def\u7531\u5668\u4e0a\u8dd1\uff0c\u540c\u6837\u6ca1\u6cd5\u8ffd\u8e2a\u3002<br \/>\u6709\u6ca1\u6709\u529e\u6cd5\u505a\u5230\u7a0b\u5e8f\u672c\u8eab\u8f93\u51fa\u7c7b\u4f3c Python \u7684 ErrorTrace \u5462\uff1f<br \/>\u4ee3\u7801\u5728 https:\/\/github.com\/Zxilly\/UA2F\/blob\/master\/src\/ua2f.c      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4742925\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AlohaV2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f00\u542f coredump\uff0c\u8fd8\u539f\u73b0\u573a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742926\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lzr325 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             coredump,backtrace                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742927\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @AlohaV2 <br \/>@lzr325 \u5b66\u5230\u4e86\uff0c\u8c22\u8c22\u4e8c\u4f4d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742928\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman #3 openwrt \u4e0a\u88c5\u4e2a gdb\uff0c\u54c8\u54c8 \u4e0d\u8fc7\u6211\u8def\u7531\u5668\u662f x86 \u5185\u5b58 CPU \u90fd\u5f88\u5927\uff0c\u4f60\u5982\u679c\u662f mips \u5c31\u96be\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742929\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman #3 \u7528 VPN \u5427 \u8fd9\u4e48\u73a9 \u592a\u6298\u817e\u4eba\u4e86\uff0c\u800c\u4e14\u5185\u6838\u6001\u5207\u6362\u5230\u7528\u6237\u6001 \u5f00\u9500\u5f88\u5927\uff0c\u641e\u4e86\u534a\u5929\u53ef\u80fd\u8fd8\u662f VPN \u597d\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742930\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53e6\u5916\u4e3a\u5565\u4e0d\u76f4\u63a5\u5f04\u6210 iptables \u7684\u5185\u6838\u6a21\u5757\uff0c\u4e0d\u8fc7\u53ef\u80fd debug \u96be\u5ea6\u6bd4\u5e94\u7528\u6001\u96be\u5ea6\u8981\u5927\uff0c\u5e94\u7528\u6001\u8fd8\u80fd coredump                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742931\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ed9\u4f60 star \u4e86 \u53c8\u4e86\u89e3\u4e86\u4e00\u4e2a\u5e93 libnetfilter_queue \u53ef\u4ee5\u5728\u5e94\u7528\u6001 \u5b9a\u5236\u89c4\u5219\u8fc7\u6ee4\u653e\u884c packet                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742932\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zeroxia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u5b9e\u5728\u6293\u4e0d\u5230 coredump \u3002\u90a3\u4e48\u5c31\u62fc\u547d\u52a0 log \u5427\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742933\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hconk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             breakpad                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742934\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 \u5185\u6838\u6a21\u5757\u5d29\u4e86\u6574\u4e2a\u7cfb\u7edf\u5c31 boom \u4e86\uff0c\u8fd9\u6837\u6bd4\u8f83\u5b89\u5168<br \/>\u6d41\u91cf\u4e0d\u5927\uff0c\u53ea\u9700\u8981\u6e05\u6d17\u51fa\u65b9\u5411\u6d41\u91cf\uff0c\u8fd9\u4e2a\u6027\u80fd\u591f\u7528\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742935\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &gt; \u7236\u8fdb\u7a0b\u89c2\u5bdf\u5230\u5b50\u8fdb\u7a0b\u6302\u6389\u5c31\u91cd\u542f<br \/>\u5982\u679c\u4f60\u7528\u7684\u662f systemd \u7684\u8bdd\u5c31\u81ea\u52a8 coredump \u4e86\uff08                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742936\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bfdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 #4 mips \u7528 GDB \u5b8c\u5168\u6ca1\u95ee\u9898\uff0c\u4e3a\u7ecf\u5e38\u8fd9\u4e48\u5e72\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742937\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman <br \/>\u76ee\u524d\u770b\u6709\u51e0\u4e2a\u95ee\u9898, pktb \u5206\u914d\u540e\u6709\u597d\u51e0\u4e2a\u5730\u65b9\u90fd\u76f4\u63a5 return \u6389\u4e86, \u6ca1\u6709\u91ca\u653e, \u4f1a\u5bfc\u81f4\u5185\u5b58\u6cc4\u6f0f, \u8fd9\u6837\u5c31\u4f1a\u5bfc\u81f4 str = malloc() \u5206\u914d\u5931\u8d25, \u800c str \u6ca1\u6709\u5224\u65ad\u662f\u5426\u5206\u914d\u6210\u529f. \u53e6\u5916\u4f60\u53ef\u4ee5\u7f16\u8bd1\u7684\u65f6\u5019\u52a0\u4e0a-g \u6807\u5fd7,\u6211\u770b\u4f60\u6bb5\u9519\u8bef\u7684\u5730\u5740\u662f\u6253\u5370\u51fa\u6765\u7684, \u53ef\u4ee5\u7528 addr2line \u67e5\u770b\u51fa\u9519\u7684\u5730\u5740. \u8fd8\u6709\u8c03\u8bd5\u5185\u5b58\u9519\u8bef\u7684\u795e\u5668 -fsanitize=address, clang \u548c gcc 4.8 \u4ee5\u4e0a\u90fd\u652f\u6301                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742938\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @bfdh #12 \u7a7a\u95f4\u5c0f\uff0c125mb ROM \u7684\u5c0f\u7c73 \u6211\u90fd\u662f\u7701\u7740\u5728\u7528\uff0c\u7528 x86 \u4e4b\u540e \u6211\u76f4\u63a5\u5728\u8def\u7531\u5668\u4e0a\u7f16\u8bd1 \u8c03\u8bd5\u4ee3\u7801\u4e86\uff0c\u56e0\u4e3a\u5185\u5b58\u8ddf CPU \u95f2\u7f6e\u592a\u591a\u4e86\uff0c\u5373\u4f7f\u662f J1900 \u7f16\u8bd1 Openwrt \u4e5f\u7ef0\u7ef0\u6709\u4f59\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4742939\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aneostart173 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u611f\u89c9\u8fd9\u79cd\u60c5\u51b5\u516b\u6210\u662f\u5f88\u5c0f\u7684\u5185\u5b58\u6cc4\u6f0f\uff0c\u6700\u540e\u5bfc\u81f4\u5185\u5b58\u5206\u914d\u5931\u8d25\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u957f\u671f\u8fd0\u884c\u7684 C \u7a0b\u5e8f\u9047\u5230 SIGS&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/233824"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233824"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/233824\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233824"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}