4,248
questions
-2
votes
0
answers
20
views
Seems to me that we had a dark mode display on this StackOverFlow site not long ago. I am unable to find that now [closed]
It seems to me that this stackoverFlow site has a new UI. Could it be that the dark mode option is no longer available?
It seems to me that the dark mode setting was part of the user profile. I am ...
1
vote
2
answers
34
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
96
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
votes
0
answers
68
views
Python crashing by "Memory Error: Stack overflow" while autotyping a long text
I'm trying to use Python to make a an "autotyper" where you give a text to the program and it types it all for you when you press NumLock:
# Modules:
import keyboard
from pynput.keyboard ...
1
vote
1
answer
40
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 ...
-2
votes
0
answers
13
views
Why does StackOverflow still persist in using this archaic layout
I have a wide screen monitor but when I read articles that contain code snippets half the content is hidden and I have to scroll the content to read it, yet I have a large amount of blank space at the ...
0
votes
3
answers
78
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
48
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 ...
-1
votes
0
answers
53
views
What is causing overflow error with caculating volume and surface area of a sphere? [duplicate]
package Critical_Thinking;
public abstract class Shape {
public abstract double surface_area();
public abstract double volume();
public static void main(String[] args) {
...
0
votes
0
answers
37
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 ...
0
votes
1
answer
49
views
cannot launch shell (overflow attack example)?
I am trying this example from the all time classic Smashing The Stack For Fun And Profit
https://www.cs.cornell.edu/courses/cs513/2005fa/paper.alpeh1.stacksmashing.html
testsc.c
char shellcode[] =
...
2
votes
3
answers
141
views
How does nested vectors look like in memory?
So I'm considering making an global nested std::vector (vector <vector <data>> V) initially empty and later during the program, adding data to this nested vector. I'm concerned of adding ...
1
vote
0
answers
18
views
why i am getting 100% accuracy of all the model for both training and testing of all the models
I am getting 100% accuracy for both the training and testing sets across multiple models—Decision Tree, Random Forest, SVM, KNN, and Logistic Regression. I am trying to predict phishing websites, ...
1
vote
1
answer
27
views
Spring Security : stackoverflow error after submit login form to ".loginProcessingUrl("/perform_login")"
intelliJ debug log is below.
enter image description here
and stackoverflow error log is
2024-07-26T14:01:13.600+09:00 DEBUG 17896 --- [nio-8880-exec-9] o.s.security.web.FilterChainProxy : ...
1
vote
1
answer
89
views
Local variable allocation crashes the stack in embedded C on cortexm4 and operating system
Details: embedded C, cortex M4 with operating system (RTX Kernel), compiled with ARM Compiler V5.06 update6 and Microlib.
Inside a periodic task there are some functons call, one is a debug function:
/...
0
votes
0
answers
20
views
Am running into a stack overflow error with OpenWindow on C# using SpashKit
The error I am getting:
Exception has occurred: CLR/System.StackOverflowException
An unhandled exception of type 'System.StackOverflowException' occurred in SplashKitSDK.dll
My code: (Most is // to ...
0
votes
0
answers
12
views
Fixing PHP Extension Errors: Unable to Load mysqli and pdo_mysql on Ubuntu
I have to setup php with codeigniter without xampp server in ubunto but I am facing a lot of problem or it is not setup sometimes it starts giving warning in php version and sometimes error is shown ...
0
votes
1
answer
102
views
Is out-of-scope local variables' memory reused?
struct Big { char data[5000]; };
extern int some_input;
int main() {
switch (some_input) {
case 0: {
struct Big big;
big.data[0] = 0; // just try to do something
...
-2
votes
1
answer
74
views
Morris traversal leads to exception on LeetCode: address sanitizer , stack overflow [closed]
I have implemented a Morris traversal to solve LeetCode problem 98. Validate Binary Search Tree:
Given the root of a binary tree, determine if it is a valid binary search tree (BST).
My code
/**
* ...
0
votes
1
answer
115
views
Apple Login with Next_Auth : error=OAuthCallback
i'm trying to login with apple using next auth its authanticate user but redirect to /?error=OAuthCallback
this is the url= https://appleid.apple.com/auth/authorize?client_id=com.wheeleasy.org&...
0
votes
0
answers
31
views
Runtime Exception Can not load requested doc: org.apache.xml.utils.WrappedRuntimeException. On loading document inside the xslt
I am handling the internationalisation in XSLT to send email to the customer in different languages. For that I am using the document() method to load the xml in the variable and try to use it ...
0
votes
1
answer
46
views
Why a stack overflow from my Scala implicit conversion?
I have an issue with my code where I'm getting a stack overflow exception when doing an implicit conversion from Calendar to PublicationSchedule. I've cut down the code and can reproduce in Scastie (...
1
vote
0
answers
81
views
Infinite loop in Spring Boot when entering incorrect credentials for Active Directory authentication
I'm working on a Spring Boot application with Spring Security and Active Directory for authentication and I've set up a virtual machine with Windows Server 2019 to connect to my Active Directory. The ...
1
vote
1
answer
73
views
"Process finished with exit code -1073740791 (0xC0000409)" when use vector of future
Background
As a freshmen to binance-websocket api and std::future using. I write a program to test the time difference between localhost and the binance server, and to get the net delay.
I push my ...
0
votes
2
answers
40
views
Stackoverflow when attempting arithmetic between classes
I have a simple class that contains basic skill attributes for a game. Each player has this skills class attached. I'd like to be able to do basic arithmetic, e.g. playerSkills = playerSkills + 2, and ...
1
vote
1
answer
80
views
Box2D: Encountered C6262 Warning "Function uses '103820' bytes of stack. Consider moving some data to heap." on main()
I encountered this warning
Warning C6262: "Function uses '103820' bytes of stack. Consider
moving some data to heap."
while I was trying out Box2D version 2.4.1 on Visual Studio 2022.
...
0
votes
2
answers
160
views
how to stop recursion? - java stack overflow problem
I am a student and I've been given an assignment to crack a password(n characters long, n is given in the method, all a-z). the tricky part:
no loops at all- all recursion
the only way to check if ...
1
vote
2
answers
75
views
Collapsing many binary columns into a single column in pyspark
In my pyspark job, I have a huge data framework with more than 6,000 columns in the following format:
id_ a1 a2 a3 a4 a5 .... a6250
u1827s True False True False False .... ...
0
votes
1
answer
99
views
Next.js build error: Module not found: Can't resolve 'fs' when using Edgedb,edgeql-js
I'm encountering a build error in my Next.js application when trying to use Edgedb. The error message I'm receiving is:
Build Error
Failed to compile Next.js (14.2.3)
./node_modules/edgedb/dist/...
0
votes
0
answers
17
views
Modifying Sublime Build so that it can modify/restart Docker services
I am working on a code base that involves Docker. I start Docker by running docker compose up. I make changes to Python files. I enter the Docker container using docker exec command with the relevant ...
3
votes
0
answers
60
views
Buffer Overflow Exploit to Redirect Execution to Another Function Causes Segmentation Fault
I am working on a security engineering assignment where I need to create a buffer overflow exploit to change the execution flow of a C program. The goal is to overwrite the return address and redirect ...
0
votes
1
answer
65
views
How does the CPU handle stack overflow for a particular task in an OS
I know what i'm about to ask depends on the type of platform and the OS itself.
I am having difficulties understanding how an OS manages the different stack spaces for different tasks in general.
Let'...
0
votes
1
answer
58
views
Shellcode stub got exited right after executed in Buffer Overflow Exploitation
I am currently playing around with some exploitation techniques in 64-bit Intel executable. My program was compiled with canary protection disabled (-fno-stack-protector), buffer overflow error ...
0
votes
0
answers
72
views
E/flutter (21274): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Stack Overflow
When ever i run the aync function in my project it gaves me the error.
i first call the Future async function in the widget function and then call it in the widget. i an facing error still in this ...
0
votes
0
answers
37
views
How to fix error: java.lang.StackOverflowError in IntelliJ installing a maven project?
I have cloned a project since github to my local. I'm trying to compile. Firstly, I do "mvn clean" and everything is OK. Then, I do "mvn install" and I get this error:
[ERROR] ...
2
votes
0
answers
48
views
AVRoutePickerView() Bug
On my end showing same option "iPhone" and "iPhone". While this should be "iPhone" and "Speaker". Reply please, if found solution for this. This comes only when ...
0
votes
1
answer
97
views
Getting stackoverlow error while executing a recursive function
I'm trying to remove consecutive duplicate numbers in a Linked List using recursion. My code is working fine for smaller size of Linked Lists but getting Stack Overflow error for bigger size Linked ...
1
vote
0
answers
40
views
Inside of the devilbox container composer installation automat
Inside of the devilbox container When Composer is installing, it asks a yes/no prompt. How can I automate this process to choose yes ?
cakephp/plugin-installer contains a Composer plugin which is ...
2
votes
1
answer
67
views
Stack overflow with std::bitset
I have an example of some code that always causes a stack overflow on my machine. Oddly enough, this seems to work fine on Compiler Explorer. I am using Debian 12.
#include <bitset>
#include <...
0
votes
0
answers
32
views
Memory overflow when running graphic code in C++
#include <bits/stdc++.h>
#include <graphics.h>
#define E exp(1)
#define Pi M_PI
using namespace std;
struct tNode{
string data;
tNode *pLeft, *pRight;
};
tNode *root;
tNode *...
0
votes
3
answers
145
views
How to recover midstream from a stack buffer overrun
This question is out of my expertise. How do you recover, midstream, from a stack overflow overrun in "C"?
Where you are using a character variable declared as char string[12], and you move ...
-1
votes
1
answer
53
views
How to report a StackOverflowError without triggering another StackOverflowError?
I have the following situation:
I have code that is prone to StackOverflowErrors. This will have to be rewritten eventually, but for now, it is important that it is reporting the condition reliably ...
0
votes
1
answer
67
views
Java Implementations to Print a String n Times
Why do the first two Java implementations to print the string 'n' times result in a stack overflow error when 'n' is large (e.g., 10^4), whereas the third implementation does not encounter this issue?
...
0
votes
0
answers
202
views
Stack overflow - save your work and restart RAD Studio 12
I get this error very often when I open some of my projects.
Then I simply close the IDE and open it again and then it's all good. I'm on Delphi 12.1 and I never had this issue on Delphi 12.0
I also ...
0
votes
1
answer
69
views
Cannot resolve stackoverflow error in java
I mainly do python because its in my school syllabus, but I enjoy java(I am still fairly new to it). I was trying to make a quick sort program(recursive) in java but a typical stackoverflow occurs.I'...
2
votes
2
answers
97
views
If the stack grows downwards, how does it not overlap with other stuff in the address space?
I realized I never really thought of this.
If I made a large enough recursive call chain, wouldn't the stack eventually grow down enough that it will overlap with other things, like shared libraries (...
0
votes
1
answer
93
views
Stack size in relation to virtual memory
In our Operating Systems class we mentioned virtual memory as a mechanism that abstracts physical memory to a process, and that it looks something like this (per process):
The stack grows down the ...
0
votes
0
answers
31
views
StackOverflowError null springboot
I want to build a page that makes a request to the backend to get some data, but i have a problem fetching those results. I will attach the error and all the code that is involved:
java.lang....
1
vote
1
answer
905
views
Only input tensors may be passed as positional arguments
import matplotlib.pyplot as plt
import argparse
import pickle
import numpy
as np
from tensorflow import keras
from keras.applications.xception import Xception
from keras.preprocessing.sequence import ...
-1
votes
1
answer
79
views
How to predict a stack overflow? How and which memory is stored in stack? [closed]
I implemented a floodfill recursive function to check if a player will be able to reach the map exit or it'll be stacked surrounded by walls. So a simple map would look like this:
111111111
100010C01
...