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, rather use this tag in reference to the error - Stack Overflow - which occurs when too much memory is used on the call stack.
0
votes
1answer
19 views
Stack overflow error on Recursive Syntax lab homework
A lot of posts exist on this assignment - most wanting to know how to do it. Please let me figure out the rest of this on my own - I'm just looking for one or two bits of help, not someone to do my ...
2
votes
1answer
52 views
Large VLA overflow
Based on a comment of someone in another thread:
VLAs introduce more problems than they solve, because you never know
if the declaration is going to crash for x being too large for the
stack.
...
0
votes
1answer
19 views
How to prevent stack overflow when serializing a recursive graph structure with boost::serialization?
I am trying to serialize a large (geometric) graph structure with the boost serialization library.
I store my graph as an adjacency list, that is, my structure is as follows:
class Node {
double x,...
1
vote
1answer
53 views
Call Stack size?
Greetings from Michigan,
I have a program that runs continuously (logging data) where it runs inside a While loop within one Sub ("logging data" Sub), then when the log file becomes "full", it jumps ...
0
votes
3answers
35 views
Stackoverflow error in constructor [duplicate]
I need to construct a new airplane with the given traveler capacity in the constructor below, but I am getting a Stackoverflow error.
public class Airplane extends Object {
private int capacity = 0;
...
0
votes
3answers
30 views
calling a method through an instance is throwing a stackOverFlow Error
I am working on the following scenario where I create an instance of a class and call a method on that instance.It ends up giving me a stackOverFlow Error. My code:
public class test {
test t = ...
1
vote
1answer
24 views
What is the stack limit when MATLAB calls function in DLL
I am trying to figure out, what is the stack size limitation, when MATLAB calls function in DLL.
Is there a way to configure the limit?
I am using loadlibrary, and calllib functions to call function ...
2
votes
2answers
56 views
Scala filter function call without “.” vs using “.”
Can someone help me understand what is going on here. I have this definition for generating primes:
def primes: Stream[Long] = {
2 #:: 3 #:: 5 #:: 7 #::Stream.iterate(11L)(_ + 2).filter {
...
0
votes
0answers
43 views
StackoverflowError from recursion method
I need help for my homework.
The homework is to write a recursion method, which solve every simple level
from the game "Sokoban". It should be done with the Cloneable interface and hashSets.
That is ...
2
votes
2answers
36 views
Finding potential stack overflow issues in templates
I traced a recent crash in my application to a stack overflow problem, and having fixed the problem, I thought I'd do a re-check on the code for any similar potential bugs using the visual studio code ...
0
votes
1answer
61 views
Java, StackOverflowError when extending a class, or instantiating
Okay, at first, I know why I am getting this error, but just don't how to solve it.
I have a couple classes, a main class, a layout class and a buttonClick class.
The problem is in the buttonClick ...
0
votes
1answer
45 views
Pointer initialization string literals
Let's say I have a function that I need to call a couple of times which takes a string literal as its first and only parameter. Like so:
func( "things_i_like\\turtles\\fresh_water" );
/* some code */...
1
vote
1answer
19 views
Eclipse Neon “Customize perspective” provokes a “StackOverflowError”
Eclipse "Customize perspective" provokes a "StackOverflowError" (see partial stacktrace below), the screen will never show and Eclipse can become unstable and may not start again.
This happens on ...
0
votes
1answer
42 views
Tail recursion (@tailrec) recursive function vs non-recursive function scala stack overflow error?
My use-case is more complicated but basically below is the simplified example of what I am trying to achieve (my original code is for akka-stream):
offset := 0
//pump data
def pump(): Unit = {
...
-1
votes
0answers
37 views
Java DFS StackOverflow
I am trying emulate a game of backgammon, and use a branching dfs to generate data for a machine learning algorithm. I am trying to limit the branching as a way to reduce computational time, but for ...
0
votes
0answers
6 views
Who verifies correct answers on stack overflow? [migrated]
Is there anyone who checks the answers on stack overflow? I have seen several correct answers downvoted, even though i could verify the answers by copy-pasting the code into an IDE and running it. ...
0
votes
1answer
60 views
How do I resolve StackOverflow Error? [duplicate]
I wrote the code that pulls all the links on a web page. I check with Arraylist to prevent the same link from appearing. But I get stackoverflow error if there are too many links on the site. I keep ...
0
votes
0answers
22 views
Trying to login to SO with curl. 'Object moved'
I am trying to login into SO with Curl request.
I did 'copy as curl' in Chrome Devtools but looks like not working.
The Curl request is:
curl 'https://stackoverflow.com/users/login?ssrc=head&...
1
vote
0answers
41 views
Stack Overflow when AutoMapper project a circular reference object
I have the folowing class and its dto:
public class Node
{
public int NodeId { get; set; }
public virtual ICollection<Node> ChildrenNode { get; set; }
public virtual Node ...
68
votes
3answers
6k views
Why doesn't this statement throw a StackOverflowError?
I just saw this weird piece of code in another question. I thought it would result in a StackOverflowError being thrown, but it does not.
public class Node {
private Object one;
private ...
0
votes
1answer
48 views
Stack differences between a signal handler being called directly and by raise()?
I'm trying to modify the return address on the stack within a segment fault handler, so that it skips over the faulting instruction. However, I get a segment fault whenever I try to modify the return ...
0
votes
0answers
10 views
Stackoverflow user id appears in search box? [migrated]
When i click on my stackoverflow reputation(profile) icon as shown in the below image the user id appears into the search box automatically, isn't it looks odd? or is this is expected.?
2
votes
2answers
84 views
Build project in VS2015: “csc.exe” exited with code -1073741571
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 ...
1
vote
1answer
109 views
JSON.NET StackOverflowException while serialization
My C# program is running into StackOverflowException, when I try to serialize object with similar structure like this:
Object has members which reference each other
can't be try catched (idk why)
if ...
0
votes
1answer
44 views
Clisp “Program stack overflow. RESET” on a (cadr). How? [duplicate]
I'm (still) porting code from Franz Lisp to Common LISP. Now I seem to have pushed the interpreter into a strange corner where it blows up.
[11]> (setq fff (cadr contextstack))
*** - Program ...
0
votes
0answers
25 views
Automatic shellcode doesn't work but manual shellcode works
I created (copied!) this simple example called nopattack.c
#include <stdlib.h>
#define DEFAULT_OFFSET 0
#define DEFAULT_BUFFER_SIZE 512
#define NOP 0x90
char shellcode[] =
"\...
0
votes
1answer
24 views
Object pooling in C# throwing StackoverFlow Exception
I am trying to implement object pooling in C#. My requirement is to have a pool which can hold 100 active SqlConnection objects. If the pool is already having 100 connections and if user requests a ...
-1
votes
0answers
37 views
Java - Javax Swing - ActionListener -> StackOverFlowError [duplicate]
Why does my code give an StackOverflow error? The error occurred when I added the ActionListener to my buttons. Everything worked out fine before I added the ActionListeners, and I cannot tell where ...
0
votes
1answer
49 views
Can not find return address in gdb
I wrote that program in C (just for debugging purposes):
void return_input(void)
{
char array[10];
gets(array);
printf("%s\n", array);
}
main()
{
return_input();
return 0;
}
...
1
vote
1answer
30 views
Java - StackOverflowError - access HashMaps
I am getting a java.lang.StackOverflowError when attempting to call a method within another class.
I think the problem is due to each class being instantiated within each other but I'm not sure as to ...
-1
votes
1answer
69 views
static readonly field causes StackOverflowException
In ASP.NET website I have static readonly XGeoPhone provider = new XGeoPhone();. Inside of XGeoPhone class I have static readonly XPhoneInfo[] phoneInfo = new[] { new XPhoneInfo(......), ... 250000 ...
0
votes
0answers
11 views
java.lang.StackOverflowError error occor when using ArrayAdapter list view in tabhost
my activity code
public class ActivityBarber extends TabActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
0
votes
1answer
26 views
Stack Overflow in Depth First Search
I'm writing a DFS connected component labelling, basic idea is really simple, just applying DFS to FOUR neighbours(left,right,up,down) recursively.
The problem is that when the connected area is too ...
1
vote
1answer
34 views
PostSharp stackoverflow on aspect
Aspect class looks like this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using ...
3
votes
0answers
89 views
Large array, stack overflow, and dynamically allocated
I am wondering how could I create and initiate this large array without resorting to vector. Basically, I have been trying to create a large 1D array whose each element is a cell of a cubic with side ...
3
votes
4answers
176 views
What does typically happen in C due to stack overflow?
In Java there will be a stacktrace that says StackOverflowError and the whole system won't crash, only the program.
In C I'm aware that an array index out of bounds will produce a segmentation fault....
-1
votes
1answer
49 views
StackOverflowError with Maven 3.3.9, Java 8 and Scala 2.12
I get an java.lang.StackOverflowError when I try to compile and package my code with mvn package and Java 1.8.0_112.
My code compiles well with Java 7.
I tried to set JAVA_OPTS=-Xss512m and tried ...
0
votes
1answer
25 views
Jmeter - Unknown Error Writing Event
I got an output error while running a JMeter test: Logging Error: Unknown error writing event.
I've seen these before but they usually relate to Java being out of memory. However, this time the ...
2
votes
3answers
101 views
Initialize C++ struct on the heap instead of the stack
For reasons that I do not want to get into here, I have to integrate some code written elsewhere into our program with minimal changes to their code. The code has a constructor that creates a struct ...
-3
votes
0answers
32 views
Array of structs within an array of structs - malloc - stackoverflow
I've been writing this code all day long and im really puzzled. I looked over a lot of examples and i cant get to the aswer.
When it reaches the "fseek(f, 0, SEEK_SET)" in the consultingClientData() ...
0
votes
1answer
25 views
pySpark gives a StackOverflowError when using too many window function to count distinct entities in groups
In order to calculate distinct entities in groups, we use max(dense_rank().over(window)) function, but it causes
java.lang.StackOverflowError
when use too many window functions in a dataframe.
...
0
votes
0answers
53 views
Why reverse_tcp Shellcode doesn't work?
I am using this shellcode:
\x6a\x66\x58\x6a\x01\x5b\x31\xd2\x52\x53\x6a\x02\x89\xe1\xcd\x80\x92\xb0\x66\x68\xc0\xa8\x0f\x81\x66\x68\x05\x39\x43\x66\x53\x89\xe1\x6a\x10\x51\x52\x89\xe1\x43\xcd\x80\...
0
votes
0answers
37 views
Leetcode #179 largest Number printing weird output with my c++ code (it's not about algorithm)
So here is my code, I used recursion to compare the digits rather than the whole number
class comparator{
public:
bool operator()(int a, int b){
return cmp(a,b);
}
...
0
votes
1answer
32 views
Bootstrap 4 JS Throwing Error on SO Embed Snippet Fiddle
Out of curiosity, any clue on why bootstrap 4 js is throwing the following:
when embedding the snippet? (Checking same external Fiddle shows no errors)
Tried adding tether.js but nothing (left it ...
0
votes
0answers
18 views
C++ defining variables ouside versus inside main [duplicate]
What exactly is the difference between defining variables inside and outside but before main (As a global variable)?
My question comes from this occurrence:
If i make a declaration
int main(){
...
-2
votes
0answers
25 views
How to stop stack overflow errors in simple paint program?
I'm building a simple paint program using DrawingPanel.java, and my program works, but after a while of using it, a stack overflow error inevitably happens.
Exception in thread "AWT-EventQueue-0" ...
-1
votes
0answers
7 views
Can't change profile picture on Stack Overflow [migrated]
After dragging the picture i want into the area and clicking "Save Profile" at the bottom I am prompted with the following message:
Oops! There was a problem updating your profile:
Display name may ...
-2
votes
1answer
71 views
Web API Controller method executes to end. No HTTP response. Hangs
I am looking for an approach to debugging this scenario. I have verified in Fiddler that there is no HTTP response at all. To be clear, as I understand it a controller method should not simply hang, ...
-5
votes
1answer
53 views
Increase stack size c#
My code generates characters 'L' into 2D-Array on random place, but I need program to check if there isn't 'L' already and if it is there, program should go through process of generation again. But ...
0
votes
1answer
44 views
StackOverflowError on decision tree generating JAVA
I'm trying to write the ID3 algorithm that generates a Decision tree, but I get StackOverflowError when I run my code.
When debugging I noticed that the looping begins when the attributes get down to ...