|
RE: sfs compile problems: msg#00016file-systems.sfs.general
Hi, well, i realized why i was having problems with the db->open. its because i had to download Berkeley DB 4.1.x. couldn't find an older version anywhere. The new api has an extra parameter (second parameter of type DB_TXN) which can be set to NULL for backward compatibility. ran gdb. looks like its trying to do a "c_get" from the cursor and that's a null function ptr. (gdb) bt #0 0x00000000 in ?? () #1 0x080e5598 in dbEnumeration::getElement(unsigned, ptr<dbrec>) (this=0x82867c4, flags=10, startkey=0xbffff7a0) at ../../src/sfsnet/sfsrodb/dbfe.C:164 #2 0x080e5983 in dbEnumeration::firstElement() (this=0x82867c4) at /home/vinod/chord2/src/sfs1/async/refcnt.h:484 #3 0x08091aac in verifydb(dbfe*) (db=0x827b684) at /home/vinod/chord2/src/sfs1/async/refcnt.h:393 #4 0x08093959 in dhash::dhash(str, unsigned, int) (this=0x8279c00, dbname=0xbffffbf0, k=0, _ss_mode=0) at /home/vinod/chord2/src/sfs1/async/refcnt.h:393 #5 0x0804eb17 in main (argc=5, argv=0xbffffcb4) at /home/vinod/chord2/src/sfs1/async/str.h:106 #6 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) up #1 0x080e5598 in dbEnumeration::getElement(unsigned, ptr<dbrec>) (this=0x82867c4, flags=10, startkey=0xbffff7a0) at ../../src/sfsnet/sfsrodb/dbfe.C:164 164 int err = cursor->c_get(cursor, &key, &data, flags); (gdb) p *cursor $11 = {dbp = 0x5f74706f, txn = 0x79746264, links = {tqe_next = 0x6f006570, tqe_prev = 0x635f7470}, rskey = 0x74616572, rkey = 0x706f0065, rdata = 0x6c665f74, my_rskey = {data = 0x75006761, size = 1864394099, ulen = 544105840, dlen = 1953721961, doff = 174350693, flags = 0}, my_rkey = {data = 0x0, size = 0, ulen = 0, dlen = 0, doff = 0, flags = 0}, my_rdata = { data = 0x0, size = 1701869940, ulen = 1701667182, dlen = 1667593760, doff = 1935762015, flags = 743717989}, lid = 977161760, locker = 1835820346, lock_dbt = {data = 0x2026745f, size = 1013146998, ulen = 1310731348, dlen = 1866086974, doff = 1634887024, flags = 1534226292}, lock = {pgno = 1852385373, fileid = "t) [with T = char*, ", type = 1769172597}, mylock = {off = 1684368999, ndx = 1953392928, gen = 1025527328, mode = 6107168}, cl_id = 0, dbtype = 0, internal = 0x0, c_close = 0, c_count = 0, c_del = 0, c_dup = 0, c_get = 0, c_pget = 0x65707974, c_put = 0x656d616e, c_am_bulk = 0x63657620, c_am_close = 0x7361625f, c_am_del = 0x2c543c65, c_am_destroy = 0x3a3e4e20, c_am_get = 0x6d6c653a, c_am_put = 0x2026745f, c_am_writelock = 0x3c636576, c_real_get = 0x4e202c54, flags = 1866086974} -vinod On Fri, 7 Mar 2003, Ben Podoll wrote: > Looks like possibly something in the db->open params might be causing > the seg. Fault. > > ~Ben > benjamin.podoll@xxxxxxxxxxxxx > bspsoftware.dyndns.org > Phone & Fax 701-772-7152 > > -----Original Message----- > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx] > Sent: Friday, March 07, 2003 1:55 AM > To: Ben Podoll > Cc: sfs@xxxxxxxxxx > Subject: RE: sfs compile problems > > i finally got both chord and sfs to compile. The problem was that i did > not have dmalloc installed. > > i also had problems with line 14 (arguments for db->open) in dbdump.C > (sfsnet/devel). > > -> db->open(db, argv[1], NULL, DB_BTREE, 0, 0664); > ==> db->open(db, NULL, (const char*) argv[1], NULL, DB_BTREE, 0, 0664) > > now it compiles but segfaults > > # ./lsd -j wailhome:10000 -p 10000 > 1047026056.716390 lsd: starting: ./lsd -j wailhome -p 10000 > chord: running on 10.2.10.252:10000 > lsd: CREATED RPC MANAGER > 1047026056.717209 loctable: insert > 9173f7cbbc4f426392eca75f3a45781d292f69c2 127.0.0.1:10000 0 > lsd: lsd: created new dhash > Segmentation fault > > -vinod > > > > > > > > > > I am using sfs-0.7.2 and yes I am compiling with --with-dmalloc > > --with-db3 > > > > Actually I did get some feedback from a guy at MIT (Thome) regarding > it > > is tricky getting sfs and chord to work on Linux since it is meant for > > FreeBSD but messing around with Makefiles and CFLAGS should help. That > > is not what I wanted to hear though... > > > > ~Ben > > benjamin.podoll@xxxxxxxxxxxxx > > bspsoftware.dyndns.org > > Phone & Fax 701-772-7152 > > > > -----Original Message----- > > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx] > > Sent: Thursday, March 06, 2003 11:19 PM > > To: Ben Podoll > > Cc: sfs@xxxxxxxxxx > > Subject: RE: sfs compile problems > > > > > > im getting the same error using gcc-2.95.3 (on a redhat 6.2)... what > > version of sfs are you compiling (and are you compiling > > "--with-dmalloc")? > > > > # ../src/sfs1/configure --with-dmalloc --with-db3 > > > > > > In file included from ../../src/sfs-0.7.2/async/clock_gettime.c:25: > > ../../src/sfs-0.7.2/async/sysconf.h:446: dmalloc.h: No such file or > > directory > > > > > > -vinod > > > > > > > > On Thu, 6 Mar 2003, Ben Podoll wrote: > > > > > In the chord how-to page I think is says: > > > > > > * GCC 2.95 (not 2.96, although 3.x should work) > > > > > > ~Ben > > > benjamin.podoll@xxxxxxxxxxxxx > > > bspsoftware.dyndns.org > > > Phone & Fax 701-772-7152 > > > > > > -----Original Message----- > > > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx] > > > Sent: Thursday, March 06, 2003 10:26 PM > > > To: Ben Podoll > > > Subject: RE: sfs compile problems > > > > > > sorry, i assumed you were involved in the development. i have 2.96, > > and > > > 3.0.4 > > > > > > -vinod > > > > > > > > > > > > > > > > What is in your /usr/lib/gcc-lib/i386-redhat-linux directory? > > > > > > > > ~Ben > > > > benjamin.podoll@xxxxxxxxxxxxx > > > > bspsoftware.dyndns.org > > > > Phone & Fax 701-772-7152 > > > > > > > > -----Original Message----- > > > > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx] > > > > Sent: Thursday, March 06, 2003 10:01 PM > > > > To: Ben Podoll > > > > Subject: RE: sfs compile problems > > > > > > > > hi Ben, > > > > > > > > any ideas? should i try a different OS? > > > > > > > > -vinod > > > > > > > > > > > > On Wed, 5 Mar 2003, Vinod Yegneswaran wrote: > > > > > > > > > linux, redhat 7.3 i believe... > > > > > > > > > > -vinod > > > > > > > > > > On Wed, 5 Mar 2003, Ben Podoll wrote: > > > > > > > > > > > What OS are you running? > > > > > > > > > > > > ~Ben > > > > > > benjamin.podoll@xxxxxxxxxxxxx > > > > > > bspsoftware.dyndns.org > > > > > > Phone & Fax 701-772-7152 > > > > > > > > > > > > -----Original Message----- > > > > > > From: Vinod Yegneswaran [mailto:vinod@xxxxxxxxxxx] > > > > > > Sent: Wednesday, March 05, 2003 9:53 PM > > > > > > To: sfs@xxxxxxxxxx > > > > > > Subject: sfs compile problems > > > > > > > > > > > > hi, > > > > > > > > > > > > i was trying to build chord and im getting the following > error > > > > > > compiling > > > > > > sfs. any help would be appreciated. > > > > > > > > > > > > In file included from ../../src/sfs1/async/clock_gettime.c:25: > > > > > > ../../src/sfs1/async/sysconf.h:446:21: dmalloc.h: No such file > > or > > > > > > directory > > > > > > cc1: warnings being treated as errors > > > > > > In file included from ../../src/sfs1/async/clock_gettime.c:25: > > > > > > ../../src/sfs1/async/sysconf.h: In function `_xfree_wrap': > > > > > > ../../src/sfs1/async/sysconf.h:458: warning: implicit > > declaration > > > of > > > > > > function `_xfree_leap' > > > > > > > > > > > > > > > > > > > > > > > > looks like im missing dmalloc.h? btw i had uploaded the > latest > > > > version > > > > > > via cvs and im using gcc3. > > > > > > > > > > > > # env CC=gcc3 CXX=g++3 ../src/sfs1/configure --with-dmalloc > > > > > > --with-sfsuser > > > > > > --with-sfsgroup --with-db3 > > > > > > # make > > > > > > > > > > > > > > > > > > thanks > > > > > > vinod > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Health information for sfs@xxxxxxxxxx: 00016, Leonia Fickes |
|---|---|
| Next by Date: | Re: sfs compile problems: 00016, Kevin Fu |
| Previous by Thread: | RE: sfs compile problemsi: 00016, Vinod Yegneswaran |
| Next by Thread: | Re: sfs compile problems: 00016, Kevin Fu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |