A stack overflow occurs when too much memory is used on the call stack. NOTE: Do not use this tag to refer to the Stack Overflow website. If you have a question regarding the site, please go to http://meta.stackoverflow.com
0
votes
0answers
11 views
Cuckoo Hashing Collisions lead to overflow
I'm trying to implement cuckoo hashing with hash functions:
hash1: key.hashcode() % capacity
hash2: key.hashcode() / capacity % capacity
With an infinite loop check and rehashing method doubling ...
-1
votes
0answers
9 views
What Is Difference Hold And Closed Questions In StackOverFlow [migrated]
Can we edit our closed questions ? If we edit question well then is question reopened by Stackoverflow community. And i read 'Help Center'. And then i learnt 'closed' and 'hold' questions have the ...
-2
votes
0answers
38 views
Stackoverflow exception in C# while splaying a node in the tree
I have implemented a Splay tree which is properly working with the small set of data. But when more data is used, I get an StackOverflowException. I'm using a recursive approach for splaying tree. ...
1
vote
1answer
51 views
C# Entity Framework - Stack Overflow when inserting data into child table
I am brand new to C# and Entity Framework. I have been used these tutorials and StackOverflow to give me a better understanding.
...
1
vote
2answers
37 views
Why this code throws java.lang.StackOverflowError
Why this code doesn't execute fine. It throws java.lang.StackOverflowError. I want to know the behavior of the class.
public class A {
A a = new A();
public static void main(String[] args) {
A a ...
0
votes
0answers
35 views
Cannot evaluate expression because the current thread is in a stack overflow state In EF Context
Last night everything was working fine and I woke up this morning to continue working on the project and I am now getting this error
Cannot evaluate expression because the current thread is in a ...
-4
votes
0answers
17 views
How can I create a new StackOverflow tag without first posting? [migrated]
Is there a way to create a new tag before posting a question that uses that tag? I was trying to setup an IFTTT recipe for a non-existent tag so that I can receive any questions marked with that tag ...
0
votes
1answer
28 views
Java list permutation stackoverflow
I am making a program that generates all the subsets of a list and then permutes all those subsets. I have a method for generating subsets and a method for generating permutations . However, they do ...
0
votes
1answer
51 views
Scala recursion depth differences and StackOverflowError below allowed depth
The following program was written to check how deep recursion in Scala can go deep on my machine. I assume that it mostly depends on stack's size assigned to this program. However, after calculating ...
2
votes
2answers
70 views
Why does my recursive function in C cause a stack overflow?
I'm trying to make a function calculating x to the power n (where x could be a double, n must be an int). A recursive algorithm would be this one, but implementing it in C gave me the stack-overflow ...
3
votes
1answer
58 views
Decoding LinkedList implementation
Just to understand the implementation, operation etc., I copied LinkedList class from JDK and modified in non-generic(String only) way. Relevant to the question, here's addLast()
public void ...
0
votes
0answers
24 views
Stackoverflow exception with @ToString annotation in test
I'm using a MongoDB database in a Grails 3 application and I'm having some issues while doing some unitary tests.
This is my domain class
@ToString(includeFields = true, includeNames = true, ...
4
votes
1answer
29 views
How to stop the stack from overflowing when generating permutations in python
I'm trying to generate permutations in python without using itertools. This is my code thus far:
def generatePermutations(minVal, maxVal, arrayLength, depth = -1, array = []):
if(depth == -1): # ...
-1
votes
0answers
26 views
how to add Profile picture in my stackoverflow profile? [migrated]
I have created a profile in stackoverflow recently. But my profile is showing a blank-avatar. How can I add my pic to the profile?
Thanks in advance
2
votes
1answer
38 views
Getting stack overflow error on one machine but not the other on the same code
I'm trying to implement a certain puzzle solver in Java given an initial state and certain goal specifications. For various reasons, I cannot share the actual code, and that likely doesn't matter ...
4
votes
6answers
107 views
Quick Sort stackoverflow error for large arrays
So I was assigned to implement a quick sort algorithm and compare the running times for arrays with size 500, 3500, and 80000. The arrays are populated with random numbers:
...
-5
votes
2answers
48 views
Stack Overflow error with Vectors
I have the following code which causes stack overflow. I don't know why. None of the values I used is out of boundaries when exception occurs. It is called as this Contour_Depth_Search(0, tmp, 0); ...
0
votes
0answers
30 views
Show more comments button has broken [migrated]
When clicking Show More Comments, the browser window gets pulled down to the active comment. I wonder if this is just a temporary bug everyone's aware of or it's worth mentioning. Maybe others have a ...
-3
votes
0answers
13 views
What will happen when John Skeet reaches 1 mln points [migrated]
or better yet: round 1048576 points? Is StackOverflow ready to handle this?
And more seriously:
I noticed that several top SO users (e.g. John Skeet) have their bronze medal count truncated in their ...
3
votes
3answers
102 views
Stack overflow in C++ destructor
I try to create the detor and got a "Stack Overflow"
I know why but I want that its work...
#include <iostream>
#include "printTreeToFile.h"
#include "BSNode.h"
#define _BS BSNode::
#define ...
-1
votes
3answers
93 views
Avoiding stack overflow when recursively adding numbers
I have a recursive function that adds a value number on the first recursive call, adds number-1 on the second recursive call, and so on until it reaches 0. I have implemented this function as:
public ...
3
votes
2answers
61 views
Two classes, same code, one gets StackOverflow
I'm in a project that does DFS recursively over a graph.
The issue is that I have the exact same code in two different classes (with different names) and while one manages to do the recursion ...
4
votes
3answers
76 views
Why does this BigInteger value cause a stack overflow exception? C#
I am using BigInteger in C# in connection with the factorial function. The program has a lightning fast calculation of 5000!, but has an overflow error at 10000!. According to wolfram alpha, 10000! ...
-4
votes
1answer
36 views
I'm making a Console Application Game (C#), and I'm running into Stack Overflow Error. How to avoid?
My game has multiple methods for each state of the game and these methods call each other where applicable. This is causing a Stack Overflow Error after a while. Is there any way to avoid this, ...
0
votes
3answers
92 views
Generating a list causes a stack overflow
I'm generating a list of random numbers:
let gen n =
let rec pom l n =
match n with
| 0 -> l
| _ ->
let el = Random.int 20000000
in pom ...
-1
votes
1answer
33 views
How to fix stackOverFlow error
The program works fine at first, but after the sixth turn, it returns a stackOverFlow error. I cannot make the program work unless the play method calls itself until either the user or the computer ...
0
votes
2answers
64 views
Quicksort - Worst case results in stack overflow?
I'm trying to implement the quick sort algorithm, where i choose the pivot to be the rightmost element.. However, when the array of ~4000 elements already is sorted, stack overflow occurs. This is my ...
4
votes
1answer
313 views
scalaz.State stack overflow in deep monadic loop
I'm experimenting with different implementation of Depth-First Search with scalaz.
This traverse should handle wide along with deep tree-like structures.
Main idea - subordinate elements should be ...
0
votes
2answers
40 views
How many number of string an arraylist can hold?
I am trying to write a web crawler. when I am going through a large page my arraylist variable is not able to hold all the data. It is throwing below exception.
Exception in thread "Thread-0" ...
1
vote
1answer
42 views
Stack overflow when I implement Quicksort method
Hello I am trying to implement Quicksort method in Java, but for some reason I am getting a stack overflow error when I am doing as little as 5 elements! Any ideas what could be wrong?
Part of my ...
2
votes
2answers
58 views
Stack_Overflow_error while calling mergeSort method
I’ve been doing this problem:
I created one file which takes random numbers and I stored those numbers in a SinglyLinkedList data structure and I'd like to perform a mergeSort to sort these random ...
1
vote
2answers
41 views
How could you increase the maximum recursion depth in Python? [duplicate]
Interesting topic of recursion and stack overflow in class today and I wondered if there is any way of increasing the maximum recursion depth in Python? Wrote a quick function for finding the ...
1
vote
1answer
39 views
Prevent StackOverflowException in Property-Definition in .Net
In my class a 'Sub Process' is responsible to produce some values in a property (list(of integer)). This sub process should always be called when the value of the property is got.
MustInherit Class ...
2
votes
1answer
35 views
Stackoverflow in Pentaho
I have an issue that I can't seem to resolve. I have a job (A) that calls another job (B). Iteration takes place in job B. There is a loop inside job B which reads one row at a time from a source file ...
0
votes
0answers
23 views
Quicksort Lomuto & Hoare. Stackoverflow exception in Partition function
Welcome, I have to code Quicksort Lomuto and Hoare variation in C++ using MinGW.
So, I have done it. Algorithms works fine for arrays[N] where N is small number like 5, 20, 100 but I need to do it ...
3
votes
2answers
144 views
How to implement the execution of a language that I am writing?
I am writing my own programming language using C# just for fun. It's called SPL. It has only 12 keywords/commands/instructions and nothing more. I know exactly what each command is going to do. This ...
0
votes
1answer
23 views
Use netcat and write to stdin for remote shell
I am exploiting a buffer overflow vulnerability (for university) on a running server and I am able to redirect the process to exec a shell.
My exploit looks like this:
perl -e 'print ...
-2
votes
1answer
40 views
How does this machine code prevent buffer-overrun?
Following's are part of three different .s files. The .c file has been compiled with three different options:
-fno-inline -fstack-protector-strong,
-fno-inline -fsanitize=address,
-fno-inline ...
0
votes
1answer
44 views
Cannot increase stack size Visual Studio 2013 C#
I am using Visual Studio 2013 Community version to write a C# project.
My program parses HTML using HtmlAgilityPack and raises a stack overflow exception. I've been trying to change the stack size ...
-5
votes
0answers
111 views
asp.net program crashes randomly
(Solved) Refer to end of this post
This program is expected to work just fine. why? because it's already doing the same thing 10-15 lines above with no problem and yet it gives random crashes.
...
0
votes
1answer
37 views
Merge sort java.lang.StackOverflowError
I am working on a project for school and things are going well until i tried to perform a merge sort on my ArrayList.
It will run but then it errors out. The first error of many is Exception in thread ...
0
votes
1answer
29 views
BinaryTree count leaves infinite loof
I wrote countLeaf method in my binary tree class to count every leaves from root.
However, it gave me stack overflow error, but I couldn't figure what I did wrong.
this is the countLeaf class from ...
-1
votes
0answers
28 views
Stack overFlow error with MotionEvent android
From morning i trying to figure out whats causing this issue, added below in the Log cat. Its happening when i scroll and click(simultaneously) the button on the Dialog that is displayed(added a image ...
-2
votes
0answers
11 views
Will owner of post can view its revisions after it's deleted? [migrated]
Here's scenario:
I first create a post on stackoverflow, and then do some edit on the post. Then I delete the post. Will I able to see its revision now?
0
votes
2answers
50 views
Exploit Development - Shellcode Doesn't Work?
I am following corelan.be/index.php/2009/07/19/exploit-writing-tutorial-part-1-stack-based-overflows/ to reproduce the exploit.
Firstly, I found the position of EIP was after the 26089 As (at ...
0
votes
2answers
50 views
Stack Overflow Error caused by Method Call
I am trying to fix this error so that I can start my program with 4 instances in my list "school" that I declare internally. Then I want to allow the user to manipulate the list as they wish. ...
-1
votes
4answers
48 views
Calling non static inside static main C#
I'm new to C# and programming all together and am trying to get this to run. I have spent the entire day reading about Static and non Static and cant seem to get it right. Any and all help would be ...
-2
votes
4answers
56 views
I am trying to write a recursive function in c++ and it keeps causing a stack overflow
So i am trying to write a recursive function to count all of the spaces on a grid of characters. It is for a project in which i have to write a program that calculates the score of a simplified game ...
0
votes
1answer
46 views
Can't handle StackOverflowException C# [duplicate]
I don't know why I can't handle this exception that is caused by that code:
private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
...
-2
votes
2answers
39 views
stackoverflow with dllimport from IIS
Scenario
I made a Wrapper class for a C dll so I can call its functions from managed code and I can access them from a c# WCF Service. Everyting seems fine, but when allocating a lot of memory in the ...