Skip to content

Instantly share code, notes, and snippets.

View neirbowj's full-sized avatar

John W. O'Brien neirbowj

  • Philadelphia, PA
View GitHub Profile
@neirbowj
neirbowj / gist:b1720c42a9908feedf7c
Created November 23, 2015 00:11
pandas 0.17.1 segfault in json.encode backtrace
% gdb /usr/local/bin/python3.4 python3.4.core GNU gdb 6.1.1 [FreeBSD]
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 "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `python3.4'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
#!/usr/bin/env python
def leftmost(bits):
"""
Generate 2-tuples in (ordinal, value) sequence according to the
order of the "leftmost" scheme specifed in
https://tools.ietf.org/html/rfc3531#section-3.1
for all numbers representable by `bits` bits.