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

(ITS#5162) Bus Error - core dumped



Full_Name: Piotr Tarnowski (DrFugazi)
Version: 2.3.38
OS: Solaris 10 U4
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (155.158.96.61)


Hello,

I compiled the newest version of OpenLDAP (2.3.38) on Solaris 10 U4 (8/07)
system.
I tried many times with many compilation options, but I still have an error with
'gmake test':

>>>>> Starting test001-slapadd ...
running defines.sh
Running slapadd to build slapd database...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
4378 Bus Error - core dumped
Waiting 5 seconds for slapd to start...

------------

In tests/testrun/slapd.1.log I found:

daemon: select: listen=8 active_threads=0 tvp=NULL
daemon: activity on 1 descriptor
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 60 07 02                            0....`..          
ldap_read: want=6, got=6
  0000:  01 03 04 00 80 00                                  ......            
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x001cbef0 ptr=0x001cbef0 end=0x001cbefc len=12
  0000:  02 01 01 60 07 02 01 03  04 00 80 00               ...`........      
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
daemon: select: listen=8 active_threads=0 tvp=NULL
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x001cbef0 ptr=0x001cbef3 end=0x001cbefc len=9
  0000:  60 07 02 01 03 04 00 80  00                        `........         
ber_scanf fmt (m}) ber:
ber_dump: buf=0x001cbef0 ptr=0x001cbefa end=0x001cbefc len=2
  0000:  00 00                                              ..                
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
conn=0 op=0 BIND dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 12
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........    
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........    
conn=0 op=0 RESULT tag=97 err=0 text=
do_bind: v3 anonymous bind
daemon: activity on 1 descriptor
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 36 02 01 02 63 31 04                            06...c1.          
ldap_read: want=48, got=48
  0000:  11 64 63 3d 65 78 61 6d  70 6c 65 2c 64 63 3d 63   .dc=example,dc=c  
  0010:  6f 6d 0a 01 02 0a 01 00  02 01 00 02 01 00 01 01   om..............  
  0020:  00 87 0b 6f 62 6a 65 63  74 63 6c 61 73 73 30 00   ...objectclass0.  
ber_get_next: tag 0x30 len 54 contents:
ber_dump: buf=0x001acdd8 ptr=0x001acdd8 end=0x001ace0e len=54
  0000:  02 01 02 63 31 04 11 64  63 3d 65 78 61 6d 70 6c   ...c1..dc=exampl  
  0010:  65 2c 64 63 3d 63 6f 6d  0a 01 02 0a 01 00 02 01   e,dc=com........  
  0020:  00 02 01 00 01 01 00 87  0b 6f 62 6a 65 63 74 63   .........objectc  
  0030:  6c 61 73 73 30 00                                  lass0.            
ber_get_next
do_search
ldap_read: want=8 error=Resource temporarily unavailable
ber_scanf fmt ({miiiib) ber:
ber_dump: buf=0x001acdd8 ptr=0x001acddb end=0x001ace0e len=51
  0000:  63 31 04 11 64 63 3d 65  78 61 6d 70 6c 65 2c 64   c1..dc=example,d  
  0010:  63 3d 63 6f 6d 0a 01 02  0a 01 00 02 01 00 02 01   c=com...........  
  0020:  00 01 01 00 87 0b 6f 62  6a 65 63 74 63 6c 61 73   ......objectclas  
  0030:  73 30 00                                           s0.               
daemon: select: listen=8 active_threads=0 tvp=NULL
>>> dnPrettyNormal: <dc=example,dc=com>
=> ldap_bv2dn(dc=example,dc=com,0)
<= ldap_bv2dn(dc=example,dc=com)=0 
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com)=0 
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com)=0 
<<< dnPrettyNormal: <dc=example,dc=com>, <dc=example,dc=com>
SRCH "dc=example,dc=com" 2 0    0 0 0
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x001acdd8 ptr=0x001acdff end=0x001ace0e len=15
  0000:  87 0b 6f 62 6a 65 63 74  63 6c 61 73 73 30 00      ..objectclass0.   
end get_filter 0
    filter: (objectClass=*)
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x001acdd8 ptr=0x001ace0c end=0x001ace0e len=2

-----------

Output from truss:
(...)
26487/3:        write(2, " b d b _ d n 2 e n t r y".., 34)      = 34
26487/3:        write(2, " = >   b d b _ d n 2 i d".., 34)      = 34
26487/3:        write(2, " < =   b d b _ d n 2 i d".., 32)      = 32
26487/3:            Incurred fault #5, FLTACCESS  %pc = 0x7E72B4D0
26487/3:              siginfo: SIGBUS BUS_ADRALN addr=0x00000032
26487/3:            Received signal #10, SIGBUS [default]
26487/3:              siginfo: SIGBUS BUS_ADRALN addr=0x00000032
26392:  waitid(P_PID, 26517, 0xFFBFF5C0, WEXITED|WTRAPPED|WNOWAIT)
(sleeping...)
(...)

-------------

Is this a software error, or compiler/system issue ? I use Sun Studio 12 on
sparc.

Machine hardware:   sun4u
OS version:         5.10
Processor type:     sparc
Hardware:           SUNW,Sun-Fire-V890

The following components are installed on your system:


Sun Studio 12
        Sun Studio 12 C Compiler
        Sun Studio 12 C++ Compiler
        Sun Studio 12 Tools.h++ 7.1
        Sun Studio 12 C++ Standard 64-bit Class Library
        Sun Studio 12 Garbage Collector 
        Sun Studio 12 Fortran 95 
        Sun Studio 12 Debugging Tools (including dbx)
        Sun Studio 12 IDE
        Sun Studio 12 Debugger GUI
        Sun Studio 12 Performance Analyzer (including collect, ...)
        Sun Studio 12 X-Designer 
        Sun Studio 12 VIM editor
        Sun Studio 12 XEmacs editor
        Sun Studio 12 Performance Library 
        Sun Studio 12 LockLint
        Sun Studio 12 Building Software (including dmake)
        Sun Studio 12 Documentation Set
        Sun Studio 12 /usr symbolic links and GNOME menu item

version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.9 SunOS_sparc
Patch 124867-01 2007/07/12
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.9 SunOS_sparc
Patch 124863-01 2007/07/25
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.3
SunOS_sparc Patch 127000-01 2007/07/18
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.6
SunOS_sparc Patch 124872-02 2007/08/16
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Analyzer 7.6
SunOS_sparc Patch 126995-01 2007/07/17
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make
7.8 SunOS_sparc Patch 126503-01 2007/07/19


Regards
-- 
Piotr (DrFugazi) Tarnowski