discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] error


From: Martin Dvh
Subject: Re: [Discuss-gnuradio] error
Date: Tue, 11 Jan 2005 19:02:41 +0100
User-agent: Mozilla Thunderbird 0.9 (X11/20041124)

Problem seems to be in the use of cppunit.
All the failures with gcc-3.4 are one the first invocation of
TextTestRunner.addTest()

my cppunit version is:
cppunit 1.10.0-5

But I suspect this is the one which needs to be compiled with gcc-3.4 in stead 
of gcc-3.3.
Does anybody know if it is possible to have multiple gccunit versions installed 
(and how do I use them this way)?

I runned all tests under gdb.
they all fail on a line containing someTextTestRunner.addTest(sometest)

The problem for gcc-3.4 seems not to be in test_vmcircbuf.
This one gets a SIGBUS but this is caught. This is the only test that runs to 
completion.
All other tests fail on the first .addTest(...)


running normal:
address@hidden:/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core$ 
src/tests/test_all
Segmentation fault

address@hidden:/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core$ 
src/tests/test_filter
Segmentation fault
address@hidden:/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core$ 
src/tests/test_general
Segmentation fault
address@hidden:/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core$ 
src/tests/test_runtime
Segmentation fault
address@hidden:/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core$ 
src/tests/test_vmcircbuf
Testing gr_vmcircbuf_sysv_shm_factory...
....... gr_vmcircbuf_sysv_shm_factory: OK
Testing gr_vmcircbuf_mmap_shm_open_factory...
....... gr_vmcircbuf_mmap_shm_open_factory: Failed
gr_vmcircbuf_factory::test_factory (gr_vmcircbuf_mmap_shm_open_factory): caught 
SIGBUS
Testing gr_vmcircbuf_mmap_tmpfile_factory...
....... gr_vmcircbuf_mmap_tmpfile_factory: OK
test_vmcircbuf: OK.  We've got at least one workable solution


running under gdb:
$ gdb 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_all
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_all
[Thread debugging using libthread_db enabled]
[New Thread 1079732480 (LWP 3587)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079732480 (LWP 3587)]
0x401f390b in std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::basic_string () from /usr/lib/libstdc++.so.6
(gdb) backtrace
#0  0x401f390b in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
#1 0x4009bbc3 in std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::_M_copy (this=0xbffff73c, __x=0x1, __p=0xbffff740) at stl_construct.h:81
#2  0x401219b9 in qa_runtime::suite () at stl_tree.h:464
#3  0x0804899f in main (argc=1, argv=0xbffff914) at test_all.cc:38
(gdb)

snippet of test_all.cc:
int
main (int argc, char **argv)
{

  CppUnit::TextTestRunner       runner;

line38:  runner.addTest (qa_runtime::suite ());
  runner.addTest (qa_general::suite ());
  runner.addTest (qa_filter::suite ());
  // runner.addTest (qa_atsc::suite ());

  bool was_successful = runner.run ("", false);

  return was_successful ? 0 : 1;
}



$ gdb 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_filter
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_filter
[Thread debugging using libthread_db enabled]
[New Thread 1079732480 (LWP 3592)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079732480 (LWP 3592)]
0x401f3910 in std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::basic_string () from /usr/lib/libstdc++.so.6
(gdb) backtrace
#0  0x401f3910 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
#1 0x4009bbc3 in std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::_M_copy (this=0xbffff2dc, __x=0x4000bbe0, __p=0xbffff2e0) at stl_construct.h:81
#2  0x400a3acc in qa_float_dotprod_x86::addTestsToSuite (
    address@hidden) at stl_tree.h:464
#3  0x400a334d in qa_dotprod_suite () at qa_float_dotprod_x86.h:40
#4  0x40099f9b in qa_filter::suite () at qa_filter.cc:43
#5  0x0804891f in main (argc=1, argv=0xbffff904) at test_filter.cc:32
(gdb)

snippet of qa_filter.cc
CppUnit::TestSuite *
qa_filter::suite ()
{
  CppUnit::TestSuite    *s = new CppUnit::TestSuite ("filter");

line43:  s->addTest (qa_dotprod_suite ());
  s->addTest (qa_gr_mmse_fir_interpolator::suite ());
  s->addTest (qa_gr_fir_fff::suite ());
  s->addTest (qa_gr_fir_ccc::suite ());
  s->addTest (qa_gr_fir_fcc::suite ());
  s->addTest (qa_gr_fir_scc::suite ());
  s->addTest (qa_gr_fir_ccf::suite ());

  return s;
}




$ gdb 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_general
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_general
[Thread debugging using libthread_db enabled]
[New Thread 1079732480 (LWP 3596)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079732480 (LWP 3596)]
0x401f390b in std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::basic_string () from /usr/lib/libstdc++.so.6
(gdb) backtrace
#0  0x401f390b in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
#1 0x4009bbc3 in std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::_M_copy (this=0xbffff59c, __x=0x1, __p=0xbffff5a0) at stl_construct.h:81
#2  0x400f016c in qa_gr_firdes::addTestsToSuite (address@hidden)
    at stl_tree.h:464
#3  0x400ef509 in qa_general::suite () at qa_gr_firdes.h:35
#4  0x0804891f in main (argc=1, argv=0xbffff904) at test_general.cc:32
(gdb)



$ gdb 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_runtime
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_runtime
[Thread debugging using libthread_db enabled]
[New Thread 1079732480 (LWP 3600)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079732480 (LWP 3600)]
0x401f390b in std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::basic_string () from /usr/lib/libstdc++.so.6
(gdb) backtrace
#0  0x401f390b in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
#1 0x4009bbc3 in std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::_M_copy (this=0xbffff72c, __x=0x1, __p=0xbffff730) at stl_construct.h:81
#2  0x401219b9 in qa_runtime::suite () at stl_tree.h:464
#3  0x0804891f in main (argc=1, argv=0xbffff904) at test_runtime.cc:32
(gdb)



$ gdb 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_vmcircbuf
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: 
/pub/projects/bt8x8/gnuradio/cvs.newest/gnuradio-core/src/tests.mdvh/.libs/lt-test_vmcircbuf
[Thread debugging using libthread_db enabled]
[New Thread 1079732480 (LWP 3604)]
Testing gr_vmcircbuf_sysv_shm_factory...
....... gr_vmcircbuf_sysv_shm_factory: OK
Testing gr_vmcircbuf_mmap_shm_open_factory...

Program received signal SIGBUS, Bus error.
[Switching to Thread 1079732480 (LWP 3604)]
0x40112463 in test_a_bunch (factory=0x808f510, n=32, size=4194304,
    start_ptr=0xbffff69c, verbose=false) at gr_vmcircbuf.cc:124
124         p[i] = counter + i;
(gdb) backtrace
#0  0x40112463 in test_a_bunch (factory=0x808f510, n=32, size=4194304,
    start_ptr=0xbffff69c, verbose=false) at gr_vmcircbuf.cc:124
#1  0x40112abc in gr_vmcircbuf_sysconfig::test_factory (f=0x808f510, verbose=1)
    at gr_vmcircbuf.cc:228
#2  0x40112cdd in gr_vmcircbuf_sysconfig::test_all_factories (verbose=1)
    at stl_vector.h:462
#3  0x0804864f in main (argc=1, argv=0xbffff904) at test_vmcircbuf.cc:34
(gdb)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]