Skip to content

Instantly share code, notes, and snippets.

@Keno
Keno / out.log
Created August 1, 2013 20:16
Python Valgrind
keno@keno-G73Jh:~/julia$ valgrind --track-origins=yes --suppressions=./valgrind-python.supp usr/bin/julia-debug-readline plt.jl | tee > out2.log
==17778== Memcheck, a memory error detector
==17778== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==17778== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==17778== Command: usr/bin/julia-debug-readline plt.jl
==17778==
==17778== Syscall param msync(start) points to uninitialised byte(s)
==17778== at 0x506B3DD: ??? (syscall-template.S:81)
==17778== by 0x5B93992: msync_validate (in /home/keno/julia/usr/lib/libjulia-debug.so)
==17778== by 0x5B93ABF: validate_mem (in /home/keno/julia/usr/lib/libjulia-debug.so)
fischer@julia:~/julia/test$ ~/usr/bin/valgrind --trace-children=yes --track-origins=yes ../usr/bin/julia-debug-readline runtests.jl all
==23504== Memcheck, a memory error detector
==23504== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==23504== Using Valgrind-3.9.0.SVN and LibVEX; rerun with -h for copyright info
==23504== Command: ../usr/bin/julia-debug-readline runtests.jl all
==23504==
==23835== Memcheck, a memory error detector
==23835== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==23835== Using Valgrind-3.9.0.SVN and LibVEX; rerun with -h for copyright info
==23835== Command: /home/kfischer/julia/usr/bin/./julia-debug-basic --bind-to 127.0.0.1 --worker
31-35-13:~ kfischer$ dr logs 2c2e4d789770
2013-09-02 22:00:24.215 [NotebookApp] Using existing profile dir: u'/.ipython/profile_julia'
2013-09-02 22:00:24.223 [NotebookApp] Using local MathJax from /.ipython/profile_julia/static/mathjax/MathJax.js
2013-09-02 22:00:24.234 [NotebookApp] CRITICAL | WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
2013-09-02 22:00:24.234 [NotebookApp] CRITICAL | WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
2013-09-02 22:00:24.235 [NotebookApp] Serving notebooks from local directory: /files
2013-09-02 22:00:24.235 [NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8998/
2013-09-02 22:00:24.235 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
2013-09-02 22:00:24.236 [NotebookApp] WARNING | No web browser found: could not locate runnabl
@Keno
Keno / gist:6600039
Created September 17, 2013 20:22
SIUnits.jl Sample usage (Solving problem from Griffiths QM chapter 5)
{
"metadata": {
"language": "Julia",
"name": "SIUnits Demo"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"language": "Julia",
"name": "PS2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@Keno
Keno / gist:6694572
Created September 25, 2013 02:46
Ipython EMFILE
"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py\", line 302, in wrapped\r\n","stream":"stdout","time":"2013-09-24T03:20:16.341633162Z"}{"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/netutil.py\", line 141, in accept_handler\r\n","stream":"stdout","time":"2013-09-24T03:20:16.341644702Z"}{"log":" File \"/usr/lib/python2.7/socket.py\", line 202, in accept\r\n","stream":"stdout","time":"2013-09-24T03:20:16.341653368Z"}{"log":"error: [Errno 24] Too many open files\r\n","stream":"stdout","time":"2013-09-24T03:20:16.341661965Z"}{"log":"ERROR:tornado.application:Exception in I/O handler for fd 4\r\n","stream":"stdout","time":"2013-09-24T03:20:16.341703966Z"}{"log":"Traceback (most recent call last):\r\n","stream":"stdout","time":"2013-09-24T03:20:16.34171708Z"}{"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py\", line 672, in start\r\n","stream":"stdout","time":"2013-09-24T03:20:16.341727509Z"}{"log":" File \"/usr/local/lib/python2.7/dist-packa
munmap(0x7f8746bb4000, 4096) = 0
read(15, "", 128227) = 0
read(15, "", 131072) = 0
close(15) = 0
brk(0x6f7c000) = 0x6f7c000
brk(0x6f9e000) = 0x6f9e000
socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 15
setsockopt(15, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(15, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(15, 511) = 0
{"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py\", line 672, in start\r\n","stream":"stdout","time":"2013-09-30T15:30:24.899030164Z"}{"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py\", line 331, in wrapped\r\n","stream":"stdout","time":"2013-09-30T15:30:24.899040054Z"}{"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py\", line 302, in wrapped\r\n","stream":"stdout","time":"2013-09-30T15:30:24.899049927Z"}{"log":" File \"/usr/local/lib/python2.7/dist-packages/tornado/netutil.py\", line 141, in accept_handler\r\n","stream":"stdout","time":"2013-09-30T15:30:24.899090152Z"}{"log":" File \"/usr/lib/python2.7/socket.py\", line 202, in accept\r\n","stream":"stdout","time":"2013-09-30T15:30:24.899100936Z"}{"log":"error: [Errno 24] Too many open files\r\n","stream":"stdout","time":"2013-09-30T15:30:24.899110588Z"}{"log":"2013-09-30 15:30:24.899 [tornado.application] ERROR | Exception in I/O handler for fd 4\r\n","stream":"stdout",
kfischer@julia:~/julia/base$ valgrind --track-origins=yes ../usr/bin/julia-debug-readline sysimg.jl
==6426== Memcheck, a memory error detector
==6426== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==6426== Using Valgrind-3.9.0.SVN and LibVEX; rerun with -h for copyright info
==6426== Command: ../usr/bin/julia-debug-readline sysimg.jl
==6426==
xWarning: replacing module Base
exports.jl
base.jl
reflection.jl
{
"metadata": {
"language": "Julia",
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [