[Fedora-directory-devel] Please review: [Bug 231093] db2bak: crash bug

Noriko Hosoi nhosoi at redhat.com
Tue Mar 6 02:49:46 UTC 2007


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 at redhat.com  2007-03-05 21:45 EST -------
Created an attachment (id=149315)
 --> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=149315&action=view)
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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20070305/336c5aca/attachment.bin>


More information about the Fedora-directory-devel mailing list