{"id":581,"date":"2006-03-10T01:00:00","date_gmt":"2006-03-09T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2006-03-10-1.html"},"modified":"2026-08-10T14:35:39","modified_gmt":"2026-08-10T05:35:39","slug":"2006-03-10-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2006-03-10-1.html","title":{"rendered":"pkgdb.rb \u3067\u306e Segmentation Fault"},"content":{"rendered":"<p>\n<a href=\"https:\/\/www.ecoop.net\/memo\/2006-02-01.html\">[2006-02-01]<\/a> \u306e portsdb.rb \u3067\u306e Segmentation Fault \u3068\u307b\u307c\u540c\u3058\u73fe\u8c61\u306b\u518d\u3073\u906d\u9047\u3002<\/p>\n<blockquote><p>$ portversion -vL=<br \/>\n&#8212;>  Checking the package registry database<br \/>\n[Updating the pkgdb &lt;format:bdb1_btree> in \/var\/db\/pkg &#8230; &#8211; 249 packages found (-2 +0) (&#8230;)\/usr\/local\/lib\/ruby\/site_ruby\/1.8\/pkgdb.rb:466: [BUG] Segmentation fault<br \/>\nruby 1.8.4 (2005-12-24) [i386-freebsd4]<br \/>\n&nbsp;<br \/>\nAbort trap (core dumped)\n<\/p><\/blockquote>\n<p>\u306a\u3093\u3067 bdb1_btree \u898b\u3066\u308b\u306e\u304b\u3001\u3068\u7591\u554f\u306b\u601d\u3044\u306a\u304c\u3089\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8ffd\u3063\u3066\u3044\u304f\u3068\u3069\u3046\u3084\u3089\u3001PKG_DBDRIVER \u3068\u3044\u3046\u5909\u6570\u3092\u898b\u3066\u3044\u308b\u3082\u3088\u3046\u3002portsdb \u3067\u306f PORTS_DBDRIVER \u3067\u3059\u304c\u3001pkgdb \u3067\u306f\u3053\u3061\u3089\u3092\u4f7f\u3046\u3001\u3068\u3002PORTS_DBDRIVER \u3068\u540c\u69d8\u3001PKG_DBDRIVER \u3082 bdb_btree (bdb1_btree)\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001\u3053\u308c\u306f freebsd5 \u3067\u3082\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\n<\/p>\n<blockquote><p>export PKG_DBDRIVER=bdb1_hash<br \/>\npkgdb -aF\n<\/p><\/blockquote>\n<p>\u3053\u308c\u3067\u5bfe\u51e6\u5b8c\u4e86\uff01<br \/>\n&nbsp;<br \/>\n\u8ffd\u8a18: pkgtools.conf \u306b \n<\/p>\n<blockquote><p>ENV[&#8216;PORTS_DBDRIVER&#8217;] = &#8216;bdb1_hash&#8217;<br \/>\nENV[&#8216;PKG_DBDRIVER&#8217;] = &#8216;bdb1_hash&#8217;\n<\/p><\/blockquote>\n<p>\u3068\u3059\u308b\u307b\u3046\u304c\u8a2d\u5b9a\u304c\u307e\u3068\u307e\u3063\u3066\u3044\u3044\u304b\u3082\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[2006-02-01] \u306e portsdb.rb \u3067\u306e Segmentation Fault \u3068\u307b\u307c\u540c\u3058\u73fe\u8c61\u306b\u518d\u3073\u906d\u9047\u3002 $ portversion -vL= &#8212;> Checking the package &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2006-03-10-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">pkgdb.rb \u3067\u306e Segmentation Fault<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[25],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-lifehack","tag-freebsd"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":1,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":1557,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/581\/revisions\/1557"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}