From: David M. <mdb...@dm...> - 2003-04-09 02:59:57
|
Hi Brian, It seems as though the table->num_rows variable contains junk. It is always 1625 (or thereabouts) for every table in my Jet4 database. In any case, the mdb_get_relations was seg-faulting because it was accessing a bogus page. It was accessing a bogus page because the allocation map specifies no pages at all. In this case, the initial mdb_read_next_dpg is returning 0, but the code ignores this and uses the data in mdb->pg_bug as if it were valid. The attached patch fixes this, and cures the segfault (also reported on the list) in the mdb-schema relations section. Apply with -p1. David -- /==============================\ | David Mansfield | | mdb...@dm... | \==============================/ |