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. A stack overflow occurs when too much memory is used on the call stack.
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
13 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
6 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 ...
-3
votes
1answer
61 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
49 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
41 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 ...
1
vote
1answer
53 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)
...
-5
votes
0answers
17 views
CODE FOR A C++ function that multiplies two dense matries [closed]
CODE FOR A C++ function that multiplies two dense matries ........and involves
void multiplyMatrices(double* firstMatrix, double* secondMatrix, double* result, int rowCountFirst, int ...
0
votes
0answers
25 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 ...
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.
...
0
votes
2answers
40 views
Any advice on how to fix this Stack Overflow error? Java
While developing a simple auto generating game of war in my free time, I ran into a "StackOverFlow" error.
Here is my Deck class where the error occurs:
It occurs in my compare() method. Any insight ...
0
votes
0answers
25 views
Diagnosing IronPython StackOverflowException
I have a program that essentially reads a temp sensor and writes the readings to a file in an infinite loop (i.e. keep running until I crash/exit the program). Worked great on first machine - Iron ...
-1
votes
2answers
53 views
Stack overflow for my code on Visual Studio
I have been writing solution to a problem on UVa Online Judge, and when testing my code on Visual Studio it gives the
Unhandled exception at 0x01228249 in Light raods.exe: 0xC00000FD: Stack ...
6
votes
3answers
78 views
Stack Overflow when Disposing a Managed Resource
I have a simple wrapper for a Unity IoC container (a temporary use of Service Locator [anti-]Pattern to introduce DI to a legacy codebase), and since the IUnityContainer in Unity implements ...
0
votes
1answer
32 views
Android StackOverflow error on enabling MultiDex
I'm getting the following exception after enabling MultiDex. My custom Application class is as follows.
public class PFApplication extends SugarApp {
@Override
public void onCreate() {
...
3
votes
2answers
97 views
StackOverflow error while filling int[2000][2000] with a logic
I need to fill a int[2000][2000] matrix with some logic.
My code for filling array:
// n: (1 to 2000)
for(int i=0; i<n; i++){
for(int j=0; j<n; j++){
uniMatrix[i][j] = (((calc(i * ...
0
votes
1answer
21 views
Infinite recursion (Stackoverflow) with JPA and Biderectional ManyToMany Relantionship
I have a Spring Boot 1.3.5-RELEASE application which is using JPAto Relate my USERS to the ROLES with a Bi-directional ManyToMany relationship.
User
@Table(name = "Users")
@Entity
public class ...
0
votes
1answer
35 views
Scala StackOverflowError when getting value from Map
After some refactoring we suddenly see this happening at runtime:
java.lang.StackOverflowError: null
at scala.collection.MapLike$MappedValues.get(MapLike.scala:249)
at scala.collection.MapLike$...
-3
votes
0answers
25 views
Java error Exception in thread “main” java.lang.StackOverflowError for generic list implementation [duplicate]
I am trying to make an always sorted from smallest-to-largest, generic, singly linked list and here is my code:
public class Node<T extends Comparable<T>> {
private Node<T> ...
3
votes
1answer
62 views
StackOverflowException using Linq(Kit) for nested data
I'm trying to build a nested query using Linq/LinqKit. In theory this seems to be easy. But I am stuck with the practical part.
In my database I have a table which has a self-reference to its parent. ...
0
votes
0answers
31 views
How to increase the devices stack size in Android?
Morning, I'm using Android Studio 2.2 and a Galaxy TAB A 2016.
I have a method that calculates the FFT of a digital signal. There are a lot of recursive calls and the Memory runs out really quick. ...
0
votes
1answer
76 views
Why doesn't this cause stackoverflow?
In 8.hs I define
digitProduct [] = 1
digitProduct (c:rest) = (read [c] :: Int) * digitProduct rest
Then inside ghci, I run
digitProduct $ take 10000 $ repeat '9'
And it produces a result:
-...
0
votes
0answers
39 views
Buffer overflow using environment variable (Linux/GDB)
My ow my I spent almost two days finding a solution for the following ->
A binary is run with setuid privileges and the trick is to get a shell using shellcode placed in an environment variable.
I ...
0
votes
2answers
59 views
Java Word Ladder Program output Stack Overflow Error
I have to write the code in java for a word ladder program. The instructions are as follows:
Write a program using recursion to find the word ladder given a
start word and an end word, or ...
0
votes
1answer
29 views
Lisp Stack overflow recursive function
I am creating a heuristic function and it returns what it is supposed to but also there is a stack overflow problem and I can't understand where is the problem. Here is the code of the functions i ...
-2
votes
0answers
31 views
Stack Overflow Attack Return Address Strange Behavior
I'm working on a basic implementation of a stack over flow attack. The idea is to have a text file scanned onto the program's stack, which then overwrites the return address, causing the program to ...
-1
votes
0answers
26 views
Buffer overflow exploit jump to function with arguments intact [C]
int a(char *string){
---define some string here
val= strcmp (validString, string) == 0;
return val? 1 : 0;
}
int b(int a) {
do some stuff here
}
void main(int argc, char *...
0
votes
0answers
41 views
Stack overflow exploit, calling system
I am working on a class assignment to exploit the stack overflow vulnerability.
In this particular scenario, ASLR is turned off but code can not run on stack.
Therefore I came up with the following ...
-1
votes
0answers
20 views
Stack overflow failed because of stack size
#include <stdio.h>
// 23byte shellcode from http://shell-storm.org/shellcode/files/shellcode-827.php
char sc[] = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69"
"\x6e\x89\xe3\x50\x53\...
5
votes
2answers
77 views
Fatal Python error: Cannot recover from stack overflow. During Flood Fill
I've come to a dead end, and after excessive (and unsuccessful) Googling, I need help.
I'm building a simple PyQt4 Widget where it lies out a grid of 60x80 squares, each initialized to None. If the ...
-1
votes
0answers
38 views
I found a JavaScript stack-based overflow, how can I execute shellcode?
I am testing this vulnerability on my PS4, I know a segmentation-fault occurs. I want to try to execute code before this occurs. To be honest, I have little idea of what I'm doing. All I know is: ...
1
vote
1answer
42 views
I got a Stack Overflow Error here, but I don't know why
I have a binary search tree and want to find the node with the specified value. This is my code for this, but I get a Stack Overflow Error. I hope, someone can tell me why.
My code:
public TreeNode ...
1
vote
0answers
32 views
How does StackExchange solve having a single login for all its domains/sites?
If I've previously registered for multiple StackExchange sites and I'm logged out of all of them and then log into say StackOverflow and then open a tab and go to say SuperUser I find that I'm logged ...
2
votes
1answer
70 views
Stack space overflow error in Haskell with a very small stack size
The Haskell program
main=main>>main
fails with
2mem: Stack space overflow: current size 33624 bytes.
2mem: Use `+RTS -Ksize -RTS' to increase it.
33k seems quite small. The OS (via top) is ...
1
vote
0answers
37 views
Bypass StackGuard protection in order to have buffer overflow without altering the canaries and get root access
Hello eveyone I am new to cyber security student and i'm trying to solve an exploit problem. So, we are having the following C program which is compiled with StackGuard and we have to gain root access....
-1
votes
0answers
50 views
IE11 Out of Stack Space - Aurelia
I have an Aurelia application that is failing to load in IE11 but is fine on Chrome and Firefox. The error I receive is:
The first code snippet is the line that is referenced in the stack trace ...
-1
votes
0answers
29 views
Avoiding stack overflow in hetero recursion type-safely
By "hetero[geneous]" i mean a mutual recursion with varying return types.
Notation
Little explanation to the pseudo-code that i use:
comment : -- blabla
type annotation : value : Type
function ...
-1
votes
1answer
30 views
StackOverflowError in a recursive method
The program below should sum up all even numbers from n to 0 (negative) or from 0 to n (positive).
I should not use other methods or *; *=
The problem is that the program does not stop after zaehler(...
1
vote
3answers
29 views
How do I get the correct output for my clock created with java?
My Teacher has given me this assignment. She gave us a ClockTester.java main program and we have to create a public class that declares the objects and methods to use in the Clock Tester. Below is the ...
0
votes
0answers
22 views
Stack Exchange Search API
I want to use search feature of StackExchange for my application.
I have observed that using "/search" API I can specify the string to be searched only as part of title and not as part of the body.
...
-1
votes
1answer
29 views
StackOverFlowException: Value is either too small or too large for int 32 in MS TextBox
I have created a simple application with MS TextBox control and DataBinding has been done to the TextBox. If I try to enter the double value into the TextBox, then I got
“StackOverFlowException: ...
0
votes
0answers
26 views
StackOverflowException Deserialize to Object Recursion Error
On my development machine I do not get an error, I deployed to another machine with remote debugged and it throws a StackOverflowException error when Deserializing the xml to a class object. I am ...
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);
...
0
votes
1answer
23 views
An unhandled exception of type 'System.StackOverflowException' occurred in App_Web_1wvcoe1q.dll
I have an ASP.Net MVC application. Recently it worked correctly and now when I run it and enter login credentials it hangs long time and says
An unhandled exception of type 'System....
0
votes
1answer
20 views
$esp register not found
I am learning debugging with gdb and registers, but I am stuck in one point. As an instruction, I should print
print $esp
result: $1 = -9008
but I was expecting such result:
$2 = (void *) ...
0
votes
1answer
22 views
Java StackOverflowException in GUI
so I have this little snake game and I get StackOverflow error which looks like so:
Exception in thread "main" java.lang.StackOverflowError
at java.awt.Component.setBackground(Component.java:1835)
...
0
votes
1answer
26 views
Jongo with Play Framework: StackOverflowError when trying to insert
I have yet another problem. I am trying to use the Play Framework 2.5 together with MongoDB using the Jongo plugin for Play.
First of all, Im not quite sure if I've implemented it correctly. Here is ...
0
votes
1answer
65 views
Scala partial tail recursion
Because I am defining an interpreter with a lot of variables, I am writing this:
type Context = Map[String, Int]
abstract class Expr
case class Let(varname: String, varvalue: Expr, body: Expr) ...
6
votes
2answers
192 views
An unhandled exception of type 'System.StackOverflowException' occurred in VimService55.XmlSerializers.dll
I am working on an asp.net mvc-5 web application and i am using ap.net version 4.5.
Inside my web application I am executing some power-shell scripts to get some hardware info about some servers and ...
1
vote
1answer
80 views
Spring Data Repository StackOverflow
guys! Found some strange behavoir when working with Spring Data Repositories.
I wrote these classes and interfaces:
@Transactional(readOnly = true)
public interface UserRepository extends Repository&...