[cgma-dev] Seg. fault with gcc 4.4.5 and Ubuntu 10.10

Rajeev Jain jain at mcs.anl.gov
Fri Oct 22 09:34:16 CDT 2010


I'm getting a segmentation fault with CGM built with Cubit10.2 on Ubuntu 10.10 
using gcc version 4.4.5 

Error message and gdb debug message is :-

rajeev at nix:~/FATHOM/source/CGM/itaps$ gdb testgeom
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rajeev/FATHOM/source/CGM/itaps/testgeom...done.
(gdb) r
Starting program: /home/rajeev/FATHOM/source/CGM/itaps/testgeom 
[Thread debugging using libthread_db enabled]
Using default input file: ./testgeom.sat


ITAPS GEOMETRY INTERFACE TEST PROGRAM:

   gLoad: Read 1 ACIS Entities from the input file


Constructed 1 Volume: 1
Model contents: 
vertices: 36
edges: 60
faces: 33
regions: 1
Success
   tags: Tags defined on model: GLOBAL_ID, NAME
Success

Program received signal SIGSEGV, Segmentation fault.
0x00d2de39 in __libc_free (mem=0x80f4e20) at malloc.c:3724
3724    malloc.c: No such file or directory.
    in malloc.c
(gdb) bt
#0  0x00d2de39 in __libc_free (mem=0x80f4e20) at malloc.c:3724
#1  0x001ba441 in operator delete(void*) () from /usr/lib/libstdc++.so.6
#2  0x0019cacd in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&) ()
   from /usr/lib/libstdc++.so.6
#3  0x0019cd61 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::_M_mutate(unsigned int, unsigned int, unsigned int) ()
   from /usr/lib/libstdc++.so.6
#4  0x0019cdba in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::_M_replace_safe(unsigned int, unsigned int, char const*, 
unsigned int) () from /usr/lib/libstdc++.so.6
#5  0x0019ce7e in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::assign(char const*, unsigned int) () from 
/usr/lib/libstdc++.so.6
#6  0x0019d085 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::operator=(char const*) () from /usr/lib/libstdc++.so.6
#7  0x08072065 in iGeom_setLastError (error_type=15, description=0x0) at 
iGeomError.cc:54
#8  0x0807314d in CGMTagManager::getTagHandle (this=0x808c860, 
tag_name=0x807d204 "__cgm_parent_child_tag") at CATag.cpp:337
#9  0x080727f7 in CGMTagManager::pc_tag (this=0x808c860, create_if_missing=true) 
at CATag.cpp:163
#10 0x0807441a in CGMTagManager::pc_list (this=0x808c860, gentity=0x81bbc98, 
list_no=0, create_if_missing=true) at CATag.cpp:699
#11 0x0805b24f in igeom_addprntchld_ (instance=0x808c860, 
parent_entity_set=0x81b9218, child_entity_set=0x81bbc98, err=0xbfffeea0) at 
iGeom_CGMA.cc:827
#12 0x08051014 in gentityset_test (geom=0x808c860) at testgeom.cc:676
#13 0x0804e96b in main (argc=1, argv=0xbfffefd4) at testgeom.cc:194
(gdb) 


My config line is:
./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

 Rajeev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20101022/f6635c65/attachment.htm>


More information about the cgma-dev mailing list