[Pkg-db-devel] Bug#255834: libdb4.2: segfault on opening database created with different word size

Matthew Mueller Matthew Mueller <donut@dakotacom.net>, 255834@bugs.debian.org
Wed, 23 Jun 2004 03:58:41 -0700


Package: libdb4.2
Version: 4.2.52-16.amd64.2
Severity: normal

I noticed that on amd64 svn segfaults when it tries to access
repositories that were created on i386.
Accessing repositories created by the amd64 svnadmin works.

Since the problem seems to be in db4.2, I'm submitting it here..

Here is a backtrace:
(gdb) bt full
#0  0x0000002a9602ab5a in __db_des_get (dbenv=3D0x532a90, env_infop=3D0x5=
32fe0, infop=3D0x532fe0,=20
    rpp=3D0x7fbfffeb50) at ../env/env_region.c:1100
        renv =3D (REGENV *) 0x2a988d9000
        rp =3D (REGION *) 0x31988d9038
        first_type =3D (REGION *) 0x0
        maxid =3D 1
        ret =3D -1735553024
#1  0x0000002a96029847 in __db_e_attach_4002 (dbenv=3D0x532a90, init_flag=
sp=3D0x7fbfffebfc)
    at ../env/env_region.c:305
        renv =3D (REGENV *) 0x2a988d9000
        ref =3D {size =3D 92, segid =3D 548682066940}
        infop =3D (REGINFO *) 0x532fe0
        rp =3D (REGION *) 0x0
        tregion =3D {mutex =3D {tas =3D 0 '\0', locked =3D 0, mutex_set_w=
ait =3D 0, mutex_set_nowait =3D 0,=20
    mutex_set_spin =3D 0, mutex_set_spins =3D 0, flags =3D 0}, q =3D {sle=
_next =3D 0, sle_prev =3D 0},=20
  type =3D INVALID_REGION_TYPE, id =3D 0, size =3D 8192, primary =3D 0, s=
egid =3D -1}
        size =3D 8192
        nrw =3D 182926402824
        mbytes =3D 0
        bytes =3D 8192
        retry_cnt =3D 0
        ret =3D 0
        segid =3D -1
        buf =3D "__db.001\000\016S\000\000\000\000\000xP=EF=BF=BD\225*\00=
0\000\000=EF=BF=BDh=EF=BF=BD\225*"
#2  0x0000002a960257b2 in __dbenv_open_4002 (dbenv=3D0x532a90, db_home=3D=
0x530e68 "/tmp/s2/par2ls/db",=20
    flags=3D188417, mode=3D438) at ../env/env_open.c:207
        dbmp =3D (DB_MPOOL *) 0x530bc8
        init_flags =3D 92
        orig_flags =3D 0
        rep_check =3D 0
        ret =3D 0
#3  0x0000002a9776faf9 in svn_fs_open_berkeley (fs=3D0x530b10, path=3D0x5=
2ebc8 "/tmp/s2/par2ls/db")
    at subversion/libsvn_fs/fs.c:610
        svn_err =3D (svn_error_t *) 0x0
        path_native =3D 0x530e68 "/tmp/s2/par2ls/db"
#4  0x0000002a97658102 in get_repos (repos_p=3D0x520f88, path=3D0x520ff8 =
"/tmp/s2/par2ls", locktype=3D1,=20
    open_fs=3D1, pool=3D0x51f188) at subversion/libsvn_repos/repos.c:1040
        svn_err__temp =3D (svn_error_t *) 0x52ec40
        repos =3D (svn_repos_t *) 0x52eb80
#5  0x0000002a976581da in svn_repos_open (repos_p=3D0x520f88, path=3D0x52=
0ff8 "/tmp/s2/par2ls",
    pool=3D0x51f188) at subversion/libsvn_repos/repos.c:1075
        svn_err__temp =3D (svn_error_t *) 0x520f88
#6  0x0000002a97545aa3 in svn_ra_local__split_URL (repos=3D0x520f88, repo=
s_url=3D0x520f78,=20
    fs_path=3D0x520f80, URL=3D0x520fd8 "file:///tmp/s2/par2ls", pool=3D0x=
51f188)
    at subversion/libsvn_ra_local/split_url.c:107
        err =3D (svn_error_t *) 0x0
        repos_root =3D 0x520ff8 "/tmp/s2/par2ls"
        hostname =3D 0x520fdf "/tmp/s2/par2ls"
        path =3D 0x520fdf "/tmp/s2/par2ls"
#7  0x0000002a975444ea in svn_ra_local__open (session_baton=3D0x7fbfffef8=
8,=20
    repos_URL=3D0x520b80 "file:///tmp/s2/par2ls", callbacks=3D0x520f08, c=
allback_baton=3D0x520f38,=20
    config=3D0x51f8b0, pool=3D0x51f188) at subversion/libsvn_ra_local/ra_=
plugin.c:156
        svn_err__temp =3D (svn_error_t *) 0x2330a2e
        session =3D (svn_ra_local__session_baton_t *) 0x520f60
        iterstate =3D (svn_auth_iterstate_t *) 0x2a9556a2f0
#8  0x0000002a956873f5 in svn_client__open_ra_session (session_baton=3D0x=
7fbfffef88,=20
    ra_lib=3D0x2a97646060, base_url=3D0x520b80 "file:///tmp/s2/par2ls",=20
    base_dir=3D0x520ec8 "file:///tmp/s2/par2ls", base_access=3D0x0, commi=
t_items=3D0x0, use_admin=3D1,=20
    read_only_wc=3D1, ctx=3D0x51f870, pool=3D0x51f188) at subversion/libs=
vn_client/ra.c:259
        svn_err__temp =3D (svn_error_t *) 0x7fbfffefd0
        cbtable =3D (svn_ra_callbacks_t *) 0x520f08
        cb =3D (svn_client__callback_baton_t *) 0x520f38
#9  0x0000002a956842d3 in svn_client_log (targets=3D0x520950, start=3D0x7=
fbffff260, end=3D0x7fbffff270,=20
    discover_changed_paths=3D0, strict_node_history=3D0, receiver=3D0x406=
fd2 <log_message_receiver>,=20
    receiver_baton=3D0x7fbffff020, ctx=3D0x51f870, pool=3D0x51f188) at su=
bversion/libsvn_client/log.c:172
        svn_err__temp =3D (svn_error_t *) 0x0
        ra_lib =3D (svn_ra_plugin_t *) 0x2a97646060
        ra_baton =3D (void *) 0x520ca8
        session =3D (void *) 0x2a9555ff22
        path =3D 0x520b80 "file:///tmp/s2/par2ls"
        base_url =3D 0x520b80 "file:///tmp/s2/par2ls"
        base_name =3D 0x520ec8 "file:///tmp/s2/par2ls"
---Type <return> to continue, or q <return> to quit---
        condensed_targets =3D (apr_array_header_t *) 0x520c80
        start_revnum =3D -1
        end_revnum =3D -1
        err =3D (svn_error_t *) 0x0
#10 0x0000000000407c89 in svn_cl__log (os=3D0x51f1f0, baton=3D0x7fbffff15=
0, pool=3D0x51f188)
    at subversion/clients/cmdline/log-cmd.c:574
        svn_err__temp =3D (svn_error_t *) 0x0
        opt_state =3D (svn_cl__opt_state_t *) 0x7fbffff260
        ctx =3D (svn_client_ctx_t *) 0x51f870
        targets =3D (apr_array_header_t *) 0x520950
        lb =3D {cancel_func =3D 0x4081f0 <svn_cl__check_cancel>, cancel_b=
aton =3D 0x0,=20
  omit_log_message =3D 0, out =3D 0x520c40}
#11 0x00000000004094aa in main (argc=3D3, argv=3D0x7fbffff408)
    at subversion/clients/cmdline/main.c:1264
        err =3D (svn_error_t *) 0x0
        allocator =3D (apr_allocator_t *) 0x51f090
        pool =3D (apr_pool_t *) 0x51f188
        opt_id =3D 0
        os =3D (apr_getopt_t *) 0x51f1f0
        opt_state =3D {start_revision =3D {kind =3D svn_opt_revision_head=
, value =3D {number =3D 0,=20
      date =3D 0}}, end_revision =3D {kind =3D svn_opt_revision_number, v=
alue =3D {number =3D 1, date =3D 1}},=20
  recursive =3D 0, nonrecursive =3D 0, message =3D 0x0, ancestor_path =3D=
 0x0, force =3D 0, force_log =3D 0,=20
  incremental =3D 0, quiet =3D 0, non_interactive =3D 0, version =3D 0, v=
erbose =3D 0, update =3D 0,=20
  strict =3D 0, filedata =3D 0x0, encoding =3D 0x0, help =3D 0, auth_user=
name =3D 0x0, auth_password =3D 0x0,=20
  extensions =3D 0x0, targets =3D 0x0, xml =3D 0, no_ignore =3D 0, no_aut=
h_cache =3D 0, no_diff_deleted =3D 0,=20
  notice_ancestry =3D 0, ignore_ancestry =3D 0, stop_on_copy =3D 0, dry_r=
un =3D 0, revprop =3D 0,=20
  diff_cmd =3D 0x0, merge_cmd =3D 0x0, editor_cmd =3D 0x0, old_target =3D=
 0x0, new_target =3D 0x0,=20
  relocate =3D 0, config_dir =3D 0x0, autoprops =3D 0, no_autoprops =3D 0=
}
        ctx =3D (svn_client_ctx_t *) 0x51f870
        received_opts =3D {-1742018976, 42, -1789539871, 42, 1, 127, -178=
9537548, 157882997,=20
  -1742077950, 42, 0, 0, 128682482, 0, 0, 1, -1759429506, 42, -1759449896=
, 42, 37, 0, -1744438608,=20
  42, -1744438264, 42, 22, 0, -1073745136, 127, 4196248, 0, 24641422, 0, =
4204466, 0, 0, 0,=20
  -1789488336, 42, -1073745072, 127, 4204466, 0, -1744438264, 42, -107374=
5136, 127, -1073745024,=20
  127}
        i =3D 0
        num_opts =3D 0
        subcommand =3D (const svn_opt_subcommand_desc_t *) 0x414f10
        log_under_version_control =3D 0
        log_is_pathname =3D 0
        apr_err =3D 70014
        command_baton =3D {opt_state =3D 0x7fbffff260, ctx =3D 0x51f870}
        ab =3D (svn_auth_baton_t *) 0x5204b8
        cfg =3D (svn_config_t *) 0x51fcc0
(gdb)=20


-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.7
Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8

Versions of packages libdb4.2 depends on:
ii  libc6                 2.3.2.ds1-13.0.0.1 GNU C Library: Shared librar=
ies an

-- no debconf information