- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- strange SIGBUS on HP-UX 11.00
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 06:17 AM
тАО04-05-2006 06:17 AM
I have a C++ GUI application that makes a call into a statically linked FORTRAN library.
On HP-UX 11.00, the application crashes as soon as it is invoked. At this point of time, no data is provided to the application and no reason for it to make calls into the FORTRAN part yet. Here is the trace:
#0 0xb6b42070 in select (m=0,
weight=(
#1 0xbabb59dc in _XWaitForReadable+0x9c () from /usr/lib/libX11.3
#2 0xbabb6b2c in _XRead+0xa4 () from /usr/lib/libX11.3
#3 0xbaba4a30 in XOpenDisplay+0x368 () from /usr/lib/libX11.3
#4 0xba7d9d0c in MwX11Init (=???)
at /vobs/build/mwsrc/gdiuser32/ntuser/mw/X11Drv.c:227
#5 0xba70f404 in MwCWInit (flags=1, =???, =???)
at /vobs/build/mwsrc/gdiuser32/ntuser/mw/Init.c:496
#6 0xba70e878 in MwMainwinInit (argc=0, argv=0x0, mwi_version=2, =???,
xclass_name=0x0, =???) at /vobs/build/mwsrc/gdiuser32/ntuser/mw/Init.c:291
#7 0xae64 in mainwin_init (argc=0, argv=0x0)
at /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/MainWin.C:266
#8 0xbaad259c in global_init (init=1)
at /vobs/build/mwsrc/kernel32/misc/mainwin_init.C:65
#9 0xbab019e0 in MwInitDLL (lib_name=0xba37a648, dll_main=0xba377862,
raw_dll_main=0, nodes=0xba37a658, =???)
at /vobs/build/mwsrc/kernel32/module/LoadLibrary.C:857
#10 0xba4914b4 in _Initializergdiuser_33_32::pre_construct (this=0xba3df638)
at /view/build502.ux11/vobs/mw/mw/init.C:123
#11 0xba491214 in _Initializergdiuser_33_32::_Initializergdiuser_33_32 (
this=0xba3df638) at /view/build502.ux11/vobs/mw/mw/init.C:70
#12 0xba491628 in __sinit_init_C+0x28 ()
from /homes/dudee/r/renee/software/hw80b33_dbg/HPUX_32/mv/altair/hw/mw/HPUX_32/mw/lib-ux11_debug/libgdiuser32.sl
#13 0xbadbe9bc in __shlInit+0x88 () from /usr/lib/libCsup.2
#14 0xba4910ac in _shlInit+0x20 ()
from /homes/dudee/r/renee/software/hw80b33_dbg/HPUX_32/mv/altair/hw/mw/HPUX_32/mw/lib-ux11_debug/libgdiuser32.sl
#15 0xbadbe3b0 in __shlinit+0xac () from /usr/lib/libCsup.2
#16 0xbadc09a8 in _main+0x194 () from /usr/lib/libCsup.2
There is absolutely no reason for the application to jump from #1 to #0 above. Can anyone think of a reason why this is happening and if there is a known fix.
Here are the versions of the compilers and linker:
myneni@hp70 dudee/myneni > ld -Version
ld: 92453-07 linker linker ld B.11.30 011005
ld: Usage: ld [options] [flags] files
myneni@hp70 dudee/myneni > f90 +version
HP F90 v2.5.3
myneni@hp70 dudee/myneni > aCC -Version
aCC: HP ANSI C++ B3910B A.03.39
myneni@hp70 dudee/myneni >
Any help would be great!
Thanks in advance
-Sachin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2006 02:34 PM
тАО04-05-2006 02:34 PM
Re: strange SIGBUS on HP-UX 11.00
the #0 call stack frame is X11 calls, is this application linked into X for displayed outputs ?
The Fortran is not, is not multi-threaded. The C++ can be multi-threaded..
can you send the output of: chatr a.out
is there a "pthread" lib linked in ? if there is, then your app is multi-threaded, and Fortran is not.. figure out how to remove any "Pthread" lib in the Linker when you Make/Build the app.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 06:36 AM
тАО04-06-2006 06:36 AM
Re: strange SIGBUS on HP-UX 11.00
The application uses MainWIN for the GUI part.
libpthread is linked in.
Here is the chatr output on the executable:
myneni@hp70 bin/HPUX_32 > chatr hst
hst:
normal executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /opt/graphics/OpenGL/lib:/usr/lib
shared library list:
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwhst8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/tcl/tcl8.4.7/lib/HPUX_32/libtcl8.4.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/tcl/tcl8.4.7/lib/HPUX_32/libtk8.4.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwplot8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwplotutillib8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwbackbone8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwutillib8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/stingray/lib-ux11_debug/libotp80asd.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwbackbase8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwtemplex8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwimportlib8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwutilbase8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/hw/bin/HPUX_32/libhwamf8.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/stingray/lib-ux11_debug/libog90asd.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/stingray/lib-ux11_debug/libsfl20asd.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_debug/libmfc400d.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/liboleaut32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libole32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libcomdlg32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libshell32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libcomctl32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libshlwapi.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libuuid.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/librpcrt4.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libmsvcrt.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libgdiuser32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libadvapi32.sl
dynamic /homes/dudee/renee/software/hw80b33_dbg/HPUX_32/third_party/mw/mw502/mw/lib-ux11_optimized/libkernel32.sl
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libX11.3
dynamic /usr/lib/libXext.3
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/librpcsvc.1
dynamic /usr/lib/libstd.2
dynamic /usr/lib/libstream.2
dynamic /usr/lib/libCsup.2
dynamic /usr/lib/libm.2
dynamic /usr/lib/libcl.2
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:5
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space enabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
shared library text merging disabled
Thanks
-Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 11:53 AM
тАО04-06-2006 11:53 AM
SolutionWhy do you think that? _XWaitForReadable calls select(2).
You can't name your Fortran function select! That is a Posix reserved name, select(2).
- Tags:
- select
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 12:48 PM
тАО04-06-2006 12:48 PM
Re: strange SIGBUS on HP-UX 11.00
That seems to be it! I hadn't thought of that. I am changing that and will see how that goes. But that should be it.
Thanks
-Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2006 10:08 AM
тАО04-07-2006 10:08 AM
Re: strange SIGBUS on HP-UX 11.00
-Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2006 10:09 AM
тАО04-07-2006 10:09 AM
Re: strange SIGBUS on HP-UX 11.00
-Sachin