4,261 questions
-2
votes
0
answers
12
views
How can a new user post an answer to earn reputation if they need reputation points to answer? [migrated]
I am new here, it's literally my first day here as a registered user. I struggled with one error for 2 week, and I found the same error on stackoverflow and tried suggestions from the answers, some of ...
-4
votes
0
answers
110
views
How to overwite the GOT table from a stack buffer overflow?
I'm working on an assignment where I need to overwrite the GOT table with the system call in order to execute a payload. The initial access is done via a stack buffer overflow. Here is the code of the ...
4
votes
1
answer
84
views
I expect my User Class to have an internal recursion error using accessors but it didn't. Why?
Before we begin, I'm running on a webpack-dev-server, and I'm building a to do list app. My goal is to improve my understanding of how accessors behave so that I can standardizing my writing style ...
2
votes
2
answers
155
views
java regex goes stack overflow on a long text : ^\d{4,5}+(,\d{4,5}+)*$ [duplicate]
I have this ~20000 characters string and I want to make sure it is only composed of 4 or 5 long numbers, comma separated.
ex : 12345,12345,1234,12345,1234,1234
I use the expression : ^\d{4,5}+(,\d{4,5}...
1
vote
0
answers
105
views
Flutter stack overflow error on using python script
I was trying to integrate a basic network scanner using python into flutter. The scanner function returns a List in the format List[List, Int]. To call this I use MainActivity.kt like this
package com....
0
votes
0
answers
79
views
How to create struct holding big array? [duplicate]
I need a structure that hold pretty big array.
Something like that:
struct Big {
_data: [usize; 1_000_000_000],
}
impl Big {
#[inline(always)]
fn new() -> Self {
Self {
...
0
votes
1
answer
161
views
How much stack space is required for saving the function context in Go 1.24?
How much stack space is required for saving the function context in Go 1.24?
I wrote an go demo like this:
func getStackUsage() {
var recurse func(int)
recurse = func(n int) {
tmp := n
...
1
vote
1
answer
48
views
Why eta-reduced of genericShow-based show definition overflows stack for recursive types
Consider the following recursive data type:
data Chain a = End | Link a (Chain a)
By deriving a Generic instance for this recursive type, show can be defined in terms of genericShow:
derive instance ...
0
votes
0
answers
116
views
Does a local constexpr variable occupy the stack space? [duplicate]
constexpr int f(int idx) {
constexpr auto arr = std::array<int, 1'000'000'000>{}; // stack overflow?
return arr[idx];
}
int main() {
return f(1024);
}
Does arr occupy the stack ...
0
votes
0
answers
55
views
Is there a way to make a suspension type that is stack safe in a strict language?
Suppose I were trying to build lazy datastructures in a lazy language (Im currently using Typescript, but the specific language matters little).
The obvious implementation is
class Lazy<T> {
...
-3
votes
2
answers
244
views
Why does my recursive pow(x, n) implementation cause a stack overflow for large n? [duplicate]
I'm trying to implement a recursive power function in C++, but it fails with large n due to stack overflow. Here's the code:
class Solution {
public:
double myPow(double x, int n) {
long ...
1
vote
1
answer
210
views
Unsolvable Stack Overflow Error in Java Spring Boot
I have this issue where, upon sending ANY request from my frontend web app (Next.js) to my backend application in Spring Boot, I get a Stack Overflow Error, and not only that, but my application ...
17
votes
2
answers
2k
views
Is it safe to catch stack overflows? Can it leave objects in messy/intermediate states?
I've been reviewing ways to kill threads in Java, and the overwhelming conclusion is that it is never safe to stop code at arbitrary points - doing so may leave resources in messy intermediate states. ...
4
votes
1
answer
87
views
If one thread uses a lot of stack frames, could that cause stack overflow on an "innocent" thread?
For context, I have a situation where less-than-trusted user code needs to run on a shared system. The code is subject to various static analysis passes and quality assurances, and some ways it can ...
1
vote
2
answers
145
views
Multidimensional array stack overflow in Delphi 11.3
Suddenly we faced the following problem that the allocation of the multidimensional array consumes more memory than it is required for the array itself.
Minimal code to reproduce:
type
TConfig1 = ...
16
votes
1
answer
164
views
How to implement a destructor for an n-ary graph node that won't cause a stack overflow?
I'm working on modernizing an older C++ code base that contains a simple graph structure. It originally looked like the following:
struct node_value_t {
...
};
struct dag_node {
std::vector<...
0
votes
1
answer
66
views
What is the appropriate value of the jvm -Xss parameter?
How does the -Xss play a key role in java program?
The size of the stack directly affects the program running.
As I know -Xss decides the thread stack size of jvm, includ local variables, operand ...
0
votes
1
answer
47
views
Assistance With Understanding Stack Over Flow Errors (Julia - GLMakie Package)
Below is my code:
using GLMakie
#Creation of constants
a = 2
b = 5
c = 7
d = 9
# Creaiton of observables
RadTheta2_2 = Observable(.523)
RadTheta3_12 = Observable(-1.288)
RadTheta4_12 = Observable(-2....
1
vote
1
answer
68
views
A lambda continuation with a generic type does not produce a stack overflow, but when I specify the type it results in a stack overflow. Why?
In a program I'm writing, I'm faced with a recursive type that I want to go through recursively (it seems necessary). Out of curiosity, I wanted to try and write a tail recursive version of my code, ...
0
votes
1
answer
66
views
Stack Overflow on Quicksort with a first element pivot in Java
For this assignment I'm supposed to test my quicksort class using a variety of different pivots and a variety of ArrayLists in different arrangements. The class works fine with a random pivot, or a ...
0
votes
2
answers
143
views
Getting an infinite recursion error in java
I cannot find the reason why my code doesn't work. It keeps saying that there's a infinite recursion error. I'm basically trying to solve a maze recursively.
The start and end of the maze are ...
2
votes
0
answers
185
views
Why is there a StackOverflowException with ConfigureAwait(false) in an ASP.NET app but not with ConfigureAwait(true)?
I have an ASP.NET app running on .NET 4.8. I am getting a StackOverflowException. I have an action method that calls another method CallBackMethod where using ConfigureAwait(false) in a statement that ...
0
votes
0
answers
175
views
Why does a Pyside6 GUI crash after making multiple calls to matplotlib flush_events() in quick succession?
I would be very grateful for your help in explaining why this Pyside6 GUI crashes when making multiple calls to matplotlib's flush_events() method in quick succession. Minimal reproduceable code is ...
0
votes
1
answer
122
views
Stack Overflow with BFS LISP
I have created a search function following the BFS algorithm but found a problem, it works fine on other problem domains but on this problem domain I am only getting stack overflows.
This specific ...
1
vote
1
answer
89
views
Error java.lang.StackOverflowError occur if I don't explicitly set -XX:ThreadStackSize
Error java.lang.StackOverflowError occur if I don't explicitly set -XX:ThreadStackSize.
As I do some research, the default value of ThreadStackSize is 1024K without explicitly set it. The confusing ...
1
vote
2
answers
196
views
Getting a stack overflow with too many concat
When I create a query on a DbSet with too many Concat or Where clauses, I get a stack overflow error.
Essentially I have the problem where I have a list of thousands of AND clauses all connected with ...
0
votes
0
answers
64
views
How to prevent thread::Builder overflowing the stack
My application throws a stack overflow exception, so I added the stacker crate, and put debug statements in various places that print the amount of stack space remaining. This narrowed down the ...
1
vote
1
answer
79
views
Intermittent stack overflow error in a spring boot application
We are in the middle of a testing. On one specific setup, we see the following error:
Servlet.service() for servlet [dispatcherServlet] in context with path [/] threw exception [Handler dispatch ...
0
votes
0
answers
96
views
manually modifying stack pointer inside a kernel module aarch64
I am writing a kernel module in Linux, on aarch64 architecture, that has, as a global, a structure. I am working on a Pixel 8 device (shiba), with callyxos, AOSP (android open source project) kernel [...
0
votes
1
answer
111
views
Comparison of CPU usage in multi-threaded monolithic applications vs. microservices in Docker containers [closed]
Regarding the efficiency of CPU usage in Dockerized environments for monolithic applications compared to microservices-based designs. Specifically:
Would running multiple threads within a single ...
0
votes
0
answers
46
views
@SpringBootTest throws StackOverflowException
When setting environment for integration tests I get StackOverflowException:
14:58:19.614 [Test worker] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @...
1
vote
0
answers
66
views
Bug in JDK 9+ in Linux: StackOverflowError in Graphics
Our AWT-based Java app is giving a StackOverflowError on Ubuntu Linux JDKs 11 to 23 frequently (but thread-stochastically). See 3 example stack traces below. Suggestions or commiseration? We've ...
1
vote
0
answers
28
views
Stack over flow when saving the files in a loop the kernel dies i have settled sleep but didn't help that much
import os
import random
import time
import gc
import librosa
import soundfile as sf
import logging
import asyncio
from scipy.signal import fftconvolve
import nest_asyncio
nest_asyncio.apply() # ...
1
vote
1
answer
141
views
StackOverflowException on project startup in JetBrains Rider but not in Visual Studio 2022
I have a large .NET solution (~25 projects) that runs and debugs without any issues in Visual Studio 2022. Recently, I tried switching to JetBrains Rider (version 2024.3.2). However, when I attempt to ...
0
votes
1
answer
75
views
In rust, How to allocate a large vector to a linked list without stack overflow?
I am doing problem 234 from LeetCode. I have a function which takes as its input a linked list:
impl Solution {
pub fn is_palindrome(mut head: Option<Box<ListNode>>) -> bool {
And ...
1
vote
0
answers
134
views
Solving fractional partial differential equation with finite difference method
I am facing stack overflow error when I am trying to solve numerically the fractional nonlinear Schrödinger equation using finite difference method in python.
This nonlinear partial differential ...
0
votes
1
answer
54
views
F# debugger crashed due to StackOverflow inside `sprintf "%A"`
I have the following discriminated union type:
type Value =
| Float of float
| Int of int
| String of string
| Function of (ContextStack -> Value -> Value)
| Action of (unit -...
0
votes
1
answer
166
views
Proper way of parsing recursive enum with Nom
I want to parse recursive enum representing arithmetic expressions using Nom. I have the following code.
#[derive(Debug, PartialEq, Eq)]
enum ArithExp {
Const(i32),
Add(Rc<ArithExp>, Rc&...
-1
votes
1
answer
126
views
How do I fix stack overflow error in Golang?
I'm trying to learn Golang so I'm writing a "game".
The rooms in the game need to access each other for purposes of sending players to / from rooms. However, I am getting a stack overflow ...
0
votes
0
answers
55
views
Running into StackOverflowError when using retryWhen with WebFlux WebClient
I've attempted to create a webflux web client with built-in retry function for specific exceptions as for my use case, there are instances when the endpoint can be unavailable. With single failing ...
0
votes
0
answers
36
views
Stack Overflow Error (0xC0000409) in Python Drawing App with Pressure Sensitive Stylus [duplicate]
I'm developing a drawing app in Python, and everything works smoothly with mouse input. However, when I use a pressure-sensitive stylus, the application crashes after a short period with the following ...
0
votes
1
answer
231
views
Arduino ESP32 Guru Meditation Error / stack overflow
I have a Arduino script running for a few years now. Recently I wanted do some minor updates, but I've been running into problems ever since. Even when I run the older version (the version running ...
0
votes
3
answers
144
views
Circular dependency on TransactionManager Bean in Spring Batch
I'm working on a Spring Batch project and I have a StackOverflowError with this Bean.
@Bean
@Primary
public JtaTransactionManager transactionManager(UserTransaction userTransaction,
...
0
votes
1
answer
111
views
If I create a recursion with GoTo in LibreOffice Basic, will the stack overflow?
I'm working on developing a timer that performs some action every 30 ms. I want to do this using only LibreOffice Basic. I tried creating a recursion, but the stack overflowed. I also tried using ...
2
votes
2
answers
402
views
StackOverflowError when mocking static method with Mockito and JUnit
I'm practicing JUnit with Mockito, and trying to test a simple static method
class LessSimpleCalculatorImp implements LessSimpleCalculator {
@Override
public int power(int x, int y) {
...
2
votes
0
answers
102
views
Python recursion limits and functools.cache [duplicate]
sys.setrecursionlimit doesn't appear to affect functions declared using the @cache decorator:
from functools import cache
import sys
sys.setrecursionlimit(100000)
@cache
def f1(n):
if n == 1: ...
1
vote
1
answer
54
views
StackOverflowError when constucting a struct from another in Julia
I get a StackOverflowError when I try to build a struct object from another, previously existing one in which one of the parameters depends on the others.
I define a type like the following:
using ...
0
votes
3
answers
133
views
How to make data class copy with only properties initialized, to avoid StackOverflowError?
I have encountered a problem while trying to resolve problem with sensitive info in application logs — we have quite large data class object that at some time in processing flow we log. Problem is ...
-2
votes
1
answer
479
views
StackOverflow with Keycloak as login provider returns empty email address
In my Keycloak setup, StackOverflow is configured as one of the login providers. Recently, I noticed that new users are unable to register on my site via StackOverflow because the returned email is ...
0
votes
0
answers
94
views
Why does Eclipse throw a StackOverflowError every time it tries to validate my project?
When I select Project > Clean > [my_project], it gets about 40% through validation and consistently throws a StackOverflow error due to what appears to be infinite recursion after accessing a ...