Operating System - HP-UX
1833827 Members
2044 Online
110063 Solutions
New Discussion

64-bit application Runtime failure

 
rajesh_65
Occasional Advisor

64-bit application Runtime failure

Hi,

We are building a 64-bit application on a 32-bit HP-UX environment (with 64-bit flags) having the following specifications:
- UNAME: HP-UX B.11.11 U 9000/800
- getconf "KERNAL_BITS" = 64

Building and packaging process (swpackage) went fine. The 64-bit application was generated and installed on a 64-bit system having the following specification:
- UNAME: HP-UX B.11.11 U 9000/800
- getconf "KERNAL_BITS" = 64


The configuraton of the product on the 64-bit system failed. The TRUSS output indicated the following:

****************************************************************
19966: open("/opt/sun/mps/serverroot/admin-serv/config/../../shared/config/dbswitch.conf", O_RDONLY, 0666) = 7
19966: ioctl(7, TCGETA, 0x7f7fe6a8) ERR#25 ENOTTY
19966: read(7, "d i r e c t o r y d e f a u l ".., 8192) = 70
19966: read(7, 0x400a64d0, 8192) = 0
19966: close(7) = 0
19966: socket(AF_INET, SOCK_DGRAM, 0) = 7
19966: ioctl(7, SIOCGIFNUM, 0x7f7fef98) = 0
19966: ioctl(7, SIOCGIFCONF, 0x7f7fefa0) = 0
19966: socket(AF_INET6, SOCK_DGRAM, 0) ERR#221 EPROTONOSUPPORT
19966: ioctl(7, SIOCGIFFLAGS, 0x7f7fefc0) = 0
19966: Received signal 10, SIGBUS, in user mode, [caught], partial siginfo
19966: Siginfo: si_code: I_NONEXIST, faulting address: 0x15, si_errno: 0
19966: PC: 0xc019b0e3, instruction: 0x4afa0000
19966: sigsetreturn(0x7b033fee, 0x6211988, 1392) = 0
19966: sigvec(SIGBUS, 0x7f7ff750, 0x7f7ff760) = 0
19966: time(NULL) = 1109938500
19966: getpid() = 19966 (19965)
19966: write(4, "[ 0 4 / M a r / 2 0 0 5 : 1 7 : ".., 82) = 82
19966: time(NULL) = 1109938500
19966: getpid() = 19966 (19965)
19966: write(4, "[ 0 4 / M a r / 2 0 0 5 : 1 7 : ".., 100) = 100
19966: getpid() = 19966 (19965)
19966: kill(19966, SIGBUS) = 0
19966: Received signal 10, SIGBUS, in kill(), [SIG_DFL], partial siginfo
19966: Siginfo: si_code: I_NONEXIST, faulting address: 0x15, si_errno: 0
19966: PC: 0x2 (gr31), instruction: [Invalid argument]
19966: kill(10, 0x3cd) [entry]
19966: exit(10) [implicit (kill failure)] WIFSIGNALED(SIGBUS)|WCOREDUMP

****************************************************************

Could someone please help?

Thanks & Regards,
Rajesh
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: 64-bit application Runtime failure



SIGBUS

your app was referencing memory that didn't belong to it, thus the system killed it. It's an application issue.

live free or die
harry d brown jr
Live Free or Die
Steven E. Protter
Exalted Contributor

Re: 64-bit application Runtime failure

I'm not the worlds greatest compiler, by any stretch of the imagination.

But: When Merijin wanted to compile his Perl distributions for 64 bit, he actually used a 64 bit machine/OS Install combination.

Perhaps you should do the same.

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
rajesh_65
Occasional Advisor

Re: 64-bit application Runtime failure

Hi Harry,

Thanks for your suggestion.

Infact we were able to successfully install and configure the application on two another systems whose specifications were as under:
- UNAME: HP-UX B.11.11 U 9000/800
- getconf "KERNAL_BITS" = 64

However we have another "New" system (a 64-bit system) on which the application throws the SIGBUS error.

Hence we are not able to envisage if the problem is with the application itself. Not sure if any settings are missing on the latter environment.

Appreciate if you could please give some pointers in this regard.