Questions tagged [stack-trace]
A report of the active stack frames at a certain point in time during the execution of a program.
2,251
questions
0
votes
0
answers
16
views
How to keep stack trace in Node.JS async function
I have an async function that I call from my router handlers:
export const makeHttpRequest = (...) =>
externalLib(...).catch(err => {throw new Error(JSON.stringify(err))})
The externalLib ...
0
votes
0
answers
15
views
How to enable stack trace output for JakartaEE/Glassfish application?
Short Version
What's the option to make Glassfish include a stack trace in its generic 500 Server Error page:
Long Version
In ASP.net you can have the generic error page include a stack trace by ...
0
votes
0
answers
10
views
Use sourceCache in stacktrace.js
I have trouble understanding the sourceCache option for the stacktrace.js library. Could anyone please explain it to me? How should I form this object? Thanks!
https://www.stacktracejs.com/#!/docs/...
0
votes
1
answer
29
views
Get stack trace for all execution frames in Node.js
I know how to get a stack trace for the currently executing "thread" (console.trace or new Error().stack), but how can I get a stack trace for all the different "threads" in a ...
-1
votes
0
answers
35
views
Stack trace in api response
As a part of a project I’m writing involved in getting output from different APIs I would like to recognize if a stack trace was printed and returned in the API response. I was thinking an ML approach ...
0
votes
0
answers
20
views
How to format text for Resharper's Stack Trace Explorer?
Resharper offers a great tool, the Stack Trace Explorer, that detects text copied on to the Clipboard and, if it can parse it correctly, displays the text as a stack trace with hyperlinks for the code ...
1
vote
1
answer
31
views
Node - How to reconstruct full stack trace for Promise rejection
I've stumbled upon an issue similar to the one discussed in this question but does not seem to be the same. I have a function returning a promise and rejecting (in case of errors) after a while (it's ...
0
votes
1
answer
20
views
significance of different hex address with call stack trace
what is the significance of all these different hexadecimal address (in bold) ? how to get exact problematic line number of source code for dumped function below from this hex address of crash dump ...
0
votes
0
answers
61
views
NullPointerException in Java with no StackTrace for OpenJDK
In my organisation we are running our projects on OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode), java 8.
I am logging my error in a fashion shown below:
org.slf4j.Logger.error("ERROR in ...
1
vote
1
answer
44
views
Recover call stack when spawning goroutines
The following
func a() { b() }
func b() { c() }
func c() { d() }
func d() {
pc := make([]uintptr, 10)
n := runtime.Callers(1, pc)
if n == 0 {
return
}
frames := runtime....
0
votes
0
answers
43
views
Minified component stack trace in create-react-app (dev mode)
Running create-react-app in development mode:
Why do my console errors link to minified code chunks? I thought I remember CRA being able to show the source mapped files.
-1
votes
1
answer
53
views
Why does SymInitialize() invoke CreateFile()?
Firstly, I want to hook CreateFile() and rewrite it. Then I want to recode the callstack of my new CreateFile() function. But when I use SymInitialize() to Initialize a handle, it falls into an ...
1
vote
0
answers
48
views
How do I not throw the stack trace during throttling exceptions? [duplicate]
How do I not throw the stack trace during throttling exceptions?
0
votes
0
answers
36
views
Get the stacktrace of all the classes executed
I am creating a map where when an acceptance/regression test case is run, It should give me all the Class instances it is called So that I can map these classes with their respective regression test ...
0
votes
1
answer
21
views
Improving error reporting for a dynamically built module.exports in NODEJS
I have an app that dynamically loads individual smaller files into module.export at runtime, it has been working well for a couple of years.
This is the main part of the code that iterates folders, ...
4
votes
1
answer
65
views
go stack trace: what is the meaning of a question(?) mark after certain function call arguments or return values?
I'm trying to debug leaking goroutines (using Gomega's gleak). When at the end of a unit test some goroutines "stubbornly" persist to not terminate, gleak dumps the culprits with their stack ...
2
votes
0
answers
26
views
How to check if frame object is active
import sys
frame = sys._getframe()
How can I check now whether frame (of type FrameType) is still active (part of the current execution stack trace)?
I could iterate through the current stack trace (...
2
votes
1
answer
29
views
weakref (WeakKeyDictionary) to frame (FrameType) objects
I want to have a dict mapping from active frame (FrameType) objects to some data. Active meaning that it is in the current execution stack trace.
However, holding a reference to the frame object is ...
0
votes
1
answer
50
views
Datadog grok custom java stack parsing and ordered list fields
I have the following log sample in a grok pipeline in datadog:
2022-05-10 11:26:58 [SEVERE]: Log from eu.myapp
dev added message - eu.myapp.Controller.<init>
java.lang.NullPointerException
...
0
votes
0
answers
35
views
Is there a NodeJS equivalent to print a stack trace like Java's SIGQUIT handling?
Can I get a stacktrace from an arbitrary running NodeJS program, preferably without altering the code itself? I can do this trivially for Java but can't seem to find the Node equivalent.
And for ...
0
votes
1
answer
54
views
Can not follow stack trace
I am debugging my Vue Storefront project, which is based on Nuxt.js
The error I currently face is: TypeError: Invalid URL which is not too informative.
The Stack trace shows getIntergrationConfig in ...
0
votes
0
answers
69
views
Is there a way to get the stack trace from the web version of React Native(expo)?
I have an app in react native Expo, am running it on web, and want to be able to get the stacktrace for what line in the original react native code an error occurs from. Is this possible?
-1
votes
1
answer
38
views
Spring REST service behaving differently across environments
I'm developing a Spring REST service. In my local environment authentication failure returns a 401 response--the desired response. When the application is deployed to the test environment, however, ...
1
vote
0
answers
24
views
Get stracktrace on application built with G++ on Windows
I'm developping an application on Windows using G++/MinGW. When my application crash, I would like to log the stacktrace. I understand that I cannot use "SymGetSymFromAddr" function to ...
1
vote
0
answers
29
views
Abseil's GetStackTrace function returns back nothing
void show_stackframe() {
std::cout << "Show stack frame function from Abseil." << std::endl;
void *trace[100];
int i, trace_size = 0;
...
1
vote
0
answers
14
views
Glassfish Full Stacktrace in webpages
For debugging purposes, I am searching a way to display the full stack trace in error 500 webpage.
For now, I've got this :
Server: Glassfish 5.1
Best regards
SK
1
vote
1
answer
90
views
How does perf unwind the stack in newer kernel versions with ORC?
I'm running perf on a kernel 5.4.80 and explicitly use fp call graph:
perf record -g --call-graph fp ...
When running perf script it can profile the stack trace without any problem. This is while the ...
8
votes
2
answers
297
views
Stack trace with fs/promises and async..await
I have a problem that is similar to this one and described in this issue. There are no stack traces in errors that come from fs/promises when used with async..await, and no way to determine where the ...
0
votes
1
answer
58
views
Promtail: how to trim not JSON part from log
I have multiline log that consists correct json part (one or more lines), and after it - stack trace.
Is it possile to parse first part of the log as json, and for stack-trace make new label ("...
0
votes
0
answers
25
views
LeakSanitizer in macos: <unknown module> for objective-c function in stacktrace
clang is:
└──( /opt/homebrew/Cellar/llvm/13.0.1_1/bin/clang++ --version
Homebrew clang version 13.0.1
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/llvm/13.0....
2
votes
0
answers
70
views
Is it possible to generate a stacktrace with valid frame symbols / function names?
I am trying to generate a stacktrace at the point in which an exception is thrown.
To do so, I have a custom exception class which stores the current stacktrace as a member, allowing me to log it when ...
0
votes
1
answer
25
views
get java.lang.IllegalStateException error on google play crash summary
google play console crash details give me this error
java.lang.Illeg`enter code here`alStateException:
at androidx.fragment.app.FragmentManagerImpl.addFragment (FragmentManagerImpl.java:1379)
at ...
0
votes
1
answer
34
views
Different Stacktraces for NewHandler and UnhandledExceptionHandler
I have the following code:
#include <windows.h>
#include <minidumpapiset.h>
#include <strsafe.h>
#include <fileapi.h>
#include <iostream>
#include <signal.h>
#...
0
votes
0
answers
7
views
How do you trace components data back to the API source in react and how do you connect to its database?
I'm working for a large news organisation and there are so many moving parts to our stack, from different repos and database. What are ways to find the source of the data being called, leading back to ...
0
votes
0
answers
38
views
How do I know when my code call stack is too complex?
I know this is likely to be highly subjective and dependent on implementation, but I'm hoping someone could still provide a little bit of guidance. I'm a new SWE and I'm trying to get a feel for how ...
0
votes
1
answer
24
views
Silence Javascript stack traces in htmlunit
I have configured my program to continue past JavaScript exceptions:
WebClient webClient = new WebClient(BrowserVersion.FIREFOX_ESR);
webClient.getOptions().setThrowExceptionOnScriptError(...
0
votes
1
answer
226
views
Chrome Devtools Perfomance profiler dump json file parser
I'm trying to parse the results of the performance profiler tool, but I've googled everything and I cannot find anything. Where to dump profiler jsonfile Sample picture
The only documentation I've ...
0
votes
0
answers
49
views
Throw inside Catch block, StackTrace information lost
The last paragraph of the remark section of VB Throw Statement doc says:
The Throw statement resets the call stack for the expression exception. If expression is not provided, the call stack is left ...
0
votes
0
answers
86
views
why it dumped stack twice when my linux driver failed at the second time while first time being insmod ran normally
i started learning linux driver a few days ago and i write a simple driver.fisrt i insmod my driver ,it showed it runs well ,and normal when i rmmod. but when i insmod it again, console log showed &...
0
votes
0
answers
39
views
C# compiler not showing complete stack trace for runtime errors
C# compiler version:
mono --version
Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: ...
2
votes
0
answers
90
views
How can a non-recursive function appear twice in a stack trace?
I have a function check that is roughly like this:
void check() {
// ...
// Make some execute-only memory readable for subsequent inspection
// using the mprotect system call
...
2
votes
0
answers
341
views
How can I make Loguru log full backtrace to a file?
Please excuse if I'm doing something wrong, this is my first question here.
this is my configuration:
def logging_module():
"""A customized Loguru logging module"""
...
0
votes
1
answer
55
views
How to get StackTrace of called Assert?
I can get StackTrace for Exception. But I don't know how to get StackTrace for Assert. How to find out in which method Assert was called?
My code:
namespace ConsoleApp1
{
using Microsoft....
1
vote
0
answers
132
views
How do I use the Filtered Throwables feature to filter stack traces in log4j2?
I'm using Java with Spring Boot and I'm tired of combing through stack traces with 100+ lines that I don't care about. Since I use log4j2 (v2.17.1), I followed the manual (search "Filtered ...
8
votes
2
answers
229
views
Why is C++23 stacktrace_entry different from source_location?
class stacktrace_entry {
public:
string description() const;
string source_file() const;
uint_least32_t source_line() const;
/* ... */
};
struct source_location {
// source location field ...
1
vote
2
answers
229
views
Why does the stack trace of an Error that is returned by a Promise seem to be incomplete?
While rethrowing an Error of a rejected Promise, I noticed that the stack trace seem to be incomplete.
For example:
// returns a Promise that is later on rejected.
function a() {
return new ...
1
vote
0
answers
102
views
Terminal stack trace for node process on mac
Is there a way I can see a stack trace of a generic script as it's running? It crashes opening a file that doesn't exist, but clearly it exists, so I want to see the file from which that call is made. ...
0
votes
1
answer
186
views
Multiline parsing of Java stacktrace picks up few lines only | Elasticsearch
Current filebeat.yml parameters are like below:
- type: log
paths:
- /tmp/test.log
pipeline: filebeat-test-java-logs
enabled: true
multiline.pattern: ^\d{4}-\d{2}-\d{2}
multiline.negate: ...
0
votes
0
answers
8
views
how to debug my stack traces related to crashing the app with imagebutton
hi i have a activity that has information about my company and i must referring to this by a imagebutton in mainactivity, i wrote following java codes in infoscreen.java:
package com.journaldev....
6
votes
1
answer
192
views
How will I throw exceptions with stack traces in C++23?
C++23 will likely see the introduction of a stack trace mechanism, via the <stacktrace> header.
I know we're going to have an std::stack_trace class, made up of std::stacktrace_entry'ies, and ...