stack-trace

Can Guice be configured to hide the class path in stack traces?

佐手、 提交于 2019-12-24 03:18:12
问题 Guice's stack traces can get so verbose that they are very painful to read. Here's an example: 1) No implementation for java.util.Set<com.mydomain.myapp.android.activities.catbrowser.generalizedbrowser.listview.helpers.databaseitem.itemmanipulators.ItemManipulator<com.mydomain.myapp.flash.Cat>> annotated with @com.google.inject.assistedinject.Assisted(value=) was bound. while locating java.util.Set<com.mydomain.myapp.android.activities.catbrowser.generalizedbrowser.listview.helpers

Why doesn't valgrind massif report any function names or code references?

喜夏-厌秋 提交于 2019-12-24 01:45:31
问题 I have a program that is unexpectedly using a large amount of heap (about 3GB). I ran it through valgrind memcheck which reported no leaks, claiming that all the heap memory is still reachable. So I rebuilt all my libraries with debug options, and ran the prog through valgrind massif. I am using Valgrind-3.8.1 which I just downloaded and built on my box today. The command line was: valgrind --tool=massif myprog Valgrind produced no errors or warnings. The resulting output file is reporting

Strange stacktrace reported by Google Play Console

泄露秘密 提交于 2019-12-23 17:40:10
问题 I'm getting this kind of stacktraces in the crash reports provided by Google Play Console: at com.example.ClassA.createInstance (ClassA.java) or .op1(ClassA.java) or .op2(ClassA.java) or .op3 (ClassA.java) or .op4 (ClassA.java) Does anybody knows why are "or"(s) in the stacktrace ? I'm guessing is something about the code obfuscation. Thanks. 来源: https://stackoverflow.com/questions/46608036/strange-stacktrace-reported-by-google-play-console

How do you add a StackTrace to every log call in log4net?

橙三吉。 提交于 2019-12-23 15:28:21
问题 I'm using Log4Net to log a multilayer-ed Enterprise Application. I know that when I log an exception with Log4Net, it automatically exposes the exception StackTrace, but I want to log the StackTrace for every log call, even if those are not exception throws. Why do I need that?... I want to know the call origin of the log (drilldown the layers...) Thank all... Tiago Dias 回答1: I came to a solution to my problem. I've wrap around the log4net in my own methods and i've created LoggingEvent

How and when are stack frames built?

♀尐吖头ヾ 提交于 2019-12-23 13:00:50
问题 I am currently reading about exploiting memory vulnerabilities under Linux and I found it hard to find any information on when the layout of stack frames is decided. In other words, is it something determined at the compile time, before the program's execution or are those built when a function is being called? Does the layout differ between operating systems? 回答1: There are several factors. On x86, there's a calling convention that defines how to call a function. I assume other architectures

Correctly using stacktrace to debug

牧云@^-^@ 提交于 2019-12-23 12:28:26
问题 The following line of code is causing me an Exception plug.Instance.AddDocuments(new Int32[] { val_pid }, val_ptype, val_doccat, val_subcat, val_doctype, val_notes, val_summary, SummaryAppendOptions.None, val_docStatus, new String[] { PDFFile }) And this is the exception detail. System.Exception was caught Message=Object reference not set to an instance of an object. - Error when trying to save document Source=SimsBridge StackTrace: at SimsBridge.Bridge.AddDocuments(Int32[] personIds, Int32

What to make of an “impossible” stack trace after a crash?

坚强是说给别人听的谎言 提交于 2019-12-23 12:22:27
问题 My program appears to be suffering from a very hard-to-reproduce bug: Once in a blue moon, when a user puts his Mac to sleep and later on wakes it back up again, one of my program's child processes will crash immediately after the Mac wakes up. When this happens Apple's crash-reporter mechanism reliably reports a stack trace like this one: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x967f9a6a __pthread_kill + 10 1 libsystem_c.dylib 0x9003dacf pthread

How to get stack trace of a running process from within a Visual Studio add-in?

空扰寡人 提交于 2019-12-23 10:56:31
问题 I am writing a Visual Studio add-in in C# which will run while I am debugging a process in the same Visual Studio window and I need access to that the process' stack trace from within my add-in. I tried putting this code into my add-in but it returns the add-in's stack trace, not the process I am debugging. System.Diagnostics.StackTrace stacktrace = new System.Diagnostics.StackTrace(true); System.Diagnostics.StackFrame stackframe = stacktrace.GetFrame(0); Any help would be appreciated. 回答1:

Haskell equivalent of C's __LINE__

非 Y 不嫁゛ 提交于 2019-12-23 10:25:57
问题 Is there a way to get line-number/traceback information in Haskell? (like C's __LINE__ macro or Python's traceback.extract_stack() ) That would be of use for me for writing Haskell program that generates C++ code, which would be notated with comments telling which Haskell line is responsible for which C++ line. Haskell example: LINE "#include <foo.h>" -- this is line 12 : INDENT "void Foo::bar() {" "}" [ LINE $ "blah(m_" ++ x ++ ", \"" ++ x ++ "\");" | x <- ["Potato", "Avocado"] ] will

Exception with Stacktrace containing only java library calls

一世执手 提交于 2019-12-23 07:43:05
问题 What possible course of action could one take to find out what went wrong if the stack trace of an error (that does not take place in the main thread) does not contain any of your methods? The full trace in question: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 at java.util.Vector.elementAt(Unknown Source) at javax.swing.table.DefaultTableColumnModel.getColumn(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown