Bug 72056

Summary: /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: [BUG] Segmentation fault
Product: Ports & Packages Reporter: Heinrich Zacher <zacher>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Heinrich Zacher 2004-09-24 11:30:24 UTC

    
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2004-09-24 11:58:26 UTC
State Changed
From-To: open->closed

Not enough information.
Comment 2 Patrick Oonk 2004-11-01 13:32:05 UTC
I have the same on a fresh 4.10 install.

  portinstall /usr/ports/lang/php4
[Rebuilding the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 4 packages found 
(-0 +4) .... done]
[Failed `Inappropriate file type or format'] [Updating the portsdb 
<format:bdb1_btree> in /usr/ports ... - 11873 port entries found 
.........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000...../usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: 
[BUG] Segmentation fault
ruby 1.8.2 (2004-07-29) [i386-freebsd4]


-- 
  Patrick Oonk    -   Pine Digital Security    -   patrick.oonk@pine.nl
  T:+31-70-3111010       -      F:+31-70-3111011      -     www.pine.nl
  --->  Reserveer nu uw .eu domeinnaam!  http://www.pine.nl/pdreu <----
  -+-+-+-+-+-+-+-+  One thing less to worry about... -+-+-+-+-+-+-+-+-+
Comment 3 Andrew McNaughton 2004-11-12 15:30:00 UTC
I have the same problem.


The fix is to put the following into /usr/local/etc/pkgtools.conf:

   ENV['PORTS_DBDRIVER'] = 'bdb1_hash'

Then do:

   portsdb -fu
   pkgdb -fu

This solution was found at:
   http://archive.pilgerer.org/mharc/html/freebsd-stable/2004-09/msg00138.html



--

How, they wonder, did so many [American] conservatives, who
normally don't trust their government to run a public school down
the street, come to believe that federal bureaucrats could
transform an entire nation in the alien culture of the Middle East?
   -John Tierney, NY Times

-------------------------------------------------------------------
Andrew McNaughton           Living in a shack in Tasmania
andrew@scoop.co.nz          Between the bush and the sea

Mobile: +61 422 753 792     http://staff.scoop.co.nz/andrew/cv.doc
                             http://www.scoop.co.nz/