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

Re: disappearing daemon ...



>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.
>
>
>Jim Moe

Jim,

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,

Tony

P.S. When I tried to look at any variables, I was unable to since it said
that they didn't exists in the current context. Later, I tried to run the
program from within gdb, but it would immediately return and I could never
get anywhere.


******************************************
Script started on Mon Nov 02 11:15:30 1998
# gdb /usr/local/libexec/slapd `pwd`/core
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.5.1"...
Core was generated by `/usr/local/libexec/slapd -f
/usr/local/etc/ldap/slapd.conf -d 128'.
Program terminated with signal 9, Killed.
Reading symbols from /usr/lib/libthread.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
#0  0xef5cbc94 in realfree ()
(gdb) backtrace
#0  0xef5cbc94 in realfree ()
#1  0xef5cb728 in _malloc_unlocked ()
#2  0xef5cb4a8 in malloc ()
#3  0xef59b6e0 in regblock ()
#4  0xef59b678 in regnode ()
#5  0xef59ae04 in regatom ()
#6  0xef59a0f8 in regpiece ()
#7  0xef59a04c in regbranch ()
#8  0xef599e24 in reg ()
#9  0xef5998a8 in regwcomp ()
#10 0xef599694 in regcomp ()
#11 0x234e0 in regex_matches (pat=0x53670 ".*",
    str=0x165800 "CN=WEB MASTER,O=GEORGE FOX UNIVERSITY,C=US",
    buf=0xee80f6e0 "", matches=0xee80f9f8) at acl.c:551
#12 0x228f4 in acl_access_allowed (a=0x52d18, be=0x53a30, conn=0x5e830,
    e=0x198650, val=0x178ef8, op=0x2038d0, access=4,
    edn=0x15b138 "CN=JANELLE RAE DIDERICKSEN,O=GEORGE FOX UNIVERSITY,C=US",
    matches=0xee80f9f8) at acl.c:291
#13 0x21ea8 in access_allowed (be=0x53a30, conn=0x5e830, op=0x2038d0,
    e=0x198650, attr=0xfc7d8 "uid", val=0x178ef8,
    dn=0xfa050 "cn=Web Master,o=George Fox University,c=US", access=339224)
    at acl.c:99
#14 0x20654 in test_ava_filter (be=0x4d000, conn=0x39800, op=0x15b138,
    e=0x198650, ava=0x178ef4, type=163) at filterentry.c:115
#15 0x202b8 in test_filter (be=0x53a30, conn=0x5e830, op=0x2038d0, e=0x198650,
    f=0x178ef0) at filterentry.c:61
#16 0x2cddc in ldbm_back_search (be=0x53a30, conn=0x5e830, op=0x2038d0,
    base=0x165690 "o=George Fox University,c=US", scope=1, deref=342576,
    slimit=0, tlimit=0, filter=0x178ef0, filterstr=0xfc9f8 "(uid=ABROCK)",
    attrs=0x0, attrsonly=0) at search.c:179
#17 0x17b40 in do_search (conn=0x5e830, op=0x2038d0) at search.c:166
#18 0x16f60 in connection_operation (arg=0xfc818) at connection.c:84
(gdb) quit
# ^D
script done on Mon Nov 02 11:15:49 1998
******************************************

============================================================================
Anthony W. Brock                               Directory of Network Services
abrock@georgefox.edu                                  George Fox Univerisity
----------------------------------------------------------------------------