-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segmentation fault #80
Comments
looks like it might be related to logrotate. I see on the readme some note about sending EDIT: seeing some more errors like this some time after the log rotation took place, so actually not related to logrotate |
I noticed this TODO comment, and it seems related to the segmenation fault I'm seeing. The Logger file handlers aren't being closed fully perhaps. The logging gem I'm using has a method to shut itself down, which should be helpful here (but not everybody is using the same logging library). I wonder if there's some kind of a more general-purpose solution? |
I think implementation of #75 might make this issue go away for you. Important: do you have the same issue with Resque's log files? |
Thanks for the tip @jjulian. Not sure I completely follow though. What do you mean by "Resque's log files" exactly? Things generally go to our resque-pool -d -a ${app_name} -p ${pidfile} -E ${environment} -o ${stdout_log} -e ${stderr_log} and we're seeing the segmentation fault error in the stderr file. It started recently for no apparent reason, but we're seeing it more and more frequently. I don't really have a clear way of reproducing this behaviour however, so whatever the workaround / fix - it might be tricky to test... |
I'm wondering if you had the same problem when directing Resque's logger to your own. See https://github.com/resque/resque/wiki/Logging |
Thanks. I'll take a look. I'm trying something that might solve this actually (will need some time to let it run...) The Logging gem has a task "resque:pool:setup" do
# close any sockets or files in pool manager
ActiveRecord::Base.connection.disconnect!
# and re-open them in the resque worker parent
Resque::Pool.after_prefork do |job|
ActiveRecord::Base.establish_connection
Logging.reopen
end
end Will report back later. Thanks again for your help Jonathan. |
I tried playing around with
In any case, Looks like adding Thanks again for the help. |
It looks like the logger accessor was added in Resque 1.23.1 On Saturday, August 10, 2013 at 2:40 AM, gingerlime wrote:
|
Maybe it's time to upgrade our resque gem anyway? Thanks for the tip. |
Just came across a strange error, and am trying to investigate, but not entirely sure what's causing this.
I can see these in the stdout log (this seems normal, we have plenty of those before without any errors)
and then suddenly in the stderr log
Any ideas what might go wrong / where to investigate? Happy to paste a more complete segmentation fault error dump if necessary
The text was updated successfully, but these errors were encountered: