<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;">I'm getting a segmentation fault with CGM built with Cubit10.2 on Ubuntu 10.10 using gcc version 4.4.5 <br>Error message and gdb debug message is :-<br><br>rajeev@nix:~/FATHOM/source/CGM/itaps$ gdb testgeom<br>GNU gdb (GDB) 7.2-ubuntu<br>Copyright (C) 2010 Free Software Foundation, Inc.<br><span>License GPLv3+: GNU GPL version 3 or later &lt;<a target="_blank" href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;</span><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.&nbsp; Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "i686-linux-gnu".<br>For bug reporting instructions, please see:<br><span>&lt;<a target="_blank"
 href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;...</span><br>Reading symbols from /home/rajeev/FATHOM/source/CGM/itaps/testgeom...done.<br>(gdb) r<br>Starting program: /home/rajeev/FATHOM/source/CGM/itaps/testgeom <br>[Thread debugging using libthread_db enabled]<br>Using default input file: ./testgeom.sat<br><br><br>ITAPS GEOMETRY INTERFACE TEST PROGRAM:<br><br>&nbsp;&nbsp; gLoad: Read 1 ACIS Entities from the input file<br><br><br>Constructed 1 Volume: 1<br>Model contents: <br>vertices: 36<br>edges: 60<br>faces: 33<br>regions: 1<br>Success<br>&nbsp;&nbsp; tags: Tags defined on model: GLOBAL_ID, NAME<br>Success<br><br><span style="font-weight: bold;">Program received signal SIGSEGV, Segmentation fault.</span><br style="font-weight: bold;"><span style="font-weight: bold;">0x00d2de39 in __libc_free (mem=0x80f4e20) at malloc.c:3724</span><br style="font-weight: bold;"><span style="font-weight:
 bold;">3724&nbsp;&nbsp;&nbsp; malloc.c: No such file or directory.</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; in malloc.c</span><br>(gdb) bt<br>#0&nbsp; 0x00d2de39 in __libc_free (mem=0x80f4e20) at malloc.c:3724<br>#1&nbsp; 0x001ba441 in operator delete(void*) () from /usr/lib/libstdc++.so.6<br>#2&nbsp; 0x0019cacd in std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_Rep::_M_destroy(std::allocator&lt;char&gt; const&amp;) ()<br>&nbsp;&nbsp; from /usr/lib/libstdc++.so.6<br>#3&nbsp; 0x0019cd61 in std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_M_mutate(unsigned int, unsigned int, unsigned int) ()<br>&nbsp;&nbsp; from /usr/lib/libstdc++.so.6<br>#4&nbsp; 0x0019cdba in std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_M_replace_safe(unsigned int, unsigned int, char const*, unsigned int) ()
 from /usr/lib/libstdc++.so.6<br>#5&nbsp; 0x0019ce7e in std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::assign(char const*, unsigned int) () from /usr/lib/libstdc++.so.6<br>#6&nbsp; 0x0019d085 in std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::operator=(char const*) () from /usr/lib/libstdc++.so.6<br>#7&nbsp; 0x08072065 in iGeom_setLastError (error_type=15, description=0x0) at iGeomError.cc:54<br>#8&nbsp; 0x0807314d in CGMTagManager::getTagHandle (this=0x808c860, tag_name=0x807d204 "__cgm_parent_child_tag") at CATag.cpp:337<br>#9&nbsp; 0x080727f7 in CGMTagManager::pc_tag (this=0x808c860, create_if_missing=true) at CATag.cpp:163<br>#10 0x0807441a in CGMTagManager::pc_list (this=0x808c860, gentity=0x81bbc98, list_no=0, create_if_missing=true) at CATag.cpp:699<br>#11 0x0805b24f in igeom_addprntchld_ (instance=0x808c860, parent_entity_set=0x81b9218,
 child_entity_set=0x81bbc98, err=0xbfffeea0) at iGeom_CGMA.cc:827<br>#12 0x08051014 in gentityset_test (geom=0x808c860) at testgeom.cc:676<br>#13 0x0804e96b in main (argc=1, argv=0xbfffefd4) at testgeom.cc:194<br>(gdb) <br><br><br>My config line is:<br>./configure --prefix=/home/rajeev/FATHOM/lib/CGM --with-cubit=/home/rajeev/cubit-32 --enable-debug LDFLAGS=-L/home/rajeev/cubit-32/bin LIBS=-lcubiti19 --disable-optimize<br><br>&nbsp;<font style="font-family: arial,helvetica,sans-serif;" size="2">Rajeev</font><br><div><br></div>
</div><br></body></html>