Skip to content

Instantly share code, notes, and snippets.

-- The C compiler identification is Clang 3.2.0
-- The CXX compiler identification is Clang 3.2.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
[INFO] Reducing number of features from 2 to 2
[DEBUG] force: 0
[INFO] preprocessing using preproc PruneVarSubMean
[INFO] get Feature matrix: 10x2
[INFO] Preprocessing feature matrix
[INFO] doing without cache.
[INFO] new Feature matrix: 10x2
[DEBUG] entering CKernel::remove_lhs_and_rhs
[DEBUG] leaving CKernel::remove_lhs_and_rhs
[DEBUG] entering CKernel::remove_lhs_and_rhs
==4799== Memcheck, a memory error detector
==4799== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==4799== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==4799== Command: ./clone_crash2
==4799==
==4799== Conditional jump or move depends on uninitialised value(s)
==4799== at 0x5F8CC70: shogun::TParameter::copy_ptype(shogun::EPrimitiveType, void*, void*) (Parameter.cpp:3656)
==4799== by 0x5F8CEE0: shogun::TParameter::copy_stype(shogun::EStructType, shogun::EPrimitiveType, void*, void*) (Parameter.cpp:3823)
==4799== by 0x5F8E041: shogun::TParameter::copy(shogun::TParameter*) (Parameter.cpp:4040)
==4799== by 0x5F964A5: shogun::CSGObject::clone() (SGObject.cpp:1286)
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2014 Roman Votyakov
*/
#include <shogun/kernel/GaussianKernel.h>
@votjakovr
votjakovr / clone_crash_debug.log
Created January 19, 2014 18:05
Debug log of CSGObject::clone() crash
[DEBUG] entering CKernel::remove_lhs_and_rhs
[DEBUG] leaving CKernel::remove_lhs_and_rhs
[DEBUG] entering CKernel::remove_lhs_and_rhs
[DEBUG] leaving CKernel::remove_lhs_and_rhs
[DEBUG] leaving CKernel::init(0x1766f60, 0x1766f60)
[DEBUG] entering GaussianKernel::clone()
[DEBUG] constructing an empty instance of GaussianKernel
[DEBUG] cloning parameter "cache_size" at index 0
[DEBUG] entering TParameter::copy()
[DEBUG] Comparing datatypes without length
@votjakovr
votjakovr / clone_crash_valgrind.log
Created January 19, 2014 18:04
Valgrind log of CSGObject::clone() crash
==21582== Memcheck, a memory error detector
==21582== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==21582== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==21582== Command: ./clone_crash
==21582==
==21582== Invalid write of size 8
==21582== at 0x5F92EDE: shogun::TParameter::copy_ptype(shogun::EPrimitiveType, void*, void*) (Parameter.cpp:3617)
==21582== by 0x5F93410: shogun::TParameter::copy_stype(shogun::EStructType, shogun::EPrimitiveType, void*, void*) (Parameter.cpp:3823)
==21582== by 0x5F94B86: shogun::TParameter::copy(shogun::TParameter*) (Parameter.cpp:4106)
==21582== by 0x5F9C9C5: shogun::CSGObject::clone() (SGObject.cpp:1292)
@votjakovr
votjakovr / clone_crash.cpp
Last active January 3, 2016 16:58
CSGObject::clone() crashes
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2014 Roman Votyakov
*/
#include <shogun/kernel/GaussianKernel.h>
@votjakovr
votjakovr / shogun-c-style.el
Last active December 20, 2015 15:49
SHOGUN C++ style for GNU Emacs
;; style according the SHOGUN guide for developer and some source files
(c-add-style "shogun"
'("stroustrup"
(indent-tabs-mode . t)
(tab-width . 4)
(c-offsets-alist
(innamespace . -)
(arglist-intro . ++)
(arglist-cont-nonempty . ++)