🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Matthias Urlichs Mon, 04 Jan 1993 20:42
gdbm 1.5 loses key chain
#1247
Author: Matthias Urlichs
Date: Mon, 04 Jan 1993 20:42
23 lines
1538 bytes
I'm using gdbm (1.5) and occasionally one of my gdbm files manages to 
mangle its database. The problem is that while the data are accessible
via gdbm_fetch(), a lookup through gdbm_nextkey() terminates without
returning the whole file.

Needless to say, this happens only if the database is heavily used;
thus, scanning the database after every access won't work.
Also needless to say, any mangled database contains confidential
information, so I can't post or mail it. Also needless to say, the
way I'm using the database absolutely depends on firstkey/nextkey
finding every record.

However, I am able to use a debugger. ;-)  Any gdbm experts out there
who can help shed some light on this, point me at places to search for
the problem, etc.? All database access goes through one program, which
can be hacked to death if necessary.

-- 
Darth Vader!  Only you would be so bold!
               -- Princess Leia Organa
-- 
Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
Re: gdbm 1.5 loses key chain
#1255
Author: Matthias Urlichs
Date: Tue, 05 Jan 1993 20:34
14 lines
1178 bytes
The problem has apparently been traced to a version of the gdbm 1.5 library
which was compiled with an older version of GCC 2.x.
Recompiling with gcc 2.3.1 fixed the problem and made the broken databases
usable again; i.e. their structure appears to be intact.

If only all problems could be fixed this way... maybe RMS should compile
GCC a few times with itself, instead of issuing patches?  ;-)

-- 
Liberty is so much latitude as the powerful choose to accord the weak.
                                        -- Judge Learned Hand
-- 
Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads