[Pkg-db-devel] Bug#255834: libdb4.2: a bit more gdb info

Matthew Mueller Matthew Mueller <donut@dakotacom.net>, 255834@bugs.debian.org
Wed, 23 Jun 2004 04:14:30 -0700


This is from the same gdb session as the backtrace:

(gdb) frame 0
#0  0x0000002a9602ab5a in __db_des_get (dbenv=0x532a90, env_infop=0x532fe0, infop=0x532fe0, 
    rpp=0x7fbfffeb50) at ../env/env_region.c:1100
1100                            if (infop->id == rp->id)
(gdb) l
1095            maxid = REGION_ID_ENV;
1096            for (first_type = NULL,
1097                rp = SH_LIST_FIRST(&renv->regionq, __db_region);
1098                rp != NULL; rp = SH_LIST_NEXT(rp, q, __db_region)) {
1099                    if (infop->id != INVALID_REGION_ID) {
1100                            if (infop->id == rp->id)
1101                                    break;
1102                            continue;
1103                    }
1104                    if (infop->type == rp->type &&
(gdb) print *infop
$6 = {type = REGION_TYPE_ENV, id = 1, mode = 438, rp = 0x0, 
  name = 0x533040 "/tmp/s2/par2ls/db/__db.001", addr = 0x2a988d9050, primary = 0x2a988d9000, 
  flags = 4}
(gdb) print *rp
Cannot access memory at address 0x31988d9038