 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Stefan Champailler
qtruby4.rb:2207: [BUG] Segmentation fault [ reply ] 2011-06-22 13:49
|
Hello,
I've stumbled on a very bizarre segmentation fault on Windows. My code works and then suddenly, crashes with the following error :
C:/PORT-STC/ruby-1.8.7-p72-i386/lib/ruby/gems/1.8/gems/qtruby4-2.1.0-x86-mswin32/lib/Qt/qtruby4.rb:2207: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
The funny thing is that if I alter the code in a way or another, or, for example, I run the same code from another directory, then error comes at different moments or does not even come. That is, the moment of the error changes if I change the start conditions.
The only constant being the place reported in the error messsage (i.e. qtruby4.rb:2207)
Although I'm perfectly aware that this description is rather sparse, I post it here in the hope that it rings a bell for somebody.
It's not the first time I get strange errors, impossible for me to track on Windows. I'm under the impression that this is related to the garbage collection (my application has no thread so race conditions are not likely)... It seems to me that error is not located where it is reported but is rather a consequence that something went wrong previously.
I also feel I don't do anything "special" or tricky. I'm just using plain widgets, a few ItemModels and voilĂ ...
Maybe I'm missing something with the mangement of ownerships ? Dunno.
If anybody has a similar experience.
I can debug quite a lot on Linux but not on windows 'corporate PC :-()
If I can reproduce the error with a short piece of code, I'll post it here. But for the moment, the code is too big for that.
Best regards,
Stefan
|
|
 |