Skip to content

Instantly share code, notes, and snippets.

#0 0x00007fff820c5bc4 in malloc_error_break ()
#1 0x00007fff820bf5c7 in szone_error ()
#2 0x00007fff820b8f85 in allocate_pages ()
#3 0x00007fff820bee78 in large_malloc ()
#4 0x00007fff820c43a2 in szone_malloc_should_clear ()
#5 0x00007fff820c6b61 in malloc_zone_calloc ()
#6 0x00007fff820c72ca in calloc ()
#7 0x00000001000dfe6f in texture_atlas_new (width=16777216, height=16777216, depth=1) at ../src/freetype-gl/texture-atlas.c:72
#8 0x00000001000e6a9e in fea::TextSurface::addText (this=0x101151898, text=@0x101151c80) at ../src/rendering/textsurface.cpp:259
#9 0x00000001000e9790 in fea::TextSurface::rewrite (this=0x101151898) at ../src/rendering/textsurface.cpp:214
(gdb) frame 47
#47 0x000000010000a02c in FeatureButton (this=0x101151730, pos=<value temporarily unavailable, due to optimizations>, size={{y = 200, g = 200, t = 200}, {y = 50, g = 50, t = 50}}, title=<value temporarily unavailable, due to optimizations>, content={<std::__1::__basic_string_common<true>> = {<No data fields>}, __r_ = {<std::__1::__libcpp_compressed_pair_imp<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__rep, std::__1::allocator<char>, 2>> = {<std::__1::allocator<char>> = {<No data fields>}, __first_ = {{__l = {__cap_ = 7233189360142868760, __size_ = 439720637286, __data_ = 0x7fff5fbfdfa8 ""}, __s = {{__size_ = 24 '\030', __lx = 24 '\030'}, __data_ = "asdfsadfsdaf\000\000\000?߿_?\000"}, __r = {__words = {7233189360142868760, 439720637286, 140734799798184}}}}}, <No data fields>}, static npos = <optimized out>}, type=B_INTERACTIVE) at type_vec2.hpp:28
98
(gdb) print content
$4 = {
<std::__1::__basic_string_common<true>> = {<No data fields>},
members
#include <string>
#include <SDL.h>
#include <SDL_image.h>
SDL_Texture * load_image(SDL_Renderer* renderer, std::string path) {
SDL_Texture * result;
SDL_Surface * surf = IMG_Load(path.c_str());
if (!surf) {
public static Stream<Coordinate> all() {
return IntStream.range(0, WIDTH*HEIGHT).mapToObj(i -> new Coordinate(i%WIDTH, i/WIDTH));
}
@lheckemann
lheckemann / 0-runserver.sh
Last active December 29, 2016 23:08
PXE boot
nix-build && sudo dnsmasq -c result/dnsmasq.conf

Keybase proof

I hereby claim:

  • I am lheckemann on github.
  • I am lheckemann (https://keybase.io/lheckemann) on keybase.
  • I have a public key ASADJy4CW5JCH4AuvaedUvNcjLr1ebtlsc3IfARIWa0UUAo

To claim this, I am signing this object:

@lheckemann
lheckemann / st-cursor-style.patch
Created January 20, 2017 17:01 — forked from anonymous/st-cursor-style.patch
Patch for suckless terminal, adding cursor style set to terminfo entry
diff -r st-0.7/Makefile /home/linus/st-0.7/Makefile
52c52
< @tic -s st.info
---
> @tic -x -s st.info
diff -r st-0.7/st.info /home/linus/st-0.7/st.info
188a189
> Ss=\E[%p1%d\sq,
-- Logs begin at Sat 2016-11-19 08:17:53 GMT, end at Tue 2017-02-21 16:33:49 GMT. --
Feb 21 15:03:53 computer xsession[31168]: 29310
Feb 21 15:03:55 computer xsession[31168]: 29310
Feb 21 15:03:59 computer kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
Feb 21 15:03:59 computer kernel: IP: [<ffffffffc07fd074>] drm_atomic_get_crtc_state+0xa4/0x100 [drm]
Feb 21 15:03:59 computer kernel: PGD 43d9fc067 PUD 2dbec9067 PMD 0
Feb 21 15:03:59 computer kernel: Oops: 0002 [#1] SMP
Feb 21 15:03:59 computer kernel: Modules linked in: b43 facetimehd(O) snd_seq_dummy snd_seq snd_seq_device hid_sony ctr ccm af_packet nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6t_rpfilter ipt_rpfilter ip6table_raw iptable_raw xt_pkttype nf_log_ipv6 nf_log_ipv4 nf_log_common xt_LOG ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_filter ip6_tables iptable_filter msr mac80211 amdkfd amd_iommu_v2 radeon i915 cfg80211 ssb rng_core joydev ttm drm_kms_he
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>none</const>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
{
example = {
deployment.targetEnv = "libvirtd";
deployment.libvirtd.headless = true;
};
}