Seg fault when clicking on a specific players name
Chess Database Application
Status: Pre-Alpha
Brought to you by:
gcramer
While reviewing a game, clicking on the players name usually opens a window showing various pieces of data about the player.
If the name happens to be my name, the app seg faults and crashes with a core dump. Sorry no useful information available on what might trigger the crash; app does spin for a bit with a "busy" cursor showing and then an abrupt seg fault.
This means that an exception will be thrown, but unluckely on many systems the stack backtracing is crashing, I don't know why. Please install package gdb and try to get the error again, if gdb is installed you should get an error message (but sometimes it happens that gdb is hanging).
How can I run gdb on a bash script?
Or how can I get gdb to get a backtrace?
Got gdb to attach to the app but had to logon as root; any easier way, let me know - was getting "ptrace: Operation not permitted " error
Anyway feedback from gdb on this segfault is:
Oh, sorry, I didn't explain this very well. Installation of gdb is sufficient. you don't need to use gdb, the program is doing this.
This is the silly Ubuntu. Please have a look on this page how to prevent this. The SIGSEGV is normally a consequence of the corrupted ptrace (under Ubuntu). After applying the solution it should work.
I am using ArchLinux though the Ubuntu guidleines will probably work too,
looks like it is some security issue.
As for just installing gdb, I still was not getting and feed back on either
occasion when the app crashed so I thought actually running gdb might give
more info.
Is the backtrace of any help? A bit odd that the same backtrace was
reported for both issues.
On 27 January 2014 17:05, Gregor Cramer gcramer@users.sf.net wrote:
--
Drew
Related
Bugs:
#68After installing gdb, there was no stacktrace reported when app crashed so I tried monitoring the app directly in gdb. I'll rebuild source with the switch you suggested
Are you saying the SIGSEGV fault is being produced by the ptrace issue?
Man, how useful is that
Yes, the crash is a result of the ptrace issue. The backtrace works if the issue is solved, but sometimes it happens that gdb is hanging, the application is not reacting anymore, in this case it may help to kill gdb on the command line.
Normally the stack backtrace is very useful, it is annoying that it does not work without complications anymore. This has changed with newer compiler versions. With older compiler version I could do the backtracing with the use of addr2line, but for any reasons it is crashing on newer systems.
Hey Gregor
not much luck with the ptrace problem; none of tricks mention seem to have any effect.
Anyway perhaps this might help
Thanks for the trace. In this case I need your database for testing, for any reason one of the internal classification keys is invalid. Is it possible to attach it? Otherwise I can give you an upload address.
in the post
Many thanks for the database, luckely it's was simple error. Will work in revision #1001.