Skip to content

Instantly share code, notes, and snippets.

@gidden
gidden / gist:10910786
Created April 16, 2014 17:29
double free from xdressed pair of custom type
** Error in `/usr/bin/python': double free or corruption (fasttop): 0x00000000018a60e0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7ffff7875996]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSsD1Ev+0x1f)[0x7ffff0e8405f]
/home/gidden/work/xdress/tests/cppproj/install-gccxml/lib/python2.7/site-packages/cppproj/pybasics.so(_ZN7cppproj18SomeCrazyPairValueD1Ev+0x18)[0x7fffef57807e]
/home/gidden/work/xdress/tests/cppproj/install-gccxml/lib/python2.7/site-packages/cppproj/pybasics.so(_ZNSt4pairIiN7cppproj18SomeCrazyPairValueEED1Ev+0x1c)[0x7fffef57809c]
/home/gidden/work/xdress/tests/cppproj/install-gccxml/lib/python2.7/site-packages/cppproj/pybasics.so(_ZN7cppproj7TClass2IfED1Ev+0x2d)[0x7fffef579265]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c071)[0x7ffff7831071]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c0f5)[0x7ffff78310f5]
/usr/bin/python[0x4189b9]
@gidden
gidden / gist:11049508
Created April 18, 2014 15:19
condor interactive submit
# This is a "normal" job.
universe = vanilla
# If any information about this submission is written
# as output to standard output or standard error,
# where should it be saved?
output = process.out
error = process.err
# Where to write a log of your jobs' statuses.
@gidden
gidden / gist:54ca4f9f41a4060ebec9
Created June 13, 2014 17:13
pytables failure on void col dtype
import numpy as np
import tables as t
import uuid
id = uuid.uuid4()
h5file = t.open_file(".tmp{0}".format(id), mode='w',)
dtype = np.dtype([('id', (np.void, 16))])
h5file.create_table(h5file.root, "hi", dtype)
@gidden
gidden / gist:048aa75995abe6d82e8b
Created July 10, 2014 16:32
Cyclopts Output for 8200a48be1384daaa150177f1a57fbc9
UUID with max number of arc: 8200a48be1384daaa150177f1a57fbc9 (189540 arcs)
Coin0506I Presolve 10664 (-10486) rows, 104064 (-85566) columns and 301482 (-455148) elements
Clp0006I 0 Obj 0 Primal inf 5459.3801 (90)
Clp0006I 278 Obj 3546.3574 Primal inf 1115.8705 (395)
Clp0006I 556 Obj 3547.8921 Primal inf 639.72194 (242)
Clp0006I 834 Obj 3549.2624 Primal inf 122.41827 (63)
Clp0006I 888 Obj 3549.3124
Clp0000I Optimal - objective value 3549.3124
Coin0511I After Postsolve, objective 3549.3124, infeasibilities - dual 1.1480397 (155), primal 0 (0)
Found an entry named np that is unknown to the parser.
12 possible (not validated) samplers found from input run control
Preparing input database
Converting 12 instances
5951401 function calls (5945665 primitive calls) in 8.094 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
12 2.089 0.174 3.798 0.316 params.py:485(populate_params)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Clp configure trunk, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ../../Clp/configure --prefix=/home/gidden/software/coin-Cbc-trunk/build --cache-file=/dev/null --srcdir=../../Clp
## --------- ##
## Platform. ##
@gidden
gidden / gist:ffb6e4321c74025bf526
Created July 30, 2014 19:28
custom event handler
/// An event handler that records the time that a better solution is found
class ObjValueHandler: public CbcEventHandler {
public:
ObjValueHandler(double obj, double time, bool found)
: obj_(obj),
time_(time),
found_(found) {};
explicit ObjValueHandler(double obj)
: obj_(obj),
@gidden
gidden / gist:d5870979e3e2a6c546aa
Created August 3, 2014 19:14
boost link error on mavericks using cyclus conda install
Linking CXX executable ../bin/cyclus
Undefined symbols for architecture x86_64:
"boost::program_options::to_internal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > boost::program_options::to_internal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in cyclus.cc.o
"boost::program_options::invalid_option_value::invalid_option_value(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
void boost::program_op
@gidden
gidden / gist:5593ea61c91ac22c23ab
Created August 3, 2014 19:28
cmake output from bad cyclus build on mavericks
matthews-air:cyclus gidden$ ./install.py -j 4
/opt/local/bin/cmake
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
@gidden
gidden / gist:97c4c0e68a810a565620
Created August 4, 2014 13:05
coin cbc 2.8.7 mac osx 10.9.3 configure output
configure: creating cache config.cache
checking build system type... i386-apple-darwin13.2.0
checking whether we want to compile in debug mode... no
checking for xlc_r... no
checking for xlc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...