Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created April 8, 2015 13:56
Show Gist options
  • Save ncopa/c5647401353e2e61f239 to your computer and use it in GitHub Desktop.
Save ncopa/c5647401353e2e61f239 to your computer and use it in GitHub Desktop.
Program terminated with signal 4, Illegal instruction.
#0 memcpy (n=4392, src=0x284c6799ec8, dest=0x284c6798ff0)
at /usr/include/fortify/string.h:32
32 __builtin_trap();
(gdb) bt
#0 memcpy (n=4392, src=0x284c6799ec8, dest=0x284c6798ff0)
at /usr/include/fortify/string.h:32
#1 is_bs_read (stream=0x284c6798fc0, token=...) at src/io.c:227
#2 0x00000284c2cb5fda in apk_db_index_read (db=0x786de4b300a0,
bs=bs@entry=0x284c6798fc0, repo=1) at src/database.c:754
#3 0x00000284c2cb66ac in load_apkindex (sctx=sctx@entry=0x786de4b2e950,
fi=fi@entry=0x786de4b2e680, is=is@entry=0x786de4b2e620)
at src/database.c:2054
#4 0x00000284c2cbbb99 in apk_tar_parse (is=is@entry=0x284c6534c60,
parser=parser@entry=0x284c2cb65f0 <load_apkindex>,
ctx=ctx@entry=0x786de4b2e950, soft_checksums=soft_checksums@entry=0,
idc=idc@entry=0x786de4b30980) at src/archive.c:289
#5 0x00000284c2cb654e in load_index (db=db@entry=0x786de4b300a0,
bs=<optimized out>, targz=targz@entry=1, repo=repo@entry=1)
at src/database.c:2078
#6 0x00000284c2cb69de in load_index (repo=1, targz=1, bs=<optimized out>,
db=0x786de4b300a0) at src/apk_defines.h:39
#7 apk_db_add_repository (_db=..., _repository=...) at src/database.c:2162
#8 0x00000284c2cbf6f7 in apk_blob_for_each_segment (blob=...,
split=split@entry=0x284c2cd0e2d "\n",
cb=cb@entry=0x284c2cb6710 <apk_db_add_repository>,
ctx=ctx@entry=0x786de4b300a0) at src/blob.c:242
#9 0x00000284c2cb32eb in add_repos_from_file (ctx=0x786de4b300a0,
dirfd=<optimized out>, file=0x284c2ccef98 "etc/apk/repositories")
at src/database.c:1410
#10 0x00000284c2cb7e3c in apk_db_open (db=db@entry=0x786de4b300a0,
dbopts=dbopts@entry=0x786de4b30060) at src/database.c:1609
#11 0x00000284c2cac6b3 in main (argc=0, argv=0x786de4b30bc8) at src/apk.c:513
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment