Skip to content

Instantly share code, notes, and snippets.

@ackalker
ackalker / gist:4141041
Created November 24, 2012 19:07
examples/fs-watchfile.lua: Assertion `lhandle->refCount' failed.
$ ulimit -c unlimited
$ out/Debug/luvit examples/fs-watchfile.lua
{ handlers = { change = table: 0x407a3a40 }, userdata = userdata: 0x407a38c8 }
luvit: ../src/utils.c:268: luv_handle_get_lua: Assertion `lhandle->refCount' failed.
Afgebroken (geheugendump gemaakt)
[$?=134]$ gdb out/Debug/luvit core
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
Script started on 2019-05-22 00:40:26+02:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/12" COLUMNS="95" LINES="26"]
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
Script started on 2019-05-22 00:41:26+02:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/12" COLUMNS="95" LINES="26"]
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
3793: find library=libdl.so.2 [0]; searching
3793: search cache=/etc/ld.so.cache
3793: trying file=/usr/lib/libdl.so.2
3793:
3793: find library=libc.so.6 [0]; searching
3793: search cache=/etc/ld.so.cache
3793: trying file=/usr/lib/libc.so.6
3793:
3793:
3793: calling init: /usr/lib/libc.so.6
ninja: Entering directory `build'
[1/46] Generating git_sha1.h with a custom command.
[1/2] Installing files.
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/i915_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/i965_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/radeon_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/r200_dri.so
installing /builddir/mesa-19.1.1/build/src/mesa/drivers/dri/libmesa_dri_drivers.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/nouveau_vieux_dri.so
installing /builddir/mesa-19.1.1/build/src/gallium/targets/dri/libgallium_dri.so to /destdir//libGL-19.1.1/usr/lib/xorg/modules/drivers/radeonsi_dri.so
i
Script started on 2022-01-29 16:37:00+01:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/6" COLUMNS="159" LINES="43"]
[?2004h[miki@miki-desktop ~]
$ ]0;~set -u
[?2004l [?2004h[miki@miki-desktop ~]
$ ]0;~pyenv virtualenv system testenv
[?2004l Looking in links: /tmp/tmp6nq443fa
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[?2004h[miki@miki-desktop ~]
$ ]0;~pyenv activate testenv
Script started on 2022-01-29 16:44:31+01:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/6" COLUMNS="159" LINES="43"]
[?2004h[miki@miki-desktop ~]
$ ]0;~set -u
[?2004l [?2004h[miki@miki-desktop ~]
$ ]0;~pyenv virtualenv system testenv
[?2004l Looking in links: /tmp/tmp5kvqd04i
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[?2004h[miki@miki-desktop ~]
$ ]0;~PYENV_DEBUG=1 pyenv activate testenv
$ set -u
[miki@miki-desktop ~]
$ pyenv virtualenv system testenv
Looking in links: /tmp/tmp6nq443fa
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[miki@miki-desktop ~]
$ pyenv activate testenv
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
bash: _OLD_VIRTUAL_PATH: unbound variable
[miki@miki-desktop ~]
$ set -u
[miki@miki-desktop ~]
$ pyenv virtualenv system testenv
Looking in links: /tmp/tmp5kvqd04i
Requirement already satisfied: setuptools in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in /home/miki/.pyenv/versions/testenv/lib/python3.10/site-packages (21.2.4)
[miki@miki-desktop ~]
$ PYENV_DEBUG=1 pyenv activate testenv
+(/home/miki/.pyenv/bin/pyenv:23): enable -f /home/miki/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath
@ackalker
ackalker / test-pyenv-set-u-PS4.log
Created January 30, 2022 16:15
pyenv activate <env> fails due to unbound variable when set -u is in effect
+(./test-pyenv-set-u.bash:16): pyenv virtualenv system testenv
+(./test-pyenv-set-u.bash:9): pyenv(): local command
+(./test-pyenv-set-u.bash:10): pyenv(): command=virtualenv
+(./test-pyenv-set-u.bash:11): pyenv(): '[' 3 -gt 0 ']'
+(./test-pyenv-set-u.bash:12): pyenv(): shift
+(./test-pyenv-set-u.bash:15): pyenv(): case "$command" in
+(./test-pyenv-set-u.bash:20): pyenv(): command pyenv virtualenv system testenv
pyenv-virtualenv: `/home/miki/.pyenv/versions/testenv' already exists.
+(./test-pyenv-set-u.bash:17): echo created
created