After using "portupgrade -a", ruby was updated to 'ruby-1.8.7.302,1'. This caused an error then I lauched portupgrade again: ** Stale lock file was found. Removed. /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:1: [BUG] cross-thread violation on rb_gc() ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-freebsd7] Abort trap: 6 (core dumped) After updating portupgrade to version portupgrade-2.4.8_1,2 manually via /usr/ports an error changed to: ** Stale lock file was found. Removed. /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:782: [BUG] cross-thread violation on rb_gc() ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-freebsd7] Abort trap: 6 (core dumped) How-To-Repeat: Upgrade ruby to version ruby-1.8.7.302,1 Upgrade portupgrade to version portupgrade-2.4.8_1,2
Responsible Changed From-To: freebsd-ports-bugs->ruby Fix synopsis and assign.
From my non-developer research, this appears to be one of the possible outcomes of upgrading ruby with portupgrade. Since the problem renders portupgrade unusable, you can treat the symptom by manually reinstall ruby\*-bdb: cd /usr/ports/databases/ruby-bdb make clean make deinstall make reinstall For some background information, see: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/188996
Responsible Changed From-To: ruby->swills I'll take it.
State Changed From-To: open->closed Suspect the research on cross-thread violation on rb_gc is correct. Regardless, the issue is that upgrading ruby without upgrading or reinstalling ruby-bdb is going to cause breakage. Correct solution would be to portupgrade -aR. This would happen with other packages where dependents aren't updated. Not a bug in portupgrade, so closing the bug for now. If you have further issues, please open a new PR.
I got exactly this problem using portupgrade --batch -RrP portupgrade I solved it by manually reinstalling ruby-bdb as described above. But = my experience suggests that swills is incorrect that -R fixes the = problem.=
Hi, I'm currently maintaining portupgrade. Recent versions gracefully handle errors when reading the DB, which creep up during upgrading of ruby or ruby-bdb. However, I've never ran across the mentioned issue and agree with swills that ruby-bdb was likely not upgraded yet. I've been testing quite a bit upgrading ruby / portupgrade, reinstalling, etc, for the past months. I have yet to run into an issue like this. Either way, this is a ruby crash, not really a portupgrade problem, or really solvable by portupgrade. Regards, Bryan Drewery