[mlpack-svn] [MLPACK] #185: Bug in SpMat::submat results in backtrace & memory map dump.

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Fri Jan 20 16:32:15 EST 2012


#185: Bug in SpMat::submat results in backtrace & memory map dump.
-------------------------------+--------------------------------------------
  Reporter:  mamidon           |        Owner:  rcurtin
      Type:  defect            |       Status:  new    
  Priority:  major             |    Milestone:         
 Component:  armadillo sparse  |   Resolution:         
  Keywords:                    |     Blocking:         
Blocked By:                    |  
-------------------------------+--------------------------------------------

Comment (by mamidon):

 mamidon at fre3kbox:~/arma_clean/trunk/sparse$ ./sptest
 Running 66 test cases...
 e is 0x7fff1f9e9160
 sparse_test.cpp(201): fatal error in "PrintTest": critical check
 base_result == sparse_result failed [0 0 0 0 5 0 0 0 127863 0 0 0 0 0 0 0
 5 0 0 0 127863 0 0 0             0            0            0            0
 !=             0            5            0            0            0
 0       127863            0            0            0            0
 0            0            5            0            0            0
 0       127863            0]
 sparse_test.cpp(1124): fatal error in "SpMatReshapeColumnwiseTest":
 critical check (unsigned int) ref(2, 0) == 0 failed [3 != 0]

 *** 2 failures detected in test suite "SparseMatrixTest"
 *** glibc detected *** ./sptest: munmap_chunk(): invalid pointer:
 0x0000000002807850 ***
 ======= Backtrace: =========
 /lib/libc.so.6(+0x71ad6)[0x7f3e9f473ad6]
 /usr/lib/libboost_unit_test_framework.so.1.42.0(_ZNSt8_Rb_treeImSt4pairIKmN5boost9unit_test12test_resultsEESt10_Select1stIS5_ESt4lessImESaIS5_EE8_M_eraseEPSt13_Rb_tree_nodeIS5_E+0x18c)[0x7f3ea03b72ac]
 /usr/lib/libboost_unit_test_framework.so.1.42.0(+0x6ed4d)[0x7f3ea03b5d4d]
 /lib/libc.so.6(+0x365e2)[0x7f3e9f4385e2]
 /lib/libc.so.6(+0x36635)[0x7f3e9f438635]
 /lib/libc.so.6(__libc_start_main+0x104)[0x7f3e9f420c54]
 ./sptest[0x404729]
 ======= Memory map: ========
 00400000-00884000 r-xp 00000000 08:05 3804841
 /home/mamidon/arma_clean/trunk/sparse/sptest
 00a84000-00a85000 rw-p 00484000 08:05 3804841
 /home/mamidon/arma_clean/trunk/sparse/sptest
 027fc000-0281d000 rw-p 00000000 00:00 0
 [heap]
 7f3e9dbb8000-7f3e9dca2000 r-xp 00000000 08:01 2234726
 /usr/lib/libgfortran.so.3.0.0
 7f3e9dca2000-7f3e9dea1000 ---p 000ea000 08:01 2234726
 /usr/lib/libgfortran.so.3.0.0
 7f3e9dea1000-7f3e9dea3000 rw-p 000e9000 08:01 2234726
 /usr/lib/libgfortran.so.3.0.0
 7f3e9dea3000-7f3e9dea4000 rw-p 00000000 00:00 0
 7f3e9dea4000-7f3e9e7ad000 r-xp 00000000 08:01 2251963
 /usr/lib/atlas-base/atlas/liblapack.so.3gf.0
 7f3e9e7ad000-7f3e9e9ac000 ---p 00909000 08:01 2251963
 /usr/lib/atlas-base/atlas/liblapack.so.3gf.0
 7f3e9e9ac000-7f3e9e9b1000 rw-p 00908000 08:01 2251963
 /usr/lib/atlas-base/atlas/liblapack.so.3gf.0
 7f3e9e9b1000-7f3e9eabe000 rw-p 00000000 00:00 0
 7f3e9eabe000-7f3e9edd6000 r-xp 00000000 08:01 2251964
 /usr/lib/atlas-base/atlas/libblas.so.3gf.0
 7f3e9edd6000-7f3e9efd6000 ---p 00318000 08:01 2251964
 /usr/lib/atlas-base/atlas/libblas.so.3gf.0
 7f3e9efd6000-7f3e9efde000 rw-p 00318000 08:01 2251964
 /usr/lib/atlas-base/atlas/libblas.so.3gf.0
 7f3e9efde000-7f3e9efe5000 r-xp 00000000 08:01 2093083
 /lib/librt-2.11.2.so
 7f3e9efe5000-7f3e9f1e4000 ---p 00007000 08:01 2093083
 /lib/librt-2.11.2.so
 7f3e9f1e4000-7f3e9f1e5000 r--p 00006000 08:01 2093083
 /lib/librt-2.11.2.so
 7f3e9f1e5000-7f3e9f1e6000 rw-p 00007000 08:01 2093083
 /lib/librt-2.11.2.so
 7f3e9f1e6000-7f3e9f1fd000 r-xp 00000000 08:01 2093082
 /lib/libpthread-2.11.2.so
 7f3e9f1fd000-7f3e9f3fc000 ---p 00017000 08:01 2093082
 /lib/libpthread-2.11.2.so
 7f3e9f3fc000-7f3e9f3fd000 r--p 00016000 08:01 2093082
 /lib/libpthread-2.11.2.so
 7f3e9f3fd000-7f3e9f3fe000 rw-p 00017000 08:01 2093082
 /lib/libpthread-2.11.2.so
 7f3e9f3fe000-7f3e9f402000 rw-p 00000000 00:00 0
 7f3e9f402000-7f3e9f55a000 r-xp 00000000 08:01 2093081
 /lib/libc-2.11.2.so
 7f3e9f55a000-7f3e9f759000 ---p 00158000 08:01 2093081
 /lib/libc-2.11.2.so
 7f3e9f759000-7f3e9f75d000 r--p 00157000 08:01 2093081
 /lib/libc-2.11.2.so
 7f3e9f75d000-7f3e9f75e000 rw-p 0015b000 08:01 2093081
 /lib/libc-2.11.2.so
 7f3e9f75e000-7f3e9f763000 rw-p 00000000 00:00 0
 7f3e9f763000-7f3e9f779000 r-xp 00000000 08:01 2093097
 /lib/libgcc_s.so.1
 7f3e9f779000-7f3e9f978000 ---p 00016000 08:01 2093097
 /lib/libgcc_s.so.1
 7f3e9f978000-7f3e9f979000 rw-p 00015000 08:01 2093097
 /lib/libgcc_s.so.1
 7f3e9f979000-7f3e9f9f9000 r-xp 00000000 08:01 2093090
 /lib/libm-2.11.2.so
 7f3e9f9f9000-7f3e9fbf9000 ---p 00080000 08:01 2093090
 /lib/libm-2.11.2.so
 7f3e9fbf9000-7f3e9fbfa000 r--p 00080000 08:01 2093090
 /lib/libm-2.11.2.so
 7f3e9fbfa000-7f3e9fbfb000 rw-p 00081000 08:01 2093090
 /lib/libm-2.11.2.so
 7f3e9fbfb000-7f3e9fcf1000 r-xp 00000000 08:01 2224842
 /usr/lib/libstdc++.so.6.0.13
 7f3e9fcf1000-7f3e9fef1000 ---p 000f6000 08:01 2224842
 /usr/lib/libstdc++.so.6.0.13
 7f3e9fef1000-7f3e9fef8000 r--p 000f6000 08:01 2224842
 /usr/lib/libstdc++.so.6.0.13
 7f3e9fef8000-7f3e9fefa000 rw-p 000fd000 08:01 2224842
 /usr/lib/libstdc++.so.6.0.13
 7f3e9fefa000-7f3e9ff0f000 rw-p 00000000 00:00 0
 7f3e9ff0f000-7f3e9ff40000 r-xp 00000000 08:01 2255978
 /usr/lib/libcxsparse.so.2.2.3
 7f3e9ff40000-7f3ea013f000 ---p 00031000 08:01 2255978
 /usr/lib/libcxsparse.so.2.2.3
 7f3ea013f000-7f3ea0140000 rw-p 00030000 08:01 2255978
 /usr/lib/libcxsparse.so.2.2.3
 7f3ea0140000-7f3ea0146000 r-xp 00000000 08:01 2255956
 /usr/lib/libarmadillo.so.2.4.2
 7f3ea0146000-7f3ea0346000 ---p 00006000 08:01 2255956
 /usr/lib/libarmadillo.so.2.4.2
 7f3ea0346000-7f3ea0347000 rw-p 00006000 08:01 2255956
 /usr/lib/libarmadillo.so.2.4.2
 7f3ea0347000-7f3ea03fe000 r-xp 00000000 08:01 2248585
 /usr/lib/libboost_unit_test_framework.so.1.42.0
 7f3ea03fe000-7f3ea05fd000 ---p 000b7000 08:01 2248585
 /usr/lib/libboost_unit_test_framework.so.1.42.0
 7f3ea05fd000-7f3ea0605000 rw-p 000b6000 08:01 2248585
 /usr/lib/libboost_unit_test_framework.so.1.42.0
 7f3ea0605000-7f3ea0606000 rw-p 00000000 00:00 0
 7f3ea0606000-7f3ea0624000 r-xp 00000000 08:01 2093093
 /lib/ld-2.11.2.so
 7f3ea0805000-7f3ea080c000 rw-p 00000000 00:00 0
 7f3ea0820000-7f3ea0823000 rw-p 00000000 00:00 0
 7f3ea0823000-7f3ea0824000 r--p 0001d000 08:01 2093093
 /lib/ld-2.11.2.so
 7f3ea0824000-7f3ea0825000 rw-p 0001e000 08:01 2093093
 /lib/ld-2.11.2.so
 7f3ea0825000-7f3ea0826000 rw-p 00000000 00:00 0
 7fff1f9d8000-7fff1f9ed000 rw-p 00000000 00:00 0
 [stack]Aborted

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/185#comment:2>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list