Summary: db2bak: crash bug
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=231093
Description of problem:
db2bak crashed in one of the failed test cases. Caused by the initial configuration
error:
errors:[...] - Db home directory is not set. Possibly nsslapd-directory (optinally
nsslapd-db-home-directory) is missing in the config file.
Still, the server should not crash.
[stacktrace]
#0 0xb6edd2c7 in dblayer_get_full_inst_dir (li=0x8127350, inst=0x8187f00,
buf=0xbfffc480 "", buflen=4096)
at ldap/servers/slapd/back-ldbm/dblayer.c:1209
#1 0xb6ee4d42 in dblayer_in_import (inst=0x8187f00)
at ldap/servers/slapd/back-ldbm/dblayer.c:5623
#2 0xb6ed8bd0 in ldbm_back_ldbm2archive (pb=0xbfffd570)
at ldap/servers/slapd/back-ldbm/archive.c:353
#3 0x0805d59e in slapd_exemode_db2archive () at ldap/servers/slapd/main.c:2457
#4 0x0805e5e7 in main (argc=6, argv=0xbfffdca4)
at ldap/servers/slapd/main.c:947
------- Additional Comments From nhosoi(a)redhat.com 2007-03-05 21:45 EST -------
Created an attachment (id=149315)
--> (
https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=149315&action=...)
cvs diff dblayer.c
File: ldap/servers/slapd/back-ldbm/dblayer.c
Problem description:
The server instance home directory in the dblayer private structure
(li->li_dblayer_private) is empty. Either of these fields is supposed to be set:
dblayer_home_directory = 0x0
dblayer_dbhome_directory = 0x8125ba0 ""
Fix descrption: if the fields are not set, issues an error message and returns.