<?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: gcc makes segmentation error when executing codes with &amp;lt;iostream&amp;gt; included. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016384#M718778</link>
    <description>Not so many answers here...sad...&lt;BR /&gt;&lt;BR /&gt;Well, when I run gdb with the executable, I get the following error messages.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;contgw:/usr/local&amp;gt;gdb hello&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 "hppa64-hp-hpux11.11"...&lt;BR /&gt;(gdb) r&lt;BR /&gt;Starting program: /usr/local/hello &lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;0x800003ffff7c2c4c in ?? ()&lt;BR /&gt;    at /CLO/Products/OPENSOURCE/src/PL/gcc/obj_gcc/hppa64-hp-hpux11.00/libstdc++-v3/include/istream:273&lt;BR /&gt;273     /CLO/Products/OPENSOURCE/src/PL/gcc/obj_gcc/hppa64-hp-hpux11.00/libstdc++-v3/include/istream: No such file or directory.&lt;BR /&gt;        in /CLO/Products/OPENSOURCE/src/PL/gcc/obj_gcc/hppa64-hp-hpux11.00/libstdc++-v3/include/istream&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Jul 2003 05:59:38 GMT</pubDate>
    <dc:creator>Jin-Ho Song</dc:creator>
    <dc:date>2003-07-07T05:59:38Z</dc:date>
    <item>
      <title>gcc makes segmentation error when executing codes with &lt;iostream&gt; included.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016383#M718777</link>
      <description>I've found that 64bit gcc on hpux doesn't go easy as in linux or something. I've spent several weeks in doing the same thing...&lt;BR /&gt;&lt;BR /&gt;Binary version of gcc from hp site, the first one, had the following configuration, &lt;BR /&gt;&lt;BR /&gt;Reading specs from /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/specs&lt;BR /&gt;Configured with: ../gcc/configure --prefix=/usr/local/pa20_64 --enable-languages=c,c++ --host=hppa64-hp-hpux11.00 --target=hppa64-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3 --disable-checking&lt;BR /&gt;Thread model: single&lt;BR /&gt;gcc version 3.2 20020708 (experimental)&lt;BR /&gt;&lt;BR /&gt;But it had errors when building gnu softwares, say, it stops out of memory(lack of maxssiz parameter or something). Then I got a pre-built version configured with gnu ld from &lt;A href="http://www.cmve.net/~merijn/," target="_blank"&gt;http://www.cmve.net/~merijn/,&lt;/A&gt; and it didn't make errors as in the above, but it had errors like incompatable header file, &lt;SOCKET.H&gt; and makes a lot of link error due to gnu linker, so I finally built my own 64bit gcc from original hp 64bit gcc configured with hp linker.&lt;BR /&gt;&lt;BR /&gt;Well, it went well for some time, but I found that it had errors when executing c++ codes(not in compiling). Whenever the code includes iostream object like 'cout', it makes segmentation error. If I inserted stdio.h function like printf(), it works fine.&lt;BR /&gt;&lt;BR /&gt;//hello.cc&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;   std::cout &amp;lt;&amp;lt; "hello" &amp;lt;&amp;lt; std::endl;&lt;BR /&gt;   return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;contgw:/usr/local&amp;gt;./hello &lt;BR /&gt;Segmentation fault (core dumped)&lt;BR /&gt;&lt;BR /&gt;Anybody can give me any hint for this?&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;/IOSTREAM&gt;&lt;/SOCKET.H&gt;</description>
      <pubDate>Mon, 07 Jul 2003 05:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016383#M718777</guid>
      <dc:creator>Jin-Ho Song</dc:creator>
      <dc:date>2003-07-07T05:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: gcc makes segmentation error when executing codes with &lt;iostream&gt; included.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016384#M718778</link>
      <description>Not so many answers here...sad...&lt;BR /&gt;&lt;BR /&gt;Well, when I run gdb with the executable, I get the following error messages.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;contgw:/usr/local&amp;gt;gdb hello&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 "hppa64-hp-hpux11.11"...&lt;BR /&gt;(gdb) r&lt;BR /&gt;Starting program: /usr/local/hello &lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;0x800003ffff7c2c4c in ?? ()&lt;BR /&gt;    at /CLO/Products/OPENSOURCE/src/PL/gcc/obj_gcc/hppa64-hp-hpux11.00/libstdc++-v3/include/istream:273&lt;BR /&gt;273     /CLO/Products/OPENSOURCE/src/PL/gcc/obj_gcc/hppa64-hp-hpux11.00/libstdc++-v3/include/istream: No such file or directory.&lt;BR /&gt;        in /CLO/Products/OPENSOURCE/src/PL/gcc/obj_gcc/hppa64-hp-hpux11.00/libstdc++-v3/include/istream&lt;BR /&gt;warning: (Internal error: pc 0x800003ffff7c2c4c in read in psymtab, but not in symtab.)&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2003 05:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016384#M718778</guid>
      <dc:creator>Jin-Ho Song</dc:creator>
      <dc:date>2003-07-07T05:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: gcc makes segmentation error when executing codes with &lt;iostream&gt; included.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016385#M718779</link>
      <description>1.how much memory is free on the system?&lt;BR /&gt;Is the memory usage OK on the system and also the swap usage.&lt;BR /&gt;&lt;BR /&gt;2.Increase the kernel parameters &lt;BR /&gt;&lt;BR /&gt;maxdsiz    |&lt;BR /&gt;maxssiz    |  for 32 -bit applications&lt;BR /&gt;&lt;BR /&gt;maxdsiz_64 |&lt;BR /&gt;maxssiz_64 |for 64 bit applications&lt;BR /&gt;&lt;BR /&gt;By default the data size and stack size of the process is 64 MB.&lt;BR /&gt;&lt;BR /&gt;Increase to some value higher.&lt;BR /&gt;Most SIGSEGV problems are due to the above.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Revert&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2003 06:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016385#M718779</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-07-07T06:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: gcc makes segmentation error when executing codes with &lt;iostream&gt; included.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016386#M718780</link>
      <description>I've checked out kernel parameters with SAM and the current value for maxssiz is 8.3MB. &lt;BR /&gt;You mean I need to increase it to 64MB, right?&lt;BR /&gt;&lt;BR /&gt;If this is the case, I don't know how to update the kernel values. That's why I discarded 64bit gcc 3.2 from hp site which made errors like SIGSEGV. Can you let me know the detailed steps I need to take if you don't mind?&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Mon, 07 Jul 2003 07:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-makes-segmentation-error-when-executing-codes-with-lt/m-p/3016386#M718780</guid>
      <dc:creator>Jin-Ho Song</dc:creator>
      <dc:date>2003-07-07T07:04:17Z</dc:date>
    </item>
  </channel>
</rss>

