stack-overflow

What is a StackOverFlow exception in vb.net?

ぐ巨炮叔叔 提交于 2019-12-12 15:08:55
问题 I dont even know what caused it in my application. What is it? I created a new instance of a class (the class was in another file), but at the first time I call a method it throws a StackOverFlow exception. The only thing that I think would logically throw a stackoverflow exception would be if someone downvoted Jon Skeet. But seriously now, what is it? I got around it by creating another class in the same file as the first class and using that to call the methods for me. 回答1: As a general

“Run-Time Check Failure #2 - Stack around the variable 'filePath' was corrupted” in debug Mode

落爺英雄遲暮 提交于 2019-12-12 15:08:28
问题 I’ve problem with this function using winsock2. When program leave this function in debug mode I receive 2 statements (only during exiting this function): “Run-Time Check Failure #2 - Stack around the variable 'filePath' was corrupted.” “Run-Time Check Failure #2 - Stack around the variable 'recBuf' was corrupted.” I’m programming in VS2008 C++ (console application). In Release mode this statements do not exist. So I’m waiting for reply and thanks a lot for your help ;) Function: #include

Scala [2.11.6] Compile Stackoverflow error (appears resistant to advice found thus far)

喜夏-厌秋 提交于 2019-12-12 12:30:59
问题 scalaVersion := "2.11.6" I have of course tried clean many times as well as update -- unsure if there is a clean-deeper to refresh the jar (libraries). What is really bizarre is that this occurred on TWO machines at the same time and one recovered without doing anything special and the other still has not. I've move up the code (about 2 weeks worth of effort) on the second machine thinking it was just some freaky luck of the draw type anomaly but sadly no. If I can't fix this I'm terrified!

PHP doesn't handle stack overflow?

若如初见. 提交于 2019-12-12 09:43:55
问题 I was surprised when I just tried the following PHP code: function foo() { foo(); } foo(); I expected to get "500: Internal server error". Instead the connection was closed immediately (no bytes received), and the log files show that apache segfaulted. WTF? Is this a known bug in PHP? Are there some configuration options that I'm missing? Because a crashed process for every accidental stack overflow is, well... pretty unacceptable, I think. 回答1: PHP is not able to deal with this, it will just

Is there any way to bypass SSP (StackSmashing Protection)/Propolice?

℡╲_俬逩灬. 提交于 2019-12-12 08:04:25
问题 After some research i haven't found any paper describing method to do this (no even an unreliable one). It seems that SSP (StackSmashing Protection)/Propolice 回答1: Canary's are a very good security measure for protecting against some buffer overflows. Over the years various Canary implementations have been broken and then made more secure. What is important is that even despite advanced memory protection buffer overflows are still being exploited on Vista, Windows 7 and Fedora 11... One very

Stack resident buffer overflow on 64-bit?

爱⌒轻易说出口 提交于 2019-12-12 07:14:28
问题 I'm studying some security related things and right now I'm playing around with my own stack. What I'm doing should be very trivial, I'm not even trying to execute the stack, simply to show that I can get control over the instruction pointer on my 64-bit system. I have turned off all protection mechanisms I'm aware of just to be able to play with it (NX-bit, ASLR, also compiling with -fno-stack-protector -z execstack). I don't have that much experience with 64-bit assembly and after spending

Java: Stackoverflow in finite recursion

妖精的绣舞 提交于 2019-12-12 04:27:59
问题 I wrote a javaCC parser for some propositional logic expressions. The expressions can get pretty long, 30k many characters. When I parse such big expressions, I get a stack-overflow exception. Is there maybe some VM parameter which determines the stack size? Or what would you do in such cases? Thanks 回答1: Yes, use the -Xss parameter. e.g.: java -Xss4m Blah sets the stack-size to 4MB. 回答2: While you can alter the stack size as per Oli's answer, I would suggest you try to look for an

How to get rid of stack overflow error

余生颓废 提交于 2019-12-12 03:48:26
问题 I am getting a stack overflow error when I create an instance of my Dungeon class. I feel like it is because my dungeon class creates an array of rooms and my rooms create an array of cells. My only question is I have done this before and never had this issue. So what am I doing wrong this time? Are my arrays too big? I can make my rooms array to a maximum of [5][3] but I would like to have it a [5][5] size room. Is this just impossible to do? I understand that a stack overflow error is when

Why do I get Infinite loop(Stackoverflow error) while creating an object in a class with constructor? [duplicate]

旧街凉风 提交于 2019-12-12 03:39:19
问题 This question already has answers here : stackoverflow error in class constructor (2 answers) Why am I getting a StackOverflowError exception in my constructor (3 answers) Closed 2 years ago . This is my code : public class ConstructorsDemo{ public static void main(String a[]){ Cons1 c1 = new Cons1(); } } class Cons1{ Cons1 c = new Cons1();// the error is in this line Cons1(){ //does somwthing } } So I get an infinite loop error here (Stackoverflow). However it's fine if I comment out any of

QuickSort java.lang.StackOverflowError

半城伤御伤魂 提交于 2019-12-12 03:32:18
问题 I am trying to calculate the execution time of quicksort algorithm in three cases "Mid pivot, first pivot, random pivot" of an array was already sorted. The mid pivot and random works fine with any size, but the first pivot case gives stackoverflow if the size was greater than 25000. Heres the code: static void q_sort( int left, int right) { int pivot; int l_hold, r_hold; l_hold = left; r_hold = right; pivot = array[left]; while (left < right) { while ((array[right] >= pivot) && (left < right