abort(3) in libc/db/btree/bt_split.c

Brian Fundakowski Feldman green at FreeBSD.org
Fri Sep 3 22:13:38 PDT 2004


On Fri, Sep 03, 2004 at 02:06:16PM +0900, Jun Kuriyama wrote:
> 
> I found there are abort(3)s in bt_split.c (found by ruby18/portupgrade
> dumping core).
> 
> It seems flags in data structure which ruby uses are corrupted, but
> abort(3) is not helpful for usual users.
> 
> So I think __bt_split() (and other functions in this file) should
> return RET_ERROR, or write a dying message before abort(3).
> 
> I'd like to try to code returing RET_ERROR (with internal tree
> cleanup) if that is the way to go.

Have you checked if they were fixed in subsequent SleepyCat DB 1.x
releases to return error instead of dump core, so we could use a vendor
fix?

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


More information about the freebsd-arch mailing list