Comments (8)
The Ruby code you are testing have to be RPM packaged. This is standard behavior of ABRT to ignore 3rd party software.
Not sure where the cpp and pythong tests are coming from. May be we can provide something similar (but that would be different issue)
from abrt-ruby.
We are testing with /usr/bin/will_ruby_raise, which is packaged:
rpm -qf /usr/bin/will_ruby_raise
will-crash-0.9-3.el6.x86_64
The python and cpp tests are from the same package.
Those are the abrt versions we are using:
rpm -qa | grep abrt | sort
abrt-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-addon-ccpp-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-addon-kerneloops-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-addon-python-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-cli-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-console-notification-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-libs-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-python-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
abrt-tui-2.0.8.225.g8e16-1.1.jfilak.el6.x86_64
rubygem-abrt-0.1.0-1.el6.noarch
rubygem-abrt is packaged by us, the rest from http://copr-be.cloud.fedoraproject.org/results/jfilak/abrt/epel-6-x86_64/
from abrt-ruby.
I see at it's because of this check:
write_dump(exception) if exception.backtrace.last[0] == '/'
If we change it to char it works as expected:
write_dump(exception) if exception.backtrace.last[0].chr == '/'
from abrt-ruby.
Ah, I missed that you are testing EPEL6. I am sorry, but the gem was never tested against (intended to support) Ruby 1.8.7 and EPEL6.
Anyway, what is your use case? I am asking, since on Fedora, the gem is autoloaded by Ruby. On EPEL6, you would need to load it explicitly to be useful. Unfortunately, there is no chance to backport the autoloading to EPEL6 I am afraid (unless somebody would hardly push the request through support, PM, etc).
from abrt-ruby.
We.re trying to use the gem for puppet, mcollective and send reports to foreman abrt smart proxy plugin. We have some custom ruby scripts also.
Currently we are setting the environment from profile.d with this script:
export RUBYLIB=$RUBYLIB:$(find /usr/lib/ruby/gems/1.8/gems/abrt*/lib | sort | head -1)
export RUBYOPT="-rabrt"
Seems to work with puppet run from mcollective also.
from abrt-ruby.
Thanks for explanation and motivation ;) I'll check what I can do about it.
from abrt-ruby.
Any problems if I do a pull request for this? Meaning to cast exception.backtrace.last[0] to chr?
from abrt-ruby.
This should be resolved via 5fd45b1.
from abrt-ruby.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abrt-ruby.