久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='oxZft'><tr id='oxZft'><dt id='oxZft'><q id='oxZft'><span id='oxZft'><b id='oxZft'><form id='oxZft'><ins id='oxZft'></ins><ul id='oxZft'></ul><sub id='oxZft'></sub></form><legend id='oxZft'></legend><bdo id='oxZft'><pre id='oxZft'><center id='oxZft'></center></pre></bdo></b><th id='oxZft'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oxZft'><tfoot id='oxZft'></tfoot><dl id='oxZft'><fieldset id='oxZft'></fieldset></dl></div>

      <legend id='oxZft'><style id='oxZft'><dir id='oxZft'><q id='oxZft'></q></dir></style></legend>

        <bdo id='oxZft'></bdo><ul id='oxZft'></ul>
      <tfoot id='oxZft'></tfoot>

        <small id='oxZft'></small><noframes id='oxZft'>

        程序僅在發(fā)布版本時(shí)崩潰——如何調(diào)試?

        Program only crashes as release build -- how to debug?(程序僅在發(fā)布版本時(shí)崩潰——如何調(diào)試?)

          <i id='JcxAO'><tr id='JcxAO'><dt id='JcxAO'><q id='JcxAO'><span id='JcxAO'><b id='JcxAO'><form id='JcxAO'><ins id='JcxAO'></ins><ul id='JcxAO'></ul><sub id='JcxAO'></sub></form><legend id='JcxAO'></legend><bdo id='JcxAO'><pre id='JcxAO'><center id='JcxAO'></center></pre></bdo></b><th id='JcxAO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JcxAO'><tfoot id='JcxAO'></tfoot><dl id='JcxAO'><fieldset id='JcxAO'></fieldset></dl></div>
                <tbody id='JcxAO'></tbody>
                <bdo id='JcxAO'></bdo><ul id='JcxAO'></ul>
                <legend id='JcxAO'><style id='JcxAO'><dir id='JcxAO'><q id='JcxAO'></q></dir></style></legend>

                <small id='JcxAO'></small><noframes id='JcxAO'>

                <tfoot id='JcxAO'></tfoot>
                1. 本文介紹了程序僅在發(fā)布版本時(shí)崩潰——如何調(diào)試?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我在這里遇到了薛定諤的貓"類型的問題——我的程序(實(shí)際上是我的程序的測試套件,但仍然是一個(gè)程序)崩潰了,但只有在發(fā)布模式下構(gòu)建時(shí),并且只有在從命令行.通過穴居人調(diào)試(即到處都是討厭的 printf() 消息),我確定了代碼崩潰的測試方法,盡管不幸的是,實(shí)際崩潰似乎發(fā)生在某些析構(gòu)函數(shù)中,因?yàn)槲铱吹降淖詈笠粭l跟蹤消息在其他可以干凈執(zhí)行的析構(gòu)函數(shù).

                  I've got a "Schroedinger's Cat" type of problem here -- my program (actually the test suite for my program, but a program nonetheless) is crashing, but only when built in release mode, and only when launched from the command line. Through caveman debugging (ie, nasty printf() messages all over the place), I have determined the test method where the code is crashing, though unfortunately the actual crash seems to happen in some destructor, since the last trace messages I see are in other destructors which execute cleanly.

                  當(dāng)我嘗試在 Visual Studio 中運(yùn)行這個(gè)程序時(shí),它沒有崩潰.從 WinDbg.exe 啟動(dòng)時(shí)也是如此.只有從命令行啟動(dòng)時(shí)才會(huì)發(fā)生崩潰.這發(fā)生在 Windows Vista 下,順便說一句,不幸的是我現(xiàn)在無法訪問 XP 機(jī)器進(jìn)行測試.

                  When I attempt to run this program inside of Visual Studio, it doesn't crash. Same goes when launching from WinDbg.exe. The crash only occurs when launching from the command line. This is happening under Windows Vista, btw, and unfortunately I don't have access to an XP machine right now to test on.

                  如果我能讓 Windows 打印出堆棧跟蹤,或者除了簡單地終止程序,就像它已經(jīng)干凈地退出一樣其他東西,那就太好了.有沒有人對我如何在此處獲取更有意義的信息并希望修復(fù)此錯(cuò)誤有任何建議?

                  It would be really nice if I could get Windows to print out a stack trace, or something other than simply terminating the program as if it had exited cleanly. Does anyone have any advice as to how I could get some more meaningful information here and hopefully fix this bug?

                  問題確實(shí)是由越界數(shù)組引起的,我在這篇文章中對此進(jìn)行了更多描述.感謝大家?guī)椭业竭@個(gè)問題!

                  The problem was indeed caused by an out-of-bounds array, which I describe more in this post. Thanks everybody for your help in finding this problem!

                  推薦答案

                  在我見過或聽說過的 100% 的情況下,C 或 C++ 程序在調(diào)試器中運(yùn)行良好,但在外部運(yùn)行時(shí)失敗,原因是一直寫到函數(shù)局部數(shù)組的末尾.(調(diào)試器會(huì)在堆棧上放置更多內(nèi)容,因此您不太可能覆蓋重要的內(nèi)容.)

                  In 100% of the cases I've seen or heard of, where a C or C++ program runs fine in the debugger but fails when run outside, the cause has been writing past the end of a function local array. (The debugger puts more on the stack, so you're less likely to overwrite something important.)

                  這篇關(guān)于程序僅在發(fā)布版本時(shí)崩潰——如何調(diào)試?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Why do two functions have the same address?(為什么兩個(gè)函數(shù)的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復(fù)制構(gòu)造的?)
                  mixing templates with polymorphism(混合模板與多態(tài)性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時(shí)候應(yīng)該使用關(guān)鍵字“typename?使用模板時(shí))
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標(biāo)準(zhǔn)庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數(shù)模板,而 clang 不能)

                    <bdo id='wlpYv'></bdo><ul id='wlpYv'></ul>
                        <tbody id='wlpYv'></tbody>

                      <small id='wlpYv'></small><noframes id='wlpYv'>

                      • <legend id='wlpYv'><style id='wlpYv'><dir id='wlpYv'><q id='wlpYv'></q></dir></style></legend>
                        1. <i id='wlpYv'><tr id='wlpYv'><dt id='wlpYv'><q id='wlpYv'><span id='wlpYv'><b id='wlpYv'><form id='wlpYv'><ins id='wlpYv'></ins><ul id='wlpYv'></ul><sub id='wlpYv'></sub></form><legend id='wlpYv'></legend><bdo id='wlpYv'><pre id='wlpYv'><center id='wlpYv'></center></pre></bdo></b><th id='wlpYv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='wlpYv'><tfoot id='wlpYv'></tfoot><dl id='wlpYv'><fieldset id='wlpYv'></fieldset></dl></div>
                        2. <tfoot id='wlpYv'></tfoot>

                            主站蜘蛛池模板: 国产激情在线播放 | 俺去俺来也www色官网cms | 欧美 日韩 视频 | 亚洲午夜av久久乱码 | 久久精品中文 | 91精品国产91久久久久久丝袜 | 羞羞的视频免费观看 | 色综合一区二区 | av男人的天堂av | 久久新视频 | 国产精品免费一区二区三区四区 | 欧美日韩精品一区二区三区四区 | 欧美福利三区 | 亚洲国产精品99久久久久久久久 | 国产精品国产a | 久久国产成人 | 激情久久网 | 亚洲精品久久久久久久不卡四虎 | 一区二区三区在线 | 男人天堂av网站 | 狠狠婷婷综合久久久久久妖精 | 日韩欧美在线观看 | 亚洲高清中文字幕 | 视频在线亚洲 | 久久av综合| 99综合网 | 亚洲视频在线一区 | 涩在线 | 久久久久国产一区二区三区 | 精品欧美乱码久久久久久1区2区 | 国产欧美精品 | 久久久久成人精品免费播放动漫 | 福利网站在线观看 | 久久日韩精品 | 精品久久久久久久久久久 | 国产日韩精品一区二区 | 91啪亚洲精品| 国产精品久久久久久久午夜 | 日本午夜视频 | 在线视频国产一区 | www.中文字幕av|