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
33 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
1answer
57 views
What inputs would cause this function to not terminate?
I am trying to prove this function in ACL2s/Lisp, but it is returning a stack overflow error, though I can't see the flaw in the code.
(defunc foo (x y)
:input-contract (and (natp x) (natp y))
:...
0
votes
2answers
149 views
Invocation Stack History Overflow
Been playing around with LISP in class. This is admittedly the first LISP code I've written. I can't figure out why this code produces the error "invocation stack history overflow" for input values ...
0
votes
1answer
41 views
Unusual stack overflow when inserting nodes in binary tree
CLISP Version: 2.49
Leaf Node
(value (NIL) (NIL))
Non-Leaf Node
(value (value (NIL) (NIL)) (NIL))
Code ("format" for debug only)
; (nil) means NULL
(defun binary-insert (root obj <)
(if (...
0
votes
0answers
24 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
21 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
35 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 ...
1
vote
1answer
24 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 ...
2
votes
1answer
294 views
How to fix java.lang.StackOverflowError when using s:action in JSP
I load the city and state from my database. I used the below code in JSP:
<s:action executeResult="true" name="LoadCities"> </s:action>
It works fine during the initial page loading, but ...
17
votes
3answers
12k views
java.lang.StackOverflowError while using a RegEx to Parse big strings
This is my Regex
((?:(?:'[^']*')|[^;])*)[;]
It tokenizes a string on semicolons. For example,
Hello world; I am having a problem; using regex;
Result is three strings
Hello world
I am having a ...
0
votes
1answer
35 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
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 ...
1
vote
1answer
27 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 ...
0
votes
0answers
8 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
24 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 ...
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 ...
77
votes
11answers
107k views
How to increase the Java stack size?
I asked this question to get to know how to increase the runtime call stack size in the JVM. I've got an answer to this, and I've also got many useful answers and comments relevant to how Java handles ...
-5
votes
1answer
45 views
How Can I fix StackOverflowError
I can't fix a problem with StackOverflowError because written code isn't mine.
I've never used these libraries and that's the reason why I write here.
I've got a huge amount of data and I don't know ...
3
votes
4answers
172 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
43 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
20 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
99 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
97 views
Why is stack overflow not occuring? [closed]
Ubuntu
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending ...
2
votes
1answer
337 views
Stack-based buffer overflow - challenge in C using scanf with limited input
As part of a security CS course, my class has been given the task of exploiting a vulnerability to beat a password check using a stack/buffer overflow. The code with the vulnerability is as follows:
#...
2
votes
2answers
1k views
SWT Table with SWT.VIRTUAL raises StackOverflowError
After recently installing Windows 7 Professional, I'm getting a strange problem removing a TableItem from a populated Table in SWT. It is specific to Windows 7 and to the SWT.VIRTUAL style constant ...
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.
...
-2
votes
3answers
124 views
Finding prime number in C using recursion
I've written a program to find the prime numbers from 0 to 1000 by recursion in C.
#include<stdio.h>
#include<conio.h>
void rec(int, int);
int main()
{
rec(2,2);
getch();
...
1
vote
1answer
866 views
Would this recursive long polling technique result in a stack overflow?
I saw an example of a long polling technique on pastebin and I wondered whether the recursive nature of the design would result in a stack overflow? Sorry if this is a noob question, but I'm ...
0
votes
0answers
36 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
182 views
Fixing Exception in thread “main” java.lang.StackOverflowError
What is the reason of the StackOverflowError? I was trying it for a while but still can't get why it happens, and how to fix it.
The formula used in the code is a requirement.
public static long ...
0
votes
0answers
50 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
1answer
28 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
3answers
112 views
C++ stack overflow on Windows 8 and MinGW
I wrote the following C++ code. It is compiled on Windows 8 with MinGW (from msys). If I run it Windows will stop it and give a stack overflow error (C00000FD). What's the problem?
#include <...
0
votes
1answer
313 views
SIGSEGV with an extremely large array in C++ loop
The following code that prints some primes using sieve generates SIGSEGV error on an online judge.
int main()
{
long count=1;
int arr[100000000];
printf("2\n");
for(long i=3;i<100000000;i=i+2)
{
...
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
21 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 ...
-5
votes
1answer
52 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 ...
-3
votes
1answer
66 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, ...
4
votes
1answer
34 views
Encoding clone $this in JsonSerializable
This simplified case is resulting in a PHP segfault (exit 127):
class Datum implements \JsonSerializable{
public function jsonSerialize(){
return clone $this;
}
}
echo json_encode(new Datum);
...
1
vote
1answer
484 views
Stackoverflow exception in VS 2015 but not in VS2010 how?
There is a webservice project written in VS2010 few years ago and the problem is all code exactly same (same PC , Tested with vs2010 and 2015 with the same code) but in vs2015 it gives error on debug ...
0
votes
2answers
419 views
SEH StackOverflow exception - is it real not possible to catch?
I have read many articles about SEH exceptions in StackOverflow and CodeProject.net.
After I implemented SEH exceptions handling in my C++ program, I was affected by stack overflow exception, which ...
0
votes
2answers
102 views
Merge sort causing stack to overflow?
I wrote mergesort() in C++ for linked lists. The issue is that my professor has provided test code with a very large list (length of 575,000). This causes a stack overflow error for my function since ...
1
vote
4answers
2k views
An unhandled exception of type 'System.StackOverflowException' using AutoMapper with many to one Related Entities
After fixing this error: AutoMapper throws Missing Map when Map exists I received the error:
Cannot evaluate expression because the current thread is in a stack overflow state.
Here is where I ...
0
votes
0answers
34 views
How to avoid StackOverflowError when adding a column to the Cplex using Java
I am using column generation, but sometimes when I want to add a new column it results in
java.lang.StackOverflowError at ilog.concert.IloColumn$Link.install(IloColumn.java:134)
And when I click ...
0
votes
1answer
43 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 ...
0
votes
1answer
39 views
StackOverFlowException IntNode
first of all and before the Explanation of the issue, You should see this simple class to understand my issue:
class IntNode
{
public int value { get; set; }
public IntNode next { get; set; }
...
1
vote
1answer
55 views
Will this endless loop code cause stack-overflow?
I want to run a program continuously till the user stops it using control-C or closes the window. Will following loop cause memory stack overflow or will it be tail-optimized recursion?
(define (f)
...
1
vote
1answer
43 views
Rails: method_missing leads to StackOverflowError
When triggering a call to method_missing on a Rails server running in development mode, it dies with a StackOverflowError. This is a Rails5 on JRuby environment. We are not using multi-threading here.
...