Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created March 14, 2013 09:43
Show Gist options
  • Save kaworu/5160083 to your computer and use it in GitHub Desktop.
Save kaworu/5160083 to your computer and use it in GitHub Desktop.
pkgng 1.0.9 `update -f' segfault backtrace and infos
% sudo gdb ./pkg-static/pkg-static
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"...
(gdb) run update -f
Starting program: /usr/home/alex/code/pkgng/pkg-static/pkg-static update -f
Updating repository catalogue
repo.txz 100% 4700 4.6KB/s 4.6KB/s 00:00
Program received signal SIGSEGV, Segmentation fault.
0x0000000000659567 in strlen ()
(gdb) bt
#0 0x0000000000659567 in strlen ()
#1 0x000000000060b40d in strdup ()
#2 0x0000000000414860 in get_sql_string (s=Unhandled dwarf expression opcode 0x0
) at /usr/home/alex/code/pkgng/libpkg/pkgdb.c:2417
#3 0x000000000040bb83 in pkg_update (name=Variable "name" is not available.
) at /usr/home/alex/code/pkgng/libpkg/update.c:243
#4 0x0000000000407791 in pkgcli_update (force=Variable "force" is not available.
) at update.c:73
#5 0x00000000004079b9 in exec_update (argc=Unhandled dwarf expression opcode 0x0
) at update.c:144
#6 0x00000000004044f3 in main (argc=Variable "argc" is not available.
) at main.c:328
% uname -a
FreeBSD Freesbee 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
% ./pkg-static/pkg-static -v
1.0.9 425922199aaeb038a1c38fa49fa8e7e0decbaf69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment