Search found 313 matches

by alys666
Mon Nov 25, 2019 12:55 am
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

muscle. i wrote a simple function of "native" stack dump using c++ stdlib. #include <execinfo.h> void dumpStack(){ const int max_entries = 1000; //let we try to unwind 1000 frames deep stack void* lbuf[max_entries]; //buffer for stack frames entries int lcnt = backtrace(lbuf, max_entries); //get fra...
by alys666
Sun Nov 24, 2019 3:49 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

it's ubuntu 16.04/Intel, desktop, not rasberry.
yes i've built wxWIdgets, but nothing special, with very common settings..just for dynamic link libraries.
compiler - g++.
by alys666
Sun Nov 24, 2019 12:34 am
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

I added to my app this crash logs, and in my case everything works fine. And all the stack is logged. but my stack is a way deeper than yours. <frame level="0" function="CodeBeeApp::OnFatalException()" offset="00000000" file="...." line="3048"/> <frame level="1"/> <frame level="2"/> <frame level="3"...
by alys666
Fri Nov 22, 2019 3:25 am
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

BTW, your gdb dump "after continue" shows that your frames are not unwound inside OnFatalException. and it looks like stack frames info must be available inside it. i never used this functionality of wxWidgets...you're getting info using addAll...but documentation for this function is not clear. for...
by alys666
Thu Nov 21, 2019 5:31 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

Yes, this crashes immediately but the crash log contains only: Code: Select all <stack> <frame level="0" function="COurApp::OnFatalException()" offset="0" address="0x5c360"/> <frame level="1" function="wxFatalSignalHandler" offset="0" address="0x3eb1a0"/> <frame level="2" function="__default_sa_res...
by alys666
Wed Nov 20, 2019 7:14 am
Forum: General Development
Topic: There are a lot of potential buffer overflow are found during static scan
Replies: 6
Views: 293

Re: There are a lot of potential buffer overflow are found during static scan

memcpy is innocent function if you previously checked size of destination buffer and size of data. here they checked and expanded buffer if needed, to hold all the data, and have appended data using memcpy. no problem. Actually, no one checks if the memory was allocated as expected. AFAIK Passing N...
by alys666
Wed Nov 20, 2019 12:06 am
Forum: General Development
Topic: There are a lot of potential buffer overflow are found during static scan
Replies: 6
Views: 293

Re: There are a lot of potential buffer overflow are found during static scan

Hi guys, Veracode scan report a lot of potential buffer overflow flaws are found during static code scan , see the attached screenshot. I want to ask if wxWidgets team will fix those issues or not? for example Veracode report buffer.h has potential overflow, wxbase311ud_net_vc_custom.dll source/......
by alys666
Mon Nov 18, 2019 11:48 pm
Forum: wxWidgets Development (Russian)
Topic: Странное поведение wxWindow::Destroy()
Replies: 5
Views: 1157

Re: Странное поведение wxWindow::Destroy()

сомнительно что destroy не может верно убить окно. там ж ничего сложного по функциональности нет. его надо поудалять из всех возможных списков, удалить из парента и просто вызвать delete. единственно проблемный случай - это то, что сказал даблмакс. когда удаление вызывается синхронно из обработки со...
by alys666
Mon Nov 18, 2019 8:22 pm
Forum: C++ Development
Topic: wxTimer causing memory leaks
Replies: 8
Views: 291

Re: wxTimer causing memory leaks

@PB, how about wxButton, wxStaticText, wxTextCtrl etc, created using new? They need to be deleted too ? all this controls have "parent" in their constructor parameters list. at destruction, the parent recursively deletes all childs(where childs delete their childs). so if you provided a parent to s...
by alys666
Wed Nov 13, 2019 7:25 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

gdb shows strange things, there must be upper frames...if you have not damaged the stack by something. what about stack size? what about return of address of some stack variable as pointer? have you verified your code with -Wall - Wextra? added. such small devices as rusberry, have limited resources...
by alys666
Wed Nov 13, 2019 1:19 pm
Forum: General Development
Topic: What flow of programming and tools do you use?
Replies: 38
Views: 30649

Re: What flow of programming and tools do you use?

GCC, GDB, custom C++ ide
by alys666
Wed Nov 13, 2019 1:17 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

and quite usual advice from me - i write code with highest warnings level (absolutely recommended) "-Wall" "-Wextra" also i use additional warnings in my projects - "-pedantic" "-pedantic-errors" "-Wredundant-decls" "-Wcast-align" "-Wundef" "-Wfloat-equal" "-Wunreachable-code" "-Wmissing-include-dir...
by alys666
Wed Nov 13, 2019 12:49 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

if "Thermal" is not a main thread then.... never worked with cairo... bit this is some drawings library. and if it is called in some secondary thread -> then you are doing drawings from secondary thread... but wxWidgets drawing cannot be issued from secondary thread, only from main. do not call wxWi...
by alys666
Wed Nov 13, 2019 12:37 pm
Forum: General Development
Topic: Fatal exceptions logging
Replies: 20
Views: 780

Re: Fatal exceptions logging

from some docs: Compiling with -fno-exceptions disables exceptions support and uses the variant of C++ libraries without exceptions. Use of try, catch, or throw results in an error message . Linking objects that have been compiled with -fno-exceptions automatically selects the libraries without exce...
by alys666
Tue Nov 12, 2019 9:16 pm
Forum: C++ Development
Topic: How to handle KILL_FOCUS globally
Replies: 3
Views: 145

Re: How to handle KILL_FOCUS globally

what is "window looses focus" -
1.mouse just moved outside your app window,
2.or mouse moved outside and something was clicked there?
imo window loses focus in case 2 only.