[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: disappearing daemon ...
On Mon, Nov 02, 1998 at 12:03:37PM -0800, Anthony Brock wrote:
> >On Fri, 30 Oct 1998 12:51:48 -0800, Anthony Brock wrote:
> >
> >>filter="(uid=ABROCK)"
> >>Bus Error - core dumped
> >>#
> >
> > "Bus Error" on a Sun system means an attempt to use an integer at a
> >non-4-byte
> >boundary. This can happen when using a pointer into a sequence of bytes (a
> >string, or
> >a struct of some sort) and attempting to cast it to an (32 bit) integer
> >when the
> >pointer is not aligned as required.
> >
>
> I'm sorry to bother you, but I am in over my head here. After following
> the instructions mentioned by a recent post, I have isolated the problem to
> a call by slapd (specifically, in servers/slapd/acl.c line 548) to
> regcomp(). The crash usually occurs three or four function levels deep in
> this call, which (I think) is a system call.
>
> The following is the output from the script, and mentioned by someone
> earlier on the list. Until this error is fixed, I am stuck and unable to
> proceed. ANY help is GREATLY appreciated!
>
> Again, I apologize for my bad programming skills, but I simply do not know
> where to go from here. Thanks in advance,
First thing, can we check that the string_expand() call is working.. please
add a Debug() call:
string_expand(newbuf, sizeof(newbuf), pat, buf, matches);
Debug( LDAP_DEBUG_TRACE, "regex_matches: newbuf: %s\n", newbuf, 0, 0);
if (( rc = regcomp(&re, newbuf, REG_EXTENDED|REG_ICASE))) {
char error[512];
regerror(rc, &re, error, sizeof(error));
Debug( LDAP_DEBUG_TRACE,
"compile( \"%s\", \"%s\") failed %s\n",
pat, str, error );
return( 0 );
}
Please run with:
-d 1 -d 4 -d 32 -d 128
and send me the stderr output and your debug output..
--
Stuart Lynne <sl@fireplug.net> 604-461-7532 <http://www.fireplug.net>
PGP Fingerprint: 28 E2 A0 15 99 62 9A 00 88 EC A3 EE 2D 1C 15 68