<?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: Perlxs DCE interface dumps core when built with gcc in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920026#M104773</link>
    <description>libdce brings in libcma (user threads library) and libcma/libpthread (kernel threads library) cannot be mixed in the same executable. perl is linked with libpthread.&lt;BR /&gt;&lt;BR /&gt;You should try linking with libdcekt (dce kernel threads version of libdce) instead of libdce.</description>
    <pubDate>Tue, 23 Aug 2005 02:24:37 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-08-23T02:24:37Z</dc:date>
    <item>
      <title>Perlxs DCE interface dumps core when built with gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920025#M104772</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I created a Perlxs interface to change a principal's password in DCE from Perl scripts, which works fine when compiled using HP's CC. However when I build it using gcc, Perl dumps core (memory fault) when the script is executed. I could use the CC compiled version if it wasn't for the fact that I'm planning to use this interface with HP's mod_perl, which requires HP's Perl 5.8.x (built with gcc).&lt;BR /&gt;&lt;BR /&gt;I attached the Password.xs file and the module can be built as follows:&lt;BR /&gt;&lt;BR /&gt;1) /opt/perl/bin/h2xs -cn Password&lt;BR /&gt;2) cd Password; cp ../Password.xs . &lt;BR /&gt;3) Add "-ldce" to Makefile.PL&lt;BR /&gt;4) perl Makefile.pl LIB=my_lib&lt;BR /&gt;5) make install&lt;BR /&gt;&lt;BR /&gt;The test script can be something simple as follows:&lt;BR /&gt;&lt;BR /&gt;#!/opt/perl/bin/perl -w -I my_lib&lt;BR /&gt;use Password;&lt;BR /&gt;my ($pname, $opass, $npass);&lt;BR /&gt;my $st = Password::changePrincipalPasswd($pname,$opass,$npass);&lt;BR /&gt;if ($st) {&lt;BR /&gt; print "works\n";&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt; print "doh\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;This is what I get when execute the test script:&lt;BR /&gt;&lt;BR /&gt;$ ./test.pl&lt;BR /&gt;Memory fault(coredump)&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;And here's the output from gdb:&lt;BR /&gt;&lt;BR /&gt;$ /usr/local/bin/gdb /opt/perl/bin/perl core&lt;BR /&gt;GNU gdb 5.3&lt;BR /&gt;Copyright 2002 Free Software Foundation, Inc.&lt;BR /&gt;GDB is free software, covered by the GNU General Public License, and you are&lt;BR /&gt;welcome to change it and/or distribute copies of it under certain conditions.&lt;BR /&gt;Type "show copying" to see the conditions.&lt;BR /&gt;There is absolutely no warranty for GDB.  Type "show warranty" for details.&lt;BR /&gt;This GDB was configured as "hppa2.0n-hp-hpux11.00"...(no debugging symbols found)...&lt;BR /&gt;Core was generated by `test.pl'.&lt;BR /&gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;&lt;BR /&gt;warning: The shared libraries were not privately mapped; setting a&lt;BR /&gt;breakpoint in a shared library will not work until you rerun the program.&lt;BR /&gt;&lt;BR /&gt;Reading symbols from /usr/lib/libnsl.1...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libxti.2...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libnm.sl...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libsec.2...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libm.2...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libpthread.1...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libc.2...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libdld.2...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /appl/tmp/perl/PA-RISC1.1-thread-multi/auto/Password/Password.sl...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libdce.2...(no debugging symbols found)...done.&lt;BR /&gt;Reading symbols from /usr/lib/libcma.2...(no debugging symbols found)...done.&lt;BR /&gt;#0  0xc004d704 in pthread_mutex_init () from /usr/lib/libpthread.1&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  0xc004d704 in pthread_mutex_init () from /usr/lib/libpthread.1&lt;BR /&gt;#1  0xc0ba92bc in krb5_fcc_resolve () from /usr/lib/libdce.2&lt;BR /&gt;#2  0xc0a671a8 in sec_login_pvt_ccache_gennew () from /usr/lib/libdce.2&lt;BR /&gt;#3  0xc0a5e1a8 in allocate_krb_info () from /usr/lib/libdce.2&lt;BR /&gt;#4  0xc0a61198 in sec_login_pvt_allocate_login_context () from /usr/lib/libdce.2&lt;BR /&gt;#5  0xc0a5499c in sec_login_setup_identity () from /usr/lib/libdce.2&lt;BR /&gt;#6  0xc113a664 in XS_Password_changePrincipalPasswd () from /appl/tmp/perl/PA-RISC1.1-thread-multi/auto/Password/Password.sl&lt;BR /&gt;#7  0x000c3f68 in Perl_pp_entersub ()&lt;BR /&gt;#8  0x000ba8d4 in Perl_runops_standard ()&lt;BR /&gt;#9  0x000391c0 in S_run_body ()&lt;BR /&gt;#10 0x00038ea4 in perl_run ()&lt;BR /&gt;#11 0x000349f8 in main ()&lt;BR /&gt;(gdb)&lt;BR /&gt;&lt;BR /&gt;System info:&lt;BR /&gt; &lt;BR /&gt;HP-UX B.11.11 U 9000/800&lt;BR /&gt;gcc version 3.4.3&lt;BR /&gt;HP Perl D.5.8.0.G&lt;BR /&gt;$ swlist|grep -i dce&lt;BR /&gt;B3187B                                B.11.00.10     DCE/9000 CDS Server, Media and Manuals&lt;BR /&gt;B3188B                                B.11.00.10     DCE/9000 Security Server, Media and Manuals&lt;BR /&gt;B3192B                                B.11.00.10     Examples and OODCE Development Tools, Media and Manuals&lt;BR /&gt;B3864AA                               B.11.00.10     DCE/9000 DES Libraries, US &amp;amp; Canada Only&lt;BR /&gt;B6192AA                               B.11.11.10     DCE/9000 Programming &amp;amp; Administration Tools Media and Manuals&lt;BR /&gt;B6733AA                               B.11.00.10     DCE/9000 Kernel Threads Support&lt;BR /&gt;PHSS_28387                            1.0            HP DCE/9000 1.8 Server/DevTools cum. patch&lt;BR /&gt;PHSS_29964                            1.0            HP DCE/9000 1.8 DCE Client IPv6 patch&lt;BR /&gt;&lt;BR /&gt;Any thoughts why this is happening?&lt;BR /&gt;&lt;BR /&gt;I appreciate if anyone can help me.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards, &lt;BR /&gt;&lt;BR /&gt;Adriano&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Aug 2005 11:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920025#M104772</guid>
      <dc:creator>Adriano_9</dc:creator>
      <dc:date>2005-08-22T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perlxs DCE interface dumps core when built with gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920026#M104773</link>
      <description>libdce brings in libcma (user threads library) and libcma/libpthread (kernel threads library) cannot be mixed in the same executable. perl is linked with libpthread.&lt;BR /&gt;&lt;BR /&gt;You should try linking with libdcekt (dce kernel threads version of libdce) instead of libdce.</description>
      <pubDate>Tue, 23 Aug 2005 02:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920026#M104773</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-08-23T02:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Perlxs DCE interface dumps core when built with gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920027#M104774</link>
      <description>Hi Ermin, &lt;BR /&gt;&lt;BR /&gt;I wish I had asked before. :) Problem solved!!! thanks a lot and have a nice day!!!&lt;BR /&gt;&lt;BR /&gt;Adriano</description>
      <pubDate>Tue, 23 Aug 2005 07:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920027#M104774</guid>
      <dc:creator>Adriano_9</dc:creator>
      <dc:date>2005-08-23T07:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Perlxs DCE interface dumps core when built with gcc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920028#M104775</link>
      <description>closed</description>
      <pubDate>Tue, 13 Sep 2005 16:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perlxs-dce-interface-dumps-core-when-built-with-gcc/m-p/4920028#M104775</guid>
      <dc:creator>Adriano_9</dc:creator>
      <dc:date>2005-09-13T16:05:35Z</dc:date>
    </item>
  </channel>
</rss>

