stack-overflow

Viewing CallStack in Visual Studio 2010 when stack overflow exception thrown

南笙酒味 提交于 2019-12-24 01:16:00
问题 I want to view the call stack when a stackoverflow exception is thrown. (i.e. I want to pin point what recursive call is causing the stack overflow). The call stack is cleared and all that I can see is "External Code". Edit I followed Chris Schmich's advice (post below), now I have a call stack like below, this is just a plain console app that I'm writing, notice that the is no mention of Main() in the screen shot: Edit2: I followed Chris Schmich's advice about view the different threads call

Build project in VS2015: “csc.exe” exited with code -1073741571

梦想的初衷 提交于 2019-12-24 01:15:38
问题 I was using Visual studio 2013. Yesterday, I installed VS2015(enterprise update 3). The build process for my solution crashes in VS2015 for one of the projects. The same exception occurs with VS2017 RC. The solution was building succesfully in VS2013. The solution is targeting .Net4.5. When I migrate to .Net4.6.2, it does not solve this issue. I believe the problem is coming with compiler included in VS2015+ Output : Process is terminated due to StackOverflowException. C:\Program Files (x86)

how to draw nested circle programmatically

梦想与她 提交于 2019-12-24 00:39:15
问题 Here I am using layer list to draw nested Circle by using XML <item> <shape android:shape="oval" > <stroke android:width="1dp" android:color="@android:color/holo_orange_light" /> <padding android:bottom="7dp" android:left="7dp" android:right="7dp" android:top="7dp" /> </shape> </item> <item> <shape android:shape="oval" > <solid android:color="@color/welcome_bg" /> </shape> </item> No I want same nested circle by using programmatically because I want to change color dynamically or is there any

How to handle SIGSEGV signal in userspace using Rust?

你离开我真会死。 提交于 2019-12-23 21:44:59
问题 I am trying to understand the stack overflow handler in Rust. I have written the function recursive_stack() which declares some local variables again and again to exhaust the stack space. extern crate nix; use nix::sys::signal; extern "C" fn handle_sigsegv(_: i32) { //Do something here } fn main() { let sig_action = signal::SigAction::new( signal::SigHandler::Handler(handle_sigsegv), signal::SaFlags::SA_NODEFER, signal::SigSet::empty(), ); unsafe { signal::sigaction(signal::SIGSEGV, &sig

scala parser combinator stackoverflow recursion

随声附和 提交于 2019-12-23 18:26:22
问题 The following code example crashes due to stack overflow when parsing an expression deeply nested in brackets. Parser combinators are part of the standard library. Is there a way of making use of the library avoiding that? (I'm not asking for the reason of why it crashes rather for the right way to deal with the standard library.) parsing: ((((((((... 1 + 1 ...))))))))) code: import scala.util.parsing.combinator.syntactical.StandardTokenParsers object ArithmeticParser1 extends

What to do with error information after stack smashing

本小妞迷上赌 提交于 2019-12-23 15:16:04
问题 I'm experiencing some problems with my C program on Linux. It compiles and runs just fine on Windows. The Linux terminal returns this information: *** stack smashing detected ***: ./student terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x4b)[0xb7e908ab] /lib/libc.so.6(__fortify_fail+0x0)[0xb7e90860] ./student[0x8048c09] ./student[0x80486dd] /lib/libc.so.6(__libc_start_main+0xe5)[0xb7dc0775] ./student[0x80485e1] ======= Memory map: ======== 08048000-0804a000 r-xp

getting error “java.lang.StackOverflowError: stack size 1036KB” and OutOfMemory

随声附和 提交于 2019-12-23 12:40:20
问题 I am working with an application having totally work with Images and Videos. I am storing all the images and videos of device into database of application and this task is performing in a background service. Between this process I am checking for detecting face in image using getFacesFromBitmap(mBitmap) . The problem is that sometime I am getting error java.lang.StackOverflowError: stack size 1036KB and sometimes I am getting OOM error. So is there any best way to solve this issue? 回答1:

Stack overflow when debugging but not in release

天涯浪子 提交于 2019-12-23 12:34:46
问题 I've got the following code below which parses a text file and indexes the words and lines: bool Database::addFromFileToListAndIndex(string path, BSTIndex* & index, list<Line *> & myList) { bool result = false; ifstream txtFile; txtFile.open(path, ifstream::in); char line[200]; Line * ln; //if path is valid AND is not already in the list then add it if(txtFile.is_open() && (find(textFilePaths.begin(), textFilePaths.end(), path) == textFilePaths.end())) //the path is valid { //Add the path to

Stackoverflow and function pointers

被刻印的时光 ゝ 提交于 2019-12-23 12:15:05
问题 I'm quite lost on this one and I hope someone here could help. My application consists of hundreds of functions evaluating numerical code (source is in the 5MB range each) and I manage the functions with a std::map to function pointers. What apparently happens is that I get a stack overflow when trying to pass an argument to one of the functions, accessed by a pointer to it: gdb output: Program received signal SIGSEGV, Segmentation fault. 0x0000000001ec0df7 in xsectiond149 (sme=Cannot access

StackOverflowException was unhandled

痴心易碎 提交于 2019-12-23 10:28:05
问题 I'm having this error in my code An unhandled exception of type 'System.StackOverflowException' occurred in MedCareProviderLibrary.dll Here is a snippet of my code and where the error is coming from. It gives a yellow arrow on the part with the error. The part showing the error is in bold. Any help will be much appreciated Thanks private string _TestNo; private string _TestType; private DateTime _TestDate; private string _PatientNo; private string _DoctorNo; public Test() { _TestNo = "";