Here is the stack trace, FWIW:
(gdb) where
#0 0x955c2e42 in __kill ()
#1 0x955c2e34 in kill$UNIX2003 ()
#2 0x9563523a in raise ()
#3 0x95641679 in abort ()
#4 0x0334982a in __gnu_debug::_Error_formatter::_M_error ()
#5 0x00773edb in
__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<libMesh::Elem**, std::__norm::vector<libMesh::Elem*,
std::allocator<libMesh::Elem*> > >, std::__debug::vector<libMesh::Elem*,
std::allocator<libMesh::Elem*> > >::operator* (this=0x3521554) at
debug/safe_iterator.h:173
#6 0x0076f8ce in
variant_filter_iterator<libMesh::Predicates::multi_predicate,
libMesh::Elem*, libMesh::Elem*&,
libMesh::Elem**>::Iter<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<libMesh::Elem**,
std::__norm::vector<libMesh::Elem*, std::allocator<libMesh::Elem*> > >,
std::__debug::vector<libMesh::Elem*, std::allocator<libMesh::Elem*> > >
>::operator* (this=0x3521550) at variant_filter_iterator.h:179
#7 0x00793c22 in
variant_filter_iterator<libMesh::Predicates::multi_predicate,
libMesh::Elem*, libMesh::Elem*&, libMesh::Elem**>::operator*
(this=0xbfff845c) at variant_filter_iterator.h:408
#8 0x00787603 in libMesh::UnstructuredMesh::find_neighbors
(this=0xbfffe040, reset_remote_elements=false, reset_current_list=true)
at src/mesh/unstructured_mesh.C:200
#9 0x00630e39 in libMesh::MeshBase::prepare_for_use (this=0xbfffe040,
skip_renumber_nodes_and_elements=false) at src/mesh/mesh_base.C:98
#10 0x006c74db in libMesh::MeshTools::Generation::build_cube
(mesh=@0xbfffe040, nx=2, ny=2, nz=0, xmin=0, xmax=1, ymin=0, ymax=1,
zmin=0, zmax=0, type=libMeshEnums::QUAD9, gauss_lobatto_grid=false) at
src/mesh/mesh_generation.C:1438
#11 0x006c76de in libMesh::MeshTools::Generation::build_square
(mesh=@0xbfffe040, nx=2, ny=2, xmin=0, xmax=1, ymin=0, ymax=1,
type=libMeshEnums::QUAD9, gauss_lobatto_grid=false) at
src/mesh/mesh_generation.C:1501
#12 0x00002b66 in main (argc=1, argv=0xbfffe0d8) at main.C:14
On 3/14/11 12:46 PM, Boyce Griffith wrote:
> OK, it looks like this was introduced in r4248.
>
> On 3/14/11 12:41 PM, Roy Stogner wrote:
>>
>> Thanks. This is looking like one hell of a bug - John tells me that
>> for him it works in opt mode but segfaults in dbg mode; on my laptop I
>> don't get any failure either way! Going to try it on a couple
>> different computers.
>> ---
>> Roy
>>
>> On Mon, 14 Mar 2011, Boyce Griffith wrote:
>>
>>> In the meantime, I will try to find the rev at which this starts
>>> happening.
>>>
>>> On 3/14/11 12:23 PM, Roy Stogner wrote:
>>>>
>>>> Hell, that simple???? I'll check it out ASAP.
>>>>
>>>> Thanks,
>>>> ---
>>>> Roy
>>>>
>>>> On Mon, 14 Mar 2011, Boyce Griffith wrote:
>>>>
>>>>> Here is an example that triggers this error:
>>>>>
>>>>> #include <mesh.h>
>>>>> #include <mesh_generation.h>
>>>>> #include <string_to_enum.h>
>>>>> int main(int argc, char* argv[])
>>>>> {
>>>>> LibMeshInit init(argc, argv);
>>>>> Mesh mesh(2);
>>>>> std::string elem_type = "QUAD4";
>>>>> MeshTools::Generation::build_square(
>>>>> mesh,
>>>>> 1, 1,
>>>>> 0.0, 1.0,
>>>>> 0.0, 1.0,
>>>>> Utility::string_to_enum<ElemType>(elem_type));
>>>>> return 0;
>>>>> }
>>>>>
>>>>> -- Boyce
>>>>>
>>>>
>>>
>>
|