<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JVM crashing when calling pthread_num_processors_np in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885083#M495145</link>
    <description>&lt;P&gt;curioser, etc&lt;BR /&gt;&lt;BR /&gt;Here's another report of a crash in ENTER_PTHREAD_LIBRARY_FUNC:&lt;BR /&gt;&lt;A href="https://community.hpe.com/t5/Languages-and-Scripting/Problem-with-lpthread/td-p/3273067" target="_blank"&gt;http://community.hpe.com/t5/Languages-and-Scripting/Problem-with-lpthread/td-p/3273067&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Whether a stack overflow is happening, you can try to figure out from examining the disassembly in ENTER_PTHREAD_LIBRARY_FUNC up to the point where SIGSEGV is received. Doing that with the testcase previously mentioned seems to show that there was a problem in trying to access thread local storage (TLS) - this seems to match with the last post on the thread I have linked above in this post. Also, building that previous testcase with "-lc" before "-lpthread" reproduces the crash. So, there is some vague indication that the problem may be caused by bad link order or memory corruption.&lt;/P&gt;&lt;P&gt;For Oracle or HPE to be able to triage/debug the problem, you can help by providing a packcore tarball created with gdb. Launch the application from within gdb, use the "dump" command to generate a core dump once this SIGSEGV occurs (make sure that it is this instance of SIGSEGV). With this done, get gdb to load the core file with the "core-file" command and then use the "packcore" command to create the packcore tarball.&lt;/P&gt;&lt;PRE&gt;bash-2.05b# gdb testJNI 
...
(gdb) r
Starting program: /tmp/ranga/itrc1/testJNI 

Program received signal SIGSEGV, Segmentation fault
  si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
0x9fffffffebe39f60:1 in ENTER_PTHREAD_LIBRARY_FUNC+0x61 ()
   from /usr/lib/hpux64/libpthread.so.1
(gdb) dump
Dumping core to the core file core.28689
(gdb) core-file core.28689 
A program is being debugged already.  Kill it? (y or n) y

Core was generated by `testJNI'.

#0  0x9fffffffebe39f60:1 in ENTER_PTHREAD_LIBRARY_FUNC+0x61 ()
   from /usr/lib/hpux64/libpthread.so.1
(gdb) packcore 
The core file has been added to '/tmp/ranga/itrc1/packcore.tar'
Do you want to remove the original core file?(y or n) y
The core file has been removed.
(gdb) quit&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 17:13:41 GMT</pubDate>
    <dc:creator>ranganath ramachandra</dc:creator>
    <dc:date>2016-08-03T17:13:41Z</dc:date>
    <item>
      <title>JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6884446#M495142</link>
      <description>&lt;P&gt;Hi, JVM (1.8) is getting signal 11 on startup when calling pthread_num_processors_np.&lt;/P&gt;&lt;P&gt;No core file is written. I just have stack trace:&lt;/P&gt;&lt;P&gt;----- Call Stack Trace -----&lt;BR /&gt;calling call entry argument values in hex&lt;BR /&gt;location type point (? means dubious value)&lt;BR /&gt;-------------------- -------- -------------------- ----------------------------&lt;BR /&gt;siehDumpStackTrace( call kgdsdst() 9FFFFFFFFFFEAD50 ?&lt;BR /&gt;)+192 000000001 ?&lt;BR /&gt;9FFFFFFFBF718B58 ?&lt;BR /&gt;siehWriteExceptionR call siehDumpStackTrace( C000000000000713 ?&lt;BR /&gt;eport()+336 ) 9FFFFFFFBF772C80 ?&lt;BR /&gt;600000000002B650 ?&lt;BR /&gt;40000000006C6FD0 ?&lt;BR /&gt;9FFFFFFFFFFEAD78 ?&lt;BR /&gt;siehjmpterm()+1216 call siehWriteExceptionR 60000000000815E0 ?&lt;BR /&gt;eport() 000000000 ? 00000510B ?&lt;BR /&gt;600000000002B650 ?&lt;BR /&gt;C000000000000A19 ?&lt;BR /&gt;&amp;lt;kernel&amp;gt; call siehjmpterm() 00000000B ?&lt;BR /&gt;600000000002B650 ?&lt;BR /&gt;C000000000000187 ?&lt;BR /&gt;E000000120757480 ?&lt;BR /&gt;ENTER_PTHREAD_LIBRA signal &amp;lt;kernel&amp;gt; 9FFFFFFFFFFEB000 ?&lt;BR /&gt;RY_FUNC()+353 20000000B ? 000000000 ?&lt;BR /&gt;__pthread_num_proce call ENTER_PTHREAD_LIBRA 9FFFFFFFBF5FAFB8 ?&lt;BR /&gt;ssors_np()+160 RY_FUNC() C000000000000207 ?&lt;BR /&gt;C0000000002A4EA0 ?&lt;BR /&gt;_ZN2os22active_proc call __pthread_num_proce&lt;BR /&gt;essor_countEv()+64 ssors_np()&lt;BR /&gt;_ZN2os23is_server_c call _ZN2os22active_proc&lt;BR /&gt;lass_machineEv()+19 essor_countEv()&lt;BR /&gt;2&lt;BR /&gt;_ZN9Arguments23sele call _ZN2os23is_server_c 9FFFFFFFBF1A95E0 ?&lt;BR /&gt;ct_gc_ergonomically lass_machineEv() C000000000000207 ?&lt;BR /&gt;Ev()+32 C00000002FB612C0 ?&lt;BR /&gt;_ZN9Arguments9selec call _ZN9Arguments23sele&lt;BR /&gt;t_gcEv()+160 ct_gc_ergonomically&lt;BR /&gt;Ev()&lt;BR /&gt;_ZN9Arguments20set_ call _ZN9Arguments9selec 000000288 ?&lt;BR /&gt;ergonomics_flagsEv( t_gcEv() C00000000000058D ?&lt;BR /&gt;)+64&lt;BR /&gt;_ZN9Arguments10appl call _ZN9Arguments20set_ 9FFFFFFFBF1A95E0 ?&lt;BR /&gt;y_ergoEv()+64 ergonomics_flagsEv( C00000000000060E ?&lt;BR /&gt;)&lt;BR /&gt;_ZN7Threads9create_ call _ZN9Arguments10appl 9FFFFFFFBF1A95E0 ?&lt;BR /&gt;vmEP14JavaVMInitArg y_ergoEv() C000000000000B9B ?&lt;BR /&gt;sPb()+496 C00000003189C3F0 ?&lt;BR /&gt;00001C837 ?&lt;BR /&gt;JNI_CreateJavaVM()+ call _ZN7Threads9create_ 9FFFFFFFBF0DDE80 ?&lt;BR /&gt;192 vmEP14JavaVMInitArg 9FFFFFFFFFFF0110 ?&lt;BR /&gt;sPb() 9FFFFFFFBF1A95E0 ?&lt;BR /&gt;C000000000000A99 ?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;And tusc showing the same issue:&lt;/P&gt;&lt;P&gt;10:46:44 [/weblogic12/][20747]{334471} mpctl(MPC_GETNUMSPUS, 0, 0) .................................................................... [entry]&lt;BR /&gt;10:46:44 [/weblogic12/][20747]{334471} &amp;lt;0.000009&amp;gt; mpctl(MPC_GETNUMSPUS, 0, 0) ......................................................... = 4&lt;BR /&gt;10:46:44 [/weblogic12/][20747]{334471} Received signal 11, SIGSEGV, in user mode, [caught], partial siginfo&lt;BR /&gt;10:46:44 [/weblogic12/][20747]{334471} Siginfo: si_code: SEGV_ACCERR, faulting address: 0x30, si_errno: 0&lt;BR /&gt;10:46:44 [/weblogic12/][20747]{334471} PC: 00000001000000a0.0 break.m 0x16000&lt;/P&gt;&lt;P&gt;I've found this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.hpe.com/t5/Languages-and-Scripting/JVM-Crashes-on-HPPA-64-Bit-and-HPIA-64-Bit/td-p/4411689" target="_blank"&gt;http://community.hpe.com/t5/Languages-and-Scripting/JVM-Crashes-on-HPPA-64-Bit-and-HPIA-64-Bit/td-p/4411689&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I'm not sure what the solution was / it helps in my case.&lt;/P&gt;&lt;P&gt;Any idea would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 09:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6884446#M495142</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2016-08-02T09:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6884821#M495143</link>
      <description>&lt;P&gt;Is this an application you compiled/built ? I see a similar problem reported here which I could reproduce very easily:&lt;BR /&gt;&lt;A href="http://community.hpe.com/t5/Languages-and-Scripting/received-SIGSEGV-while-executing-an-exe/td-p/4785614" target="_blank"&gt;http://community.hpe.com/t5/Languages-and-Scripting/received-SIGSEGV-while-executing-an-exe/td-p/4785614&lt;/A&gt;&lt;BR /&gt;In this case, using gcc, the problem goes away when the program is built linked with libpthread. If you're compiling and linking with aCC, the recommended way is to use the "-mt" compiler flag.&lt;BR /&gt;&lt;BR /&gt;If this is not an application you built yourself, you might have to contact the vendor about it.&lt;BR /&gt;&lt;BR /&gt;In the post you linked, Dennis seems to suggest that the thread stack size be increased.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6884821#M495143</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2016-08-03T06:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6884864#M495144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;ranganath,&lt;BR /&gt;very interesting.&lt;BR /&gt;I've tried the testcase (with or without linking with libpthread) and the SIGSEGV&amp;nbsp;issue is reproduced.&lt;BR /&gt;So we know the implication is true this way:&lt;BR /&gt;not linked with libpthread =&amp;gt; pthread_num_processors_np SIGSEGV&lt;BR /&gt;As far as I know, using footprints or ldd, I can see whether the testcase binary was linked or not with libpthread, When linked:&lt;/P&gt;&lt;P&gt;footprints crea_JVM&lt;BR /&gt;Shared library: /lib/hpux64/libpthread.so.1 (system library - not scanned)&amp;nbsp;&lt;/P&gt;&lt;P&gt;ldd -v crea_JVM | grep pthread&lt;BR /&gt;find library=libpthread.so.1; required by crea_JVM&lt;BR /&gt;libpthread.so.1 =&amp;gt; /lib/hpux64/libpthread.so.1&lt;/P&gt;&lt;P&gt;The&amp;nbsp;program failing in my case is frmweb (Oracle Forms 12c). We know it is raising:&lt;BR /&gt;pthread_num_processors_np SIGSEGV&lt;BR /&gt;but we can't be sure&amp;nbsp;if the reverse implication&lt;BR /&gt;pthread_num_processors_np SIGSEGV =&amp;gt; not linked with libpthread&lt;BR /&gt;applies in this &amp;nbsp;case.&lt;/P&gt;&lt;P&gt;If my assumption about&amp;nbsp;footprints / ldd is true, I can see frmweb IS linked with libpthread:&lt;/P&gt;&lt;P&gt;footprints frmweb&lt;BR /&gt;Shared library: /usr/lib/hpux64/libpthread.so.1 (system library - not scanned)&lt;BR /&gt;&lt;BR /&gt;ldd -v frmweb | grep pthread&lt;BR /&gt;find library=libpthread.so.1; required by frmweb&lt;BR /&gt;libpthread.so.1 =&amp;gt; /usr/lib/hpux64/libpthread.so.1&lt;/P&gt;&lt;P&gt;, so should we look for another cause? (e.g., how could I determine if stack overflow is happening?).&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;P.S.:&lt;BR /&gt;I have opened a Service Request with Oracle, but the support engineer looks quite lost at the moment.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6884864#M495144</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2016-08-03T08:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885083#M495145</link>
      <description>&lt;P&gt;curioser, etc&lt;BR /&gt;&lt;BR /&gt;Here's another report of a crash in ENTER_PTHREAD_LIBRARY_FUNC:&lt;BR /&gt;&lt;A href="https://community.hpe.com/t5/Languages-and-Scripting/Problem-with-lpthread/td-p/3273067" target="_blank"&gt;http://community.hpe.com/t5/Languages-and-Scripting/Problem-with-lpthread/td-p/3273067&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Whether a stack overflow is happening, you can try to figure out from examining the disassembly in ENTER_PTHREAD_LIBRARY_FUNC up to the point where SIGSEGV is received. Doing that with the testcase previously mentioned seems to show that there was a problem in trying to access thread local storage (TLS) - this seems to match with the last post on the thread I have linked above in this post. Also, building that previous testcase with "-lc" before "-lpthread" reproduces the crash. So, there is some vague indication that the problem may be caused by bad link order or memory corruption.&lt;/P&gt;&lt;P&gt;For Oracle or HPE to be able to triage/debug the problem, you can help by providing a packcore tarball created with gdb. Launch the application from within gdb, use the "dump" command to generate a core dump once this SIGSEGV occurs (make sure that it is this instance of SIGSEGV). With this done, get gdb to load the core file with the "core-file" command and then use the "packcore" command to create the packcore tarball.&lt;/P&gt;&lt;PRE&gt;bash-2.05b# gdb testJNI 
...
(gdb) r
Starting program: /tmp/ranga/itrc1/testJNI 

Program received signal SIGSEGV, Segmentation fault
  si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
0x9fffffffebe39f60:1 in ENTER_PTHREAD_LIBRARY_FUNC+0x61 ()
   from /usr/lib/hpux64/libpthread.so.1
(gdb) dump
Dumping core to the core file core.28689
(gdb) core-file core.28689 
A program is being debugged already.  Kill it? (y or n) y

Core was generated by `testJNI'.

#0  0x9fffffffebe39f60:1 in ENTER_PTHREAD_LIBRARY_FUNC+0x61 ()
   from /usr/lib/hpux64/libpthread.so.1
(gdb) packcore 
The core file has been added to '/tmp/ranga/itrc1/packcore.tar'
Do you want to remove the original core file?(y or n) y
The core file has been removed.
(gdb) quit&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885083#M495145</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2016-08-03T17:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885227#M495146</link>
      <description>&lt;P&gt;I was able to reproduce a somewhat similar crash with a much simpler case, not involving java/JVM.&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;pthread.h&amp;gt;
int main ()
{
  return pthread_num_processors_np();
}
[ crust 1 ] $ cat lib.c
void func() {}
[ crust 1 ] $ cc lib.c -b -o liblib.so -lpthread
[ crust 1 ] $ cc pnp.c -L. -llib -o pnp
[ crust 1 ] $ ./pnp
Segmentation fault (core dumped)
[ crust 1 ] $ pstack pnp core
core:   pnp
--------------------------------  lwpid : 932124   -------------------------------
 0: 60000000c0155961 : ENTER_PTHREAD_LIBRARY_FUNC() + 0x161 (/usr/lib/hpux32/libpthread.so.1)
 1: 60000000c01a0d20 : pthread_num_processors_np() + 0xa0 (/usr/lib/hpux32/libpthread.so.1)
 2: 00000000040008a0 : main() + 0x40 (pnp)
 3: 60000000c008b920 : main_opd_entry() + 0x50 (/usr/lib/hpux32/dld.so)&lt;/PRE&gt;&lt;PRE&gt;[ crust 1 ] $ ldd -v pnp

pnp:

  find library=liblib.so; required by pnp
        liblib.so =&amp;gt;    ./liblib.so

  find library=libc.so.1; required by pnp
        libc.so.1 =&amp;gt;    /usr/lib/hpux32/libc.so.1

  find library=libpthread.so.1; required by ./liblib.so
        libpthread.so.1 =&amp;gt;      /usr/lib/hpux32/libpthread.so.1

  find library=libdl.so.1; required by /usr/lib/hpux32/libc.so.1
        libdl.so.1 =&amp;gt;   /usr/lib/hpux32/libdl.so.1
[ crust 1 ] $ cc pnp.c -L. -llib -o pnp -lpthread
[ crust 1 ] $ ./pnp ; echo $?
8
[ crust 1 ] $ ldd -v pnp
pnp:
  find library=liblib.so; required by pnp
        liblib.so =&amp;gt;    ./liblib.so

  find library=libpthread.so.1; required by pnp
        libpthread.so.1 =&amp;gt;      /usr/lib/hpux32/libpthread.so.1

  find library=libc.so.1; required by pnp
        libc.so.1 =&amp;gt;    /usr/lib/hpux32/libc.so.1

  find library=libdl.so.1; required by /usr/lib/hpux32/libc.so.1
        libdl.so.1 =&amp;gt;   /usr/lib/hpux32/libdl.so.1&lt;/PRE&gt;&lt;P&gt;At least this problem was because of library load order.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 03:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885227#M495146</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2016-08-04T03:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885373#M495147</link>
      <description>&lt;P&gt;Aha! This is getting more and more interesting!&lt;/P&gt;&lt;P&gt;The failiing program was indeed linked -lc before -lpthread:&lt;/P&gt;&lt;P&gt;cc +DD64 -o frmweb -L/weblogic12/Oracle_Home/lib/ -L/usr/lib/hpux64 -L/weblogic12/Oracle_Home/jdk//jre/lib/IA64W/ -L/weblogic12/Oracle_Home/jdk//jre/lib/IA64W/server/ -L/weblogic12/Oracle_Home/jdk//jre/lib/IA64W/native_threads/ \&lt;BR /&gt;/weblogic12/Oracle_Home/lib/s0nnmain.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/ssliftabw.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/ifzxtb.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/sixn.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/sixp.o \&lt;BR /&gt;\&lt;BR /&gt;-liplsn \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/istiif.o \&lt;BR /&gt;-u iiflmp -u iifget -u iiffcb -u iiflog -u iiflov -u iifgdl -u iifatr -u iifeue -u iifwcnew -u iifwru \&lt;BR /&gt;-libfrmw -liffw -lifcw -lijcw -liifw -lipc -lipfw -lipc -limffrmw -limc -liwfw -liwcw -litw -licw -lirm -lsosdw -lihm -libfrmw -lixw -liffw -lifcw -lijcw -lipfw -lipc -liicw -liiiw -liwfw -liwcw -liqw -litw -licw -lipc -lsosdw -limffrmw -limc -liplsn \&lt;BR /&gt;-lnn -lzrc -lvgsw -ldeb -lca -lmmoi -lmmcm -luicm -lrem -luiimg -ltio -luc -lutt -luicm -lrod -lror -lros -lrod -lror -lros -lrod -lutc -lutj -lutl -lutsl -lpls11 -lplp11 -lplc11 -lpls11 -lplp11 -lslax11 -lsql11 -dynamic /weblogic12/Oracle_Home/lib/nautab.o /weblogic12/Oracle_Home/lib/naeet.o /weblogic12/Oracle_Home/lib/naect.o /weblogic12/Oracle_Home/lib/naedhs.o -lm -lc -lclntsh `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /weblogic12/Oracle_Home/lib/sysliblist` -lm `cat /weblogic12/Oracle_Home/lib/sysliblist` -ldl -lpthread -lm -lpthread -lc -lrt -lpthread -lc -lsnls11 -lpthread -lc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also:&lt;/P&gt;&lt;P&gt;ppoas1:/root#ldd -v /weblogic12/Oracle_Home/bin/frmweb&lt;/P&gt;&lt;P&gt;/weblogic12/Oracle_Home/bin/frmweb:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;find library=libc.so.1; required by /weblogic12/Oracle_Home/bin/frmweb&lt;BR /&gt;libc.so.1 =&amp;gt; /usr/lib/hpux64/libc.so.1&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;find library=libpthread.so.1; required by /weblogic12/Oracle_Home/lib//libclntsh.so.11.1&lt;BR /&gt;libpthread.so.1 =&amp;gt; /usr/lib/hpux64/libpthread.so.1&lt;/P&gt;&lt;P&gt;So, as per the link you mentioned and your tests, it should ¿systematically? fail when calling&amp;nbsp;pthread_num_processors_np?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 10:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885373#M495147</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2016-08-04T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885490#M495148</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/652954"&gt;@Jose M. del Rio&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Aha! This is getting more and more interesting!&lt;/P&gt;&lt;P&gt;The failiing program was indeed linked -lc before -lpthread:&lt;/P&gt;&lt;P&gt;cc +DD64 -o frmweb -L/weblogic12/Oracle_Home/lib/ -L/usr/lib/hpux64 -L/weblogic12/Oracle_Home/jdk//jre/lib/IA64W/ -L/weblogic12/Oracle_Home/jdk//jre/lib/IA64W/server/ -L/weblogic12/Oracle_Home/jdk//jre/lib/IA64W/native_threads/ \&lt;BR /&gt;/weblogic12/Oracle_Home/lib/s0nnmain.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/ssliftabw.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/ifzxtb.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/sixn.o \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/sixp.o \&lt;BR /&gt;\&lt;BR /&gt;-liplsn \&lt;BR /&gt;/weblogic12/Oracle_Home/forms/lib/istiif.o \&lt;BR /&gt;-u iiflmp -u iifget -u iiffcb -u iiflog -u iiflov -u iifgdl -u iifatr -u iifeue -u iifwcnew -u iifwru \&lt;BR /&gt;-libfrmw -liffw -lifcw -lijcw -liifw -lipc -lipfw -lipc -limffrmw -limc -liwfw -liwcw -litw -licw -lirm -lsosdw -lihm -libfrmw -lixw -liffw -lifcw -lijcw -lipfw -lipc -liicw -liiiw -liwfw -liwcw -liqw -litw -licw -lipc -lsosdw -limffrmw -limc -liplsn \&lt;BR /&gt;-lnn -lzrc -lvgsw -ldeb -lca -lmmoi -lmmcm -luicm -lrem -luiimg -ltio -luc -lutt -luicm -lrod -lror -lros -lrod -lror -lros -lrod -lutc -lutj -lutl -lutsl -lpls11 -lplp11 -lplc11 -lpls11 -lplp11 -lslax11 -lsql11 -dynamic /weblogic12/Oracle_Home/lib/nautab.o /weblogic12/Oracle_Home/lib/naeet.o /weblogic12/Oracle_Home/lib/naect.o /weblogic12/Oracle_Home/lib/naedhs.o -lm -lc -lclntsh `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /weblogic12/Oracle_Home/lib/ldflags` -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /weblogic12/Oracle_Home/lib/sysliblist` -lm `cat /weblogic12/Oracle_Home/lib/sysliblist` -ldl -lpthread -lm -lpthread -lc -lrt -lpthread -lc -lsnls11 -lpthread -lc&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It should have been linked with the "-mt" option and without "-lpthread"; libc should never be linked explicitly.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Also:&lt;/P&gt;&lt;P&gt;ppoas1:/root#ldd -v /weblogic12/Oracle_Home/bin/frmweb&lt;/P&gt;&lt;P&gt;/weblogic12/Oracle_Home/bin/frmweb:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;find library=libc.so.1; required by /weblogic12/Oracle_Home/bin/frmweb&lt;BR /&gt;libc.so.1 =&amp;gt; /usr/lib/hpux64/libc.so.1&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;find library=libpthread.so.1; required by /weblogic12/Oracle_Home/lib//libclntsh.so.11.1&lt;BR /&gt;libpthread.so.1 =&amp;gt; /usr/lib/hpux64/libpthread.so.1&lt;/P&gt;&lt;P&gt;So, as per the link you mentioned and your tests, it should ¿systematically? fail when calling&amp;nbsp;pthread_num_processors_np?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I expect so.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 15:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885490#M495148</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2016-08-04T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885608#M495149</link>
      <description>&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;I'll let Oracle Support know and, if this proves to be the solution, I'll write it here.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 20:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6885608#M495149</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2016-08-04T20:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886042#M495150</link>
      <description>Bingo!&lt;BR /&gt;I relinked frmweb executable in the right order and it works!&lt;BR /&gt;I've marked your answer as solution.&lt;BR /&gt;Thanks a lot for your help!</description>
      <pubDate>Fri, 05 Aug 2016 19:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886042#M495150</guid>
      <dc:creator>Jose M. del Rio</dc:creator>
      <dc:date>2016-08-05T19:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886075#M495151</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I relinked frmweb executable in the right order and it works!&lt;/BLOCKQUOTE&gt;&lt;P&gt;Using "-mt" is recommended and supported, I suggest you do that instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2016 02:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886075#M495151</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2016-08-06T02:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886129#M495152</link>
      <description>&lt;P&gt;&amp;gt;Using "-mt" is recommended and supported, I suggest you do that instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought a warning was added if you explicitly added any of the default system shlibs.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2016 14:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886129#M495152</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2016-08-06T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: JVM crashing when calling pthread_num_processors_np</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886260#M495153</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/22676"&gt;@Dennis Handly&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;gt;Using "-mt" is recommended and supported, I suggest you do that instead.&lt;/P&gt;&lt;P&gt;I thought a warning was added if you explicitly added any of the default system shlibs.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, a compiler driver warning but apparently only for the language runtimes libc./iibCsup/libstd etc, not libpthread/libdl/etc and only when linking an executable.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2016 17:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/jvm-crashing-when-calling-pthread-num-processors-np/m-p/6886260#M495153</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2016-08-07T17:34:29Z</dc:date>
    </item>
  </channel>
</rss>

