| Summary: | ksim crashes when configuration dialog launched. | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Alexander Golubev (Fat-Zer) <fatzer2> |
| Component: | tdeutils | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugwatch, darrella |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | amd64 | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: |
backtrace
fix patch |
||
|
Description
Alexander Golubev (Fat-Zer)
2012-11-15 00:27:10 CST
Created attachment 980 [details]
backtrace
Backtrace can vary from system to system and even from build to build.
Created attachment 981 [details]
fix patch
the patch fixes the crash for me.
Generally the crash should appear only when KSim::Plugin::fileName() returns TQString(), but for some reason even if d is not NULL d->name is copied to the stack and the link to the on stack copy is returned. This copy is corrupted by later calls. And leads to SIGSEGV.
The by-value return prevents that.
The patch works for me with Slackware 13.1 32-bit. I'm not a C++ guru therefore Tim or Slavek will have to review and approve before pushing to GIT. :) Good work! Patch in attachment 981 [details] pushed to GIT in commit 4ed913cf. Resolved.
|