Skip to content

Instantly share code, notes, and snippets.

@drio
Created May 23, 2010 23:56
Show Gist options
  • Save drio/411370 to your computer and use it in GitHub Desktop.
Save drio/411370 to your computer and use it in GitHub Desktop.
warning: difference appears to be caused by prelink, adjusting expectations
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /usr/lib64/libz.so.1...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /usr/lib64/libbz2.so.1...done.
Loaded symbols for /usr/lib64/libbz2.so.1
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/stornext/snfs1/next-gen/drio-scratch/bfast_related/versions/production/bfast/b'.
Program terminated with signal 11, Segmentation fault.
[New process 29807]
[New process 29727]
#0 0x0000003f7e00c7ca in inflate_fast () from /usr/lib64/libz.so.1
(gdb) bt
#0 0x0000003f7e00c7ca in inflate_fast () from /usr/lib64/libz.so.1
#1 0x0000003f7e00a12e in inflate () from /usr/lib64/libz.so.1
#2 0x0000003f7e003834 in gzread () from /usr/lib64/libz.so.1
#3 0x0000000000408ab1 in gzread64 (file=0x162ae0e0, buf=0x305531d0, len=1196708948) at BLib.c:1710
#4 0x0000000000403c1a in AlignedEntryRead (a=0x3054a240, inputFP=0x162ae0e0, space=1) at AlignedEntry.c:122
#5 0x000000000040255f in AlignedEndRead (a=0x259ae9d0, inputFP=0x162ae0e0, space=1) at AlignedEnd.c:109
#6 0x000000000040494c in AlignedReadRead (a=0x2aaaaaaf8cf0, inputFP=0x162ae0e0) at AlignedRead.c:114
#7 0x0000000000427bdf in GetAlignedReads (fp=0x162ae0e0, aBuffer=<value optimized out>, maxToRead=10000, inputFP_mutex=0x7fffc3cd0df0) at RunPostProcess.c:375
#8 0x00000000004280f7 in ReadInputFilterAndOutputThread (arg=0x162b4c40) at RunPostProcess.c:262
#9 0x0000003f7dc06617 in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
#10 0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000003f7e00c7ca in inflate_fast () from /usr/lib64/libz.so.1
#1 0x0000003f7e00a12e in inflate () from /usr/lib64/libz.so.1
#2 0x0000003f7e003834 in gzread () from /usr/lib64/libz.so.1
#3 0x0000000000408ab1 in gzread64 (file=0x162ae0e0, buf=0x305531d0, len=1196708948) at BLib.c:1710
#4 0x0000000000403c1a in AlignedEntryRead (a=0x3054a240, inputFP=0x162ae0e0, space=1) at AlignedEntry.c:122
#5 0x000000000040255f in AlignedEndRead (a=0x259ae9d0, inputFP=0x162ae0e0, space=1) at AlignedEnd.c:109
#6 0x000000000040494c in AlignedReadRead (a=0x2aaaaaaf8cf0, inputFP=0x162ae0e0) at AlignedRead.c:114
#7 0x0000000000427bdf in GetAlignedReads (fp=0x162ae0e0, aBuffer=<value optimized out>, maxToRead=10000, inputFP_mutex=0x7fffc3cd0df0) at RunPostProcess.c:375
#8 0x00000000004280f7 in ReadInputFilterAndOutputThread (arg=0x162b4c40) at RunPostProcess.c:262
#9 0x0000003f7dc06617 in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
#10 0x0000000000000000 in ?? ()
(gdb) down
Bottom (innermost) frame selected; you cannot go down.
(gdb) up
#1 0x0000003f7e00a12e in inflate () from /usr/lib64/libz.so.1
(gdb) up
#2 0x0000003f7e003834 in gzread () from /usr/lib64/libz.so.1
(gdb) up
#3 0x0000000000408ab1 in gzread64 (file=0x162ae0e0, buf=0x305531d0, len=1196708948) at BLib.c:1710
1710 numBytesRead = gzread(file,
(gdb) list
1705 uint32_t numBytesRead = 0;
1706 uint32_t numBytesToRead = 0;
1707
1708 while(count < len) {
1709 numBytesToRead = GETMIN(INT_MAX, (len - count));
1710 numBytesRead = gzread(file,
1711 buf + count,
1712 numBytesToRead);
1713 if(numBytesRead != numBytesToRead) {
1714 return count;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment