Tagged Questions
0
votes
1answer
64 views
How to use “trace” when dealing with an “out of memory” exception/stackoverflow in Haskell?
Context: I'm writing an interpreter for a language which is basically a small subset of Haskell.
Haskell's lazy evaluation is being a poo and refusing to evaluate this trace command due to (I suspect)...
4
votes
3answers
129 views
How can I get a complete, untrucated stack trace in OCaml after a stack overflow?
OCaml stack traces for stack overflows are truncated; for example, the following program produces the stack trace shown below:
let rec f0 () = 1 + f1 ()
and f1 () = 1 + f2 ()
and f2 () = 1 + ...
3
votes
1answer
210 views
How to debug a stack overflow exception?
I am working on a game, and everything was fine, until I added some features. I worked for about one month on this features, and unfortunately I wasn't wise enough to test smaller parts of the code, ...
1
vote
0answers
77 views
libasan giving stack-buffer-overflow inside time_t time (time_t *__timer) -> sys/time.h
I am facing a problem while using libasan to improve some code I have written.
Situation:
-- compile code with -fsanitize=address -lasan
-- run the code.
Sample below:
#include <iostream>
#...
0
votes
1answer
55 views
Stack content for g++4.8
I have written this simple piece of code for testing buffer overflow:
#include <stdio.h>
#include <string.h>
using namespace std;
int f(int x, int y, char *s){
char buf[4];
strcpy(...
0
votes
0answers
34 views
Disabling Debug/Close when on StackOverflow exception
I've been trying to avoid the Debug/Close dialog when I get a stack overflow exception in my application (I need my application to shut down without user interference).
Using SetErrorMode(...
0
votes
2answers
299 views
StackOverflow in android choreographer - weird drawable error
I don't know how to debug or solve this problem.
I have a touch handler for a ribbon that changes an image using a TransitionDrawable. If I move the finger very fast for a -moderate long- while, the ...
0
votes
1answer
89 views
StackOverflowException after returning private variable, only while stepping through code
I'm getting a StackOverflowException in seemingly innocent code:
private void OnSelectedModelChanged(object sender, EventArgs eventArgs)
{
LoadNoticeDetails(); // Line #1
}
private void ...
3
votes
1answer
417 views
How to set a gdb watchpoint to a value stored in register?
I'm trying to detect stack overflow in some function, and want to set a watchpoint to a memory pointed by the RSP register. I can't just set a watchpoint to a certain address as the function could be ...
1
vote
2answers
82 views
Debugging stack overflow in C?
I have this sample program which when compiled with fstack-protector-all gives a stack smashing.
#include <stdio.h>
#include <stdint.h>
int func(int* value)
{
uint8_t port = 1;
*...
1
vote
1answer
451 views
Debugging neovim, buffer overflow detected by OS X 10.9 libc, in need of a better way to debug it
First of all a bit of context: I'm trying to debug an issue that's happening with neovim, I'm not sure if this also happens with plain vim, but it's not all that relevant.
Even though the reporter ...
2
votes
1answer
135 views
Debugging undebuggable application for memory corruption
This is a bad situation: I have a large C++ application on Windows which is having a memory corruption.
Basically I dumped the content of a float variable and found the ASCII code of "hell" from a ...
8
votes
3answers
700 views
Debugging a stack overflow in haskell
I'm new to Haskell and functional programming and I have a program which works but overflows the stack after a few seconds. My question is, what should I do from here? How can I get at least a hint of ...
0
votes
2answers
98 views
Why this stack smashing?
I got the following code(part of a log function):
/* set to 32 on purpose */
#define MAX_LOG_MSG_SZ 32
void log(const char *fmt, ...) {
....
char msg[MAX_LOG_MSG_SZ] = {0};
int nb_bytes ...
0
votes
0answers
861 views
“Error: Error #1023: Stack overflow occurred.” without a break or object reference
My console window gets a set of about 15 copies of this line:
Error: Error #1023: Stack overflow occurred.
Error: Error #1023: Stack overflow occurred.
Error: Error #1023: Stack overflow occurred.
...
2
votes
2answers
362 views
Stackoverflow error in Reversi game written in Haskell
this code is causing a stack overflow error - can any of you people see anything Ive missed that could be causing it? Ive gone through all the functions and set them to just return arbitrary values ...
0
votes
0answers
738 views
Can't get Windbg to load symbols
I'll admit to being completely new to Windbg so hopefully this is a noobish question that I couldn't find the answer for on the internet.
Anyways, here is my symbol path: SRV*c:\symbols*http://msdl....
2
votes
0answers
172 views
Eclipse + Python: Stack overflow during debug - not run
I have the following Python code in Eclipse which causes stack overflow when debugging:
v = ogr.Feature(layer.GetLayerDefn())
The method calls are part of the GDAL/OGR library and the Error message ...
2
votes
3answers
6k views
How to debug a stack overflow in C in IAR Workbench
I'm working on a C project using IAR Embedded Workbench IDE and the TI CC2540 Bluetooth Low Energy 8051 chip.
I seem to be getting tons of XData stack and Idata stack overflows while working on the ...
7
votes
4answers
6k views
how to expand size of Java stack trace to see bottom of stack? (triggering a stack overflow)
In Java, is there any way to view the complete, untruncated stack trace (e.g. by increasing the number of frames recorded), or otherwise get at the bottom of a stack trace? Normally the stack trace ...
9
votes
3answers
37k views
Windows service / A new guard page for the stack cannot be created
I have a windows service that does some intensive work every one minute (actually it is starting a new thread each time in which it syncs to different systems over http). The problem is, that after a ...
2
votes
1answer
626 views
OpenCL stackoverflow. How to solve it?
I'm having a problem when I try to run the reduction program from the OpenCL in Action's sources.
Im using Visual Studio 2008. This is the error:
Unhandled exception in 0x013526a7 in Reduction....
0
votes
1answer
240 views
Find StackOverflow generating code in C# using VS2010
I have solution with few projects for calculation proposes. Code after 20 minutes of work crashing by StackOverflowException. How to find problem? I don't have any recursion functions in code or when ...
3
votes
2answers
1k views
How can I debug this StackOverflowException in my WinForm application?
I have a winform application. Every few seconds I check some log files, read in any new data and insert any new data into a DB.
When I run the application for around an hour 1/2, I get a ...
2
votes
3answers
769 views
How to detect the one function causing a stack overflow quickly in Visual C++?
I have a huge C++ codebase. On a certain set of data there's a stack overflow. If I run the program under Visual Studio debugger I get a call stack 30 unfamiliar functions deep - one (or more) of ...
1
vote
3answers
2k views
Troubleshooting SQL Server Stack Overflow error
How can I effectively troubleshoot this error?
The query processor ran out of stack space during query optimization.
Please simplify the query.
Msg 8621, Level 17, State 2
I've tried to ...
1
vote
1answer
74 views
How can I debug a stack overflow in Ruby 1.9.2?
I have some Ruby code sits on top of Chipmunk and OpenGL C libraries. Something in my program is causing a stack overflow at the C or Ruby level. I'm looking for some strategies to figure out where ...
39
votes
5answers
36k views
How to debug: w3wp.exe process was terminated due to a stack overflow (works on one machine but not another)
The problem
I have an ASP.NET 4.0 application that crashes with a stack overflow on one computer, but not another. It runs fine on my development environment. When I move the site to the production ...
0
votes
2answers
232 views
Debug problem occurs sometimes in Silverlight when in Chrome
I am using a dedicated test SL web application that hosts SL object I am debugging.
I am debugging using basic F5 and use browser Google Chrome. Sometimes a bug happens, how I reproduce it.
I was ...
1
vote
3answers
2k views
w3p.exe terminated due to stack overflow - how to track down the issue?
we are getting a stack overflow in production ~ 2-4 times / day
We cannot reproduce this is in dev environment, nad given this is a web app with probably ~100 concurrent users at any one time, I'm ...
1
vote
2answers
915 views
Help debug a stackoverflow - next steps with repeating stack?
Folks,
I've got a stack overflow in my .net 4.0 app. using WinDbg I've found the following chunk of stack-info repeated 110 times (with different memory addresses of course), which leads me to ...
1
vote
2answers
1k views
Fastest way to break in WinDbg for specific exception? .net 4.0 app
Folks,
Debugging a .net 4.0 app using WinDbg (I'm a beginner to WinDbg). I'm trying to break when I hit a stack overflow:
(NTSTATUS) 0xc00000fd – A new guard page for the stack cannot be created
...
2
votes
3answers
323 views
C# binary search tree - stack overflow - debug
I am a newbie learning C# after C++. VS2010.
Trying to debug my code, I come across weird empty lines in the "locals" frame.
The debugger just quits after a few seconds of me staring at these empty ...
1
vote
3answers
131 views
How to debug a stackoverflow problem on targets
I want to know how do we proceed to debug a STACKOVERFLOW issue on targets .
I mean what are the steps we should follow to reach a conclusion.
0
votes
2answers
665 views
IIS 6.0 hangs when serving a web-service
I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio.
Once I deploy on the ...
5
votes
12answers
8k views
Can you give an example of stack overflow in C++?
Can you give an example of stack overflow in C++? Other than the recursive case:
void foo() { foo(); }
5
votes
5answers
2k views
debug stack overflow in windows?
So I'm trying to debug this strange problem where a process ends without calling some destructors...
In the VS (2005) debugger, I hit 'Break all' and look around in the call stacks of the threads of ...
6
votes
5answers
2k views
How can I guarantee catching a EXCEPTION_STACK_OVERFLOW structured exception in C++ under Visual Studio 2005?
Background
I have an application with a Poof-Crash[1]. I'm fairly certain it is due to a blown stack.
The application is Multi-Threaded.
I am compiling with "Enable C++ Exceptions: Yes With SEH ...