Operating System - HP-UX
1834796 Members
2651 Online
110070 Solutions
New Discussion

Re: SIGFPE exception in HP-UX 11.23 PA-RISC

 
SOLVED
Go to solution
Thiagu_1
Advisor

SIGFPE exception in HP-UX 11iv2 (11.23) PA-RISC (both debug & release builds)

We find the following SIGFPE exception in HP-UX 11iv2 (11.23) PA-RISC (both debug & release) in one of our use case.

The same use case works well with HP-UX 11iv1 (11.11) PA-RISC.
It also works fine in HP-UX 11.23 IA.



(gdb) cont
Continuing.



Program received signal SIGFPE, Arithmetic exception
si_code: 14 - FPE_ASSISTX - HP Assist exception trap.
[Switching to thread 2 (system thread 128781)]
0xc00000000016bb38 in _U_force_trap+0 () from /usr/lib/pa20_64/libc.2
(gdb) where
#0 0xc00000000016bb38 in _U_force_trap+0 () from /usr/lib/pa20_64/libc.2
#1 0xc00000000016d258 in _U_Qfcnvfxt_dbl_to_quad+0xb0 () from /usr/lib/pa20_64/libc.2
#2 0x4000000001186d18 in SortSummaryBuilder::calc+0x310 ()
#3 0x40000000010b6004 in DataSetMgr::getSortSummary+0x44 ()
#4 0x4000000000c014a8 in BaseDataSet_Impl::getSortSummary+0xc8 ()
#5 0x4000000000d1db94 in POA_datasetbase::getSortSummary_itgen_dispatch+0x684 ()
#6 0xc000000000a9a398 in PortableServer::ServantBase::_dispatch+0x1e8 () from /kla-tencor/klarity/Orbix/shlib/pa20_64/libit_poa_acca0331.5
#7 0xc000000000a6d6f8 in IT_POA_RequestInterceptor::invoke+0x2c0 () from /kla-tencor/klarity/Orbix/shlib/pa20_64/libit_poa_acca0331.5
#8 0xc00000000185ecd0 in IT_Binding_ServerBindingImpl::dispatch_request+0x210 () from /kla-tencor/klarity/Orbix/shlib/pa20_64/libit_art_acca0331.5
#9 0xc000000003bc5ba4 in IT_GIOP_ServerRequest::execute+0x57c () from /kla-tencor/klarity/Orbix/shlib/pa20_64/libit_giop_acca0331.5
#10 0xc000000000b8272c in IT_ATLI2_IP::IPPoolImpl::execute+0x594 () from /kla-tencor/klarity/Orbix/shlib/pa20_64/libit_atli2_ip_acca0331.5
#11 0xc0000000017a7db0 in IT_Work_WorkerThread::run+0x180 () from /kla-tencor/klarity/Orbix/shlib/pa20_64/libit_art_acca0331.5
#12 0xc000000000465774 in IT_ThreadFactory_call_thread_body+0x24 () from /kla-tencor/klarity/Orbix/shlib/default/pa20_64/libit_ifc_acca0331.5
#13 0xc0000000000549dc in __pthread_bound_body+0xcc () from /usr/lib/pa20_64/libpthread.1
#14 0xc00000000008451c in __pthread_bound_start+0x14 () from /usr/lib/pa20_64/libpthread.1



Please find our OS patch details for both HP servers.



HP-UX Operating System level details for HP-UX v2 and v1 machines are as below.



HP-UX 11i v2 (11.23)
March 2007 (11.23 Standard Patch Bundles)
HWEnable11i(B.11.23.0609.053)
QPK1123(B.11.23.0703.059a)

HP-UX 11i v1 (11.11)
December 2006 (11.11 Support Plus)
HWEnable11i(B.11.11.0612.458)
GOLDQPK11i(B.11.11.0612.459)

4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: SIGFPE exception in HP-UX 11.23 PA-RISC

You are getting an integer overflow converting from a double to a unsigned long (64 bit in this case).
A workaround would be to convert to just a long.

>The same use case works well with HP-UX 11.11 PA-RISC.

That 11.11 patch for _U_Qfcnvfxt_dbl_to_quad may not have been made for 11.23?

>It also works fine in HP-UX 11.23 IPF.

It is impossible to fail there since the IPF hardware directly supports this conversion.

Thiagu_1
Advisor

Re: SIGFPE exception in HP-UX 11iv2 (11.23) PA-RISC (both debug & release builds)

hi,

Can we apply the patch for _U_Qfcnvfxt_dbl_to_quad in 11.23 to fix this issue ? If so please let us know the patch set to be applied for 11.23.


Thanks,
Thiagu





Dennis Handly
Acclaimed Contributor

Re: SIGFPE exception in HP-UX 11.23 PA-RISC

>Can we apply the patch for _U_Qfcnvfxt_dbl_to_quad in 11.23 to fix this issue?

Yes, the bug is CR JAGag04224 and it is fixed in PHCO_35744, released in March. That's probably why is was in 11.11 but not your 11.23 Quality Pack.

Thiagu_1
Advisor

Re: SIGFPE exception in HP-UX 11iv2 (11.23) PA-RISC (both debug & release builds)

After applying that patch , a quick test was done and it is working now.

Thanks,
Thiagu