<?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 Python ctypes causing segmentation fault on IA64 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/python-ctypes-causing-segmentation-fault-on-ia64/m-p/6773434#M494612</link>
    <description>&lt;P&gt;I am currently trying to get Python 2.7.X ctypes/_ctypes working on HPUX IA64 such that this code would work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import ctypes;lc=ctypes.CDLL("/usr/lib/hpux32/libc.so");lc.time(None)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code however causes a segmentation fault on the last line.&lt;/P&gt;&lt;P&gt;I had installed ixPython from the Internet Express bundle however that version is missing the _ctypes module which the ctypes module uses. I'm not the first person to uncover this issue as even back in 2010 there was a post about it:&amp;nbsp;&lt;A href="https://community.hpe.com/t5/Languages-and-Scripting/HPUX-11-31-IA-python-installed-but-giving-errors/td-p/4609927" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/HPUX-11-31-IA-python-installed-but-giving-errors/td-p/4609927&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So right now I am using the Python and Libffi packages from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;. Unfortunately I'm unable to determine what the root cause is, whether it is Python or Libffi.&lt;/P&gt;&lt;P&gt;Is anyone here able to get the sample code above running properly? If so what is your setup. I'm also looking for suggestions on things to try since I'm running out of ideas.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2015 14:23:59 GMT</pubDate>
    <dc:creator>magixx</dc:creator>
    <dc:date>2015-08-10T14:23:59Z</dc:date>
    <item>
      <title>Python ctypes causing segmentation fault on IA64</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/python-ctypes-causing-segmentation-fault-on-ia64/m-p/6773434#M494612</link>
      <description>&lt;P&gt;I am currently trying to get Python 2.7.X ctypes/_ctypes working on HPUX IA64 such that this code would work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import ctypes;lc=ctypes.CDLL("/usr/lib/hpux32/libc.so");lc.time(None)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code however causes a segmentation fault on the last line.&lt;/P&gt;&lt;P&gt;I had installed ixPython from the Internet Express bundle however that version is missing the _ctypes module which the ctypes module uses. I'm not the first person to uncover this issue as even back in 2010 there was a post about it:&amp;nbsp;&lt;A href="https://community.hpe.com/t5/Languages-and-Scripting/HPUX-11-31-IA-python-installed-but-giving-errors/td-p/4609927" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/HPUX-11-31-IA-python-installed-but-giving-errors/td-p/4609927&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So right now I am using the Python and Libffi packages from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;. Unfortunately I'm unable to determine what the root cause is, whether it is Python or Libffi.&lt;/P&gt;&lt;P&gt;Is anyone here able to get the sample code above running properly? If so what is your setup. I'm also looking for suggestions on things to try since I'm running out of ideas.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/python-ctypes-causing-segmentation-fault-on-ia64/m-p/6773434#M494612</guid>
      <dc:creator>magixx</dc:creator>
      <dc:date>2015-08-10T14:23:59Z</dc:date>
    </item>
  </channel>
</rss>

