[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Getting core dump with slapd

Venkataraman, Jeeva writes:
> We are on OpenLDAP v2 and the server suddenly crashes with a core dump.
> Says nothing more than. 
> Bus error (core dump)
> Consistently happens when we try to perform authentication.

Could you poke around in the coredump and post the results - or better,
submit it via ITS at http://www.openldap.org/its/ ?

I think you must run slapd from the source tree instead of the installed
directory to get a useful coredump, since installation strips away
debugging symbols.  To log the results, and if you have the debugger
GDB, you can do e.g.  this when you have a corefile: (core below is
supposed to be the corefile name):
	> script		# copies i/o to file 'typescript'
        > gdb src/openldap-2.0.23/servers/slapd/slapd core
	(gdb) dir src/openldap-2.0.23/servers/slapd/slapd
	(gdb) bt		# shows a backtrace
	(gdb) p expression	# print a C expression, so you can
				# try to find out if a NULL is dereferenced
				# or whatever.
	(gdb) quit
	> exit			# important! ends the 'script' command
Now post the file typescript with the results.