I’m trying to run a rake task locally and I’m getting a strange error.
$ rake alert_notification --trace
** Invoke alert_notification (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute alert_notification
/Users/bendowney/.rvm/gems/ruby-1.9.3-p194@global/bin/rake(65399,0x7fff73799960) malloc: *** error for object 0x8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
Oddly enough, I’m not using the gemset given (@globaL). When I run
$ rvm gemset list
It shows the correct gemset.
As far as I can tell, this doesn’t affect how the rest of my rails app works. Though I’m not completely certain.
And advice on how I can fix this?
Somehow in the process of we-writing the rake task, this problem has entirely vanished. So I guess the answer to this post would be “Write valid rake tasks.”