1753701 Members
5094 Online
108799 Solutions
New Discussion юеВ

Hi ,why SIGBUS Error ?

 
Cai Wenliang
Advisor

Hi ,why SIGBUS Error ?

hi, all
I am a developer worked on hpux11i+Oracle+Orbix. Now I encount a big problem -- My server process coredumped by receiving signal 10. It has runned smoothly in the past week. I have also taken care avoiding memory leak or involid memory access in my program .
below is the information generated by gdb:
$ /home/test1/clo2/Management > gdb /home/test1/clo2/Management/ltManagerServer core
Detected 64-bit executable.
Invoking /opt/langtools/bin/gdb64.
HP gdb 3.0 for PA-RISC 2.0 (wide), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..(no debugging symbols found)...

warning: exec file is newer than core file.
Core was generated by `ltManagerServe'.
Program terminated with signal 10, Bus error.
(no debugging symbols found)...
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

/home/iona/asp60sp2/shlib/pa20_64/libit_naming_acca0331.5: No such file or directory.
#0 0xc000000002198c94 in ?? ()
(gdb) info registers
flags: 32000041 r17: 0 pcsqh: 99f2c00 cr0: 0
r1: 800003ffff3845f8 r18: 50002da9 pcoqt: c000000002198c98 cr8: 21df368
rp: c000000002198c1f r19: 8000000100035888 pcsqt: 99f2c00 cr9: 21df378
r3: 0 r20: 8000000100cbfff8 eiem: ffffffffffffffff ccr: a1f5e8
r4: 80000001003b9fc0 r21: 90 iir: 50a10010 cr12: a1f5f8
r5: fffffffffffffffc r22: 800003ffff3d4418 isr: 99f2c00 cr13: a1f5f0
r6: 0 r23: 8000000100039888 ior: c000000000000004 cr24: a1f600
r7: 80000001003b9fc8 r24: 392d8 ipsw: 804061f cr25: a1f608
r8: 8000000100039888 r25: c0000000000beb30 goto: 1fb980 cr26: a1f610
r9: 50002da9 r26: b sr4: 8022400 mpsfu_high: 800000010035bf18
r10: 8000000100c2ace0 dp: 800003ffff384df8 sr0: 99f2c00 mpsfu_low: a1f620
r11: 0 ret0: 0 sr1: 0 mpsfu_ovfl: 41
r12: 2 ret1: 36 sr2: 0 pad: 4f52f2284eb1e570
r13: 8000000100c32cb0 sp: 800003ffff16e4c0 sr3: 0 fpsr: 800000000000000
r14: 2 r31: 8000000100039888 sr5: 900b400 fpe1: 0
r15: 0 sar: 3a sr6: 5d0c800 fpe2: 0
r16: 8000000100c7c830 pcoqh: c000000002198c94 sr7: 99f2c00 fpe3: 0

anybody can told me how to do ?
any help are appreciated greatly .
ccba
28 REPLIES 28
Michael Tully
Honored Contributor

Re: Hi ,why SIGBUS Error ?

Seems you could have a problem with either kernel parameters (maxssiz/maxdsiz/maxdsiz_64) or your application has encountered some out of bounds memory address. Suggest you download and install tusc, and trace what the application is trying to do.

You can get tusc from here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/
Anyone for a Mutiny ?
A. Clay Stephenson
Acclaimed Contributor

Re: Hi ,why SIGBUS Error ?

A register dump is of very little use; you need to use gdb to do a stack trace. That will pinpoint the exact error.

I don't know the gcc compiler options but the ANSI C compiler option that you need to use is -g. That will include symbolic data for the debugger in the executable; do not optimize at all as that will distort the debugger data.

Rm all your .o's; change the compiler options to use -g; do a make and do not strip. Execute your code and allow it to dump core. Now, when you use the debugger you can generate a stack trace, it will display the call stack and even give the source file and line number. With that you should have no trouble finding your bug --- and it is your code somewhere.
If it ain't broke, I can fix that.
Cai Wenliang
Advisor

Re: Hi ,why SIGBUS Error ?

but the machine my program runned on isn't allowed to install any more software. So I have to debug my program by only core file.
ccba
Cai Wenliang
Advisor

Re: Hi ,why SIGBUS Error ?

anybody can help me ?
Is it possible that it is oracle's or orbix's fault ?
I am lost in sea.
ccba
Steven E. Protter
Exalted Contributor

Re: Hi ,why SIGBUS Error ?

Its always nice to blame oracle, but in this case the dump file seems to say another application did it.

Perhaps oracle made the application do it.

What has changed since last week?

If its nothing, examine your oracle binaries, especially the ones involved in the error.

I have had several instances of oracle binaries mysteriously changing size and becoming corrupt. It caused all kinds of problems, Oracle blamed it on the disk(right, raid 1 mirror/ux).

I tracked down the problem binary and used scp to copy it to the affected system.

Relink Oracle.

Never a bad idea.

su - oracle

$ORACLE_HOME/bin

you can use

$relink all

which will re-link all the executables.

Make sure that you set your
$ORACLE_HOME/lib in your SHLIB_PATH variable.
If you are using 64 bit oracle version make sure also you have $ORACLE_HOME/lib64 in the SHLIB_PATH variable.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Cai Wenliang
Advisor

Re: Hi ,why SIGBUS Error ?

more gdb details:

(gdb) info stack
#0 0xc000000002198c94 in .stub+0xa6c () from /lib/pa20_64/libc.2
#1 0xc00000000219b414 in free+0x1a4 () from /lib/pa20_64/libc.2
#2 0xc0000000003e4d14 in operator delete+0x34 () from /lib/pa20_64/libCsup_v2.2
#3 0xc000000000daf5f8 in __dl__16CORBA_IT_MemBaseSFPv+0x28 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#4 0xc000000000f0d244 in IT_Binding_ThreadContextImpl::__dt+0x324 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#5 0xc000000000f0cb14 in IT_Binding_thread_context_impl_dtor+0x34 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#6 0xc000000001026268 in IT_TSVoidStar::run_destructor+0x60 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#7 0xc000000001026540 in IT_TSVoidStarCleaner::__dt+0xa0 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#8 0xc0000000003e5018 in __cxxTerm+0x48 () from /lib/pa20_64/libCsup_v2.2
#9 0xc000000002185088 in exit+0x88 () from /lib/pa20_64/libc.2
#10 0xc000000001878fd8 in Ldipme10+0x1ee2b0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#11 0xc000000001d52270 in Ldipme10+0x6c7548 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#12 0xc000000001d4fa98 in Ldipme10+0x6c4d70 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#13 0xc000000001b49384 in Ldipme10+0x4be65c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#14 0xc000000001961fb8 in Ldipme10+0x2d7290 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#15 0xc0000000017cdc18 in Ldipme10+0x142ef0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#16 0xc000000001776fa4 in Ldipme10+0xec27c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#17 0xc000000001728830 in Ldipme10+0x9db08 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#18 0xc000000001726688 in Ldipme10+0x9b960 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#19 0xc0000000017acd5c in Ldipme10+0x122034 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#20 0xc0000000010c88c0 in __text_seg+0x886f8 () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
#21 0xc0000000010c0764 in __text_seg+0x8059c () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
ccba
Cai Wenliang
Advisor

Re: Hi ,why SIGBUS Error ?

more gdb details:

(gdb) info stack
#0 0xc000000002198c94 in .stub+0xa6c () from /lib/pa20_64/libc.2
#1 0xc00000000219b414 in free+0x1a4 () from /lib/pa20_64/libc.2
#2 0xc0000000003e4d14 in operator delete+0x34 () from /lib/pa20_64/libCsup_v2.2
#3 0xc000000000daf5f8 in __dl__16CORBA_IT_MemBaseSFPv+0x28 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#4 0xc000000000f0d244 in IT_Binding_ThreadContextImpl::__dt+0x324 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#5 0xc000000000f0cb14 in IT_Binding_thread_context_impl_dtor+0x34 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#6 0xc000000001026268 in IT_TSVoidStar::run_destructor+0x60 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#7 0xc000000001026540 in IT_TSVoidStarCleaner::__dt+0xa0 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#8 0xc0000000003e5018 in __cxxTerm+0x48 () from /lib/pa20_64/libCsup_v2.2
#9 0xc000000002185088 in exit+0x88 () from /lib/pa20_64/libc.2
#10 0xc000000001878fd8 in Ldipme10+0x1ee2b0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#11 0xc000000001d52270 in Ldipme10+0x6c7548 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#12 0xc000000001d4fa98 in Ldipme10+0x6c4d70 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#13 0xc000000001b49384 in Ldipme10+0x4be65c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#14 0xc000000001961fb8 in Ldipme10+0x2d7290 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#15 0xc0000000017cdc18 in Ldipme10+0x142ef0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#16 0xc000000001776fa4 in Ldipme10+0xec27c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#17 0xc000000001728830 in Ldipme10+0x9db08 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#18 0xc000000001726688 in Ldipme10+0x9b960 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#19 0xc0000000017acd5c in Ldipme10+0x122034 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#20 0xc0000000010c88c0 in __text_seg+0x886f8 () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
#21 0xc0000000010c0764 in __text_seg+0x8059c () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
ccba
Cai Wenliang
Advisor

Re: Hi ,why SIGBUS Error ?

more gdb details:

(gdb) info stack
#0 0xc000000002198c94 in .stub+0xa6c () from /lib/pa20_64/libc.2
#1 0xc00000000219b414 in free+0x1a4 () from /lib/pa20_64/libc.2
#2 0xc0000000003e4d14 in operator delete+0x34 () from /lib/pa20_64/libCsup_v2.2
#3 0xc000000000daf5f8 in __dl__16CORBA_IT_MemBaseSFPv+0x28 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#4 0xc000000000f0d244 in IT_Binding_ThreadContextImpl::__dt+0x324 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#5 0xc000000000f0cb14 in IT_Binding_thread_context_impl_dtor+0x34 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#6 0xc000000001026268 in IT_TSVoidStar::run_destructor+0x60 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#7 0xc000000001026540 in IT_TSVoidStarCleaner::__dt+0xa0 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#8 0xc0000000003e5018 in __cxxTerm+0x48 () from /lib/pa20_64/libCsup_v2.2
#9 0xc000000002185088 in exit+0x88 () from /lib/pa20_64/libc.2
#10 0xc000000001878fd8 in Ldipme10+0x1ee2b0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#11 0xc000000001d52270 in Ldipme10+0x6c7548 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#12 0xc000000001d4fa98 in Ldipme10+0x6c4d70 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#13 0xc000000001b49384 in Ldipme10+0x4be65c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#14 0xc000000001961fb8 in Ldipme10+0x2d7290 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#15 0xc0000000017cdc18 in Ldipme10+0x142ef0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#16 0xc000000001776fa4 in Ldipme10+0xec27c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#17 0xc000000001728830 in Ldipme10+0x9db08 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#18 0xc000000001726688 in Ldipme10+0x9b960 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#19 0xc0000000017acd5c in Ldipme10+0x122034 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#20 0xc0000000010c88c0 in __text_seg+0x886f8 () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
#21 0xc0000000010c0764 in __text_seg+0x8059c () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
ccba
Cai Wenliang
Advisor

Re: Hi ,why SIGBUS Error ?

more gdb details:

(gdb) info stack
#0 0xc000000002198c94 in .stub+0xa6c () from /lib/pa20_64/libc.2
#1 0xc00000000219b414 in free+0x1a4 () from /lib/pa20_64/libc.2
#2 0xc0000000003e4d14 in operator delete+0x34 () from /lib/pa20_64/libCsup_v2.2
#3 0xc000000000daf5f8 in __dl__16CORBA_IT_MemBaseSFPv+0x28 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#4 0xc000000000f0d244 in IT_Binding_ThreadContextImpl::__dt+0x324 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#5 0xc000000000f0cb14 in IT_Binding_thread_context_impl_dtor+0x34 () from /home/iona/asp60sp2/shlib/pa20_64/libit_art_acca0331.5
#6 0xc000000001026268 in IT_TSVoidStar::run_destructor+0x60 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#7 0xc000000001026540 in IT_TSVoidStarCleaner::__dt+0xa0 () from /home/iona/asp60sp2/shlib/default/pa20_64/libit_ifc_acca0331.5
#8 0xc0000000003e5018 in __cxxTerm+0x48 () from /lib/pa20_64/libCsup_v2.2
#9 0xc000000002185088 in exit+0x88 () from /lib/pa20_64/libc.2
#10 0xc000000001878fd8 in Ldipme10+0x1ee2b0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#11 0xc000000001d52270 in Ldipme10+0x6c7548 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#12 0xc000000001d4fa98 in Ldipme10+0x6c4d70 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#13 0xc000000001b49384 in Ldipme10+0x4be65c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#14 0xc000000001961fb8 in Ldipme10+0x2d7290 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#15 0xc0000000017cdc18 in Ldipme10+0x142ef0 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#16 0xc000000001776fa4 in Ldipme10+0xec27c () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#17 0xc000000001728830 in Ldipme10+0x9db08 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#18 0xc000000001726688 in Ldipme10+0x9b960 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#19 0xc0000000017acd5c in Ldipme10+0x122034 () from /oracle/app/oracle/product/9.2.0/lib/libclntsh.sl.9.0
#20 0xc0000000010c88c0 in __text_seg+0x886f8 () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl
#21 0xc0000000010c0764 in __text_seg+0x8059c () from /oracle/app/oracle/product/9.2.0/lib/libocci.sl


ccba