address@hidden root]# gdb grep core.4113 GNU gdb Red Hat Linux (6.1post-1.20040607.62rh) 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `grep -P \w\s'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libpcre.so.0...Reading symbols from /usr/lib/debug/lib/libpcre.so.0.0.1.debug...done. done. Loaded symbols for /lib/libpcre.so.0 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 pcre_exec (external_re=0x860fcc0, extra_data=0x0, subject=0x1 "", length=140578817, start_offset=0, options=0, offsets=0xbff8cd30, offsetcount=300) at ./pcre.c:8169 8169 register int c = *start_match; (gdb) bt #0 pcre_exec (external_re=0x860fcc0, extra_data=0x0, subject=0x1 "", length=140578817, start_offset=0, options=0, offsets=0xbff8cd30, offsetcount=300) at ./pcre.c:8169 #1 0x080552a5 in Pexecute (buf=0x1 "", size=140578817, mb_cache=0xbff8d290, match_size=0xffffffff, exact=0) at search.c:776 #2 0x0804a850 in grepbuf (beg=0xffffffff
, lim=0x8611002 "", mb_cache=0xbff8d290) at grep.c:752 #3 0x0804b50f in grepfile (file=0x0, stats=0x805a480) at grep.c:845 #4 0x0804c7cd in main (argc=3, argv=0xbff8d424) at grep.c:1793 #5 0x00774e33 in __libc_start_main () from /lib/tls/libc.so.6 #6 0x08049981 in _start () (gdb) bt full #0 pcre_exec (external_re=0x860fcc0, extra_data=0x0, subject=0x1 "", length=140578817, start_offset=0, options=0, offsets=0xbff8cd30, offsetcount=300) at ./pcre.c:8169 c = 140573957 rc = 140573957 resetcount = 2 ocount = 0 first_byte = -1 req_byte = -1 req_byte2 = -1 ims = 2 using_temporary_offsets = 0 anchored = 0 startline = 0 first_byte_caseless = 0 req_byte_caseless = 0 match_block = {match_call_count = 2, match_limit = 10000000, offset_vector = 0xbff8cd30, offset_end = 300, offset_max = 200, lcc = 0x860f878 "", ctypes = 0x860fbb8 "\200", offset_overflow = 0, notbol = 0, noteol = 0, utf8 = 0, endonly = 0, notempty = 0, start_code = 0x860fcdc "L", start_subject = 0x1 "", end_subject = 0x8611002 "", start_match = 0x8611000 "a\n", end_match_ptr = 0x8611002 "", end_offset_top = 2, capture_last = -1, start_offset = 0, recursive = 0x0, callout_data = 0x0, thisframe = 0x8611000} start_bits = (const uschar *) 0x860fd05 "" start_match = (const uschar *) 0x1 "" req_byte_ptr = (const uschar *) 0x0 study = (const pcre_study_data *) 0x860fd00 #1 0x080552a5 in Pexecute (buf=0x1 "", size=140578817, mb_cache=0xbff8d290, match_size=0xffffffff, exact=0) at search.c:776 sub = {-1, -1, 140575589, 140575598, 140575615, 140575622, 140575639, 140575645, 140575662, 140575669, 140575686, 140575695, 140575712, 140575722, 140575739, 140575749, 8939520, 813, 8486227, 8933364, 8116093, 8131012, -1210122240, 4096, -1074213456, 8111358, 140574056, -1210122240, 4096, 8933364, 140574056, -1210119712, -1074213440, 140577272, 140574056, 140574056, -1074213416, 8120461, 140574056, 72, 8118183, 0, -1074213372, 8118183, 140574056, -1210119745, 33, 0, 8894952, 808, 140574408, 0, -1074213352, 8122339, 140574056, 8933364, 8939520, 140574056, -1074213324, 8133322, 8939520, 140574056, 7904215, 0, -1, -1074213292, 8069914, 140574056, 0, 0, 8933364, 45, 8, -1074212736, 7882928, 140574416, 45, 8, 7883424, 8133428, 1920169263, 1634235183, 1815045490, 1818321775, 1869360997, 1701601635, 1768710446, ---Type to continue, or q to quit--- -16747679, 8939544, 8131012, 109, 8939576, 8939520, 64, 8939520, -1074213108, 8887907, 8939576, -40, -1074213148, 2048, -40, 8133428, 17, -1074213148, -40, 1, 45, 140574056, 8939608, 8939520, 538976288, 8131012, 256, 8939576, 8939520, 72, 8939520, 48, 8887907, 8939576, 1650680425, 539453301, 8933364, 8939520, 8133428, -1074213052, 8133322, 8939520, 140577336, 8933364, 140574344, 140577336, 8939520, 7884161, 8131012, 256, 4, 8939520, 8894988, 7, 48, 8887907, 8939576, 0, 7705688, 8933364, 8939520, 140577336, -1074212960, 8133322, 8939520, 8485779, 8485842, 7877599, 140574296, 0, 7884161, 140577336, 140577336, 58, 0, 8894988, 5, 48, 140572760, 0, -1074212528, 1, 8933364, 8939520, 7683555, 134515678, 7724140, 7720916, -1208016864, 0, -1074212796, 7664819, 7801358, 134516626, 8131012, 32, 0, 0, 7801552, 7780792, 7746360, 7724208, 4, 7724932, -1208016864, 114071906, 134516073, 7720916, 7722660, 134516073, -1074212584, 7665362, 134513888...} e = -1 #2 0x0804a850 in grepbuf (beg=0xffffffff
, lim=0x8611002 "", mb_cache=0xbff8d290) at grep.c:752 nlines = 1 n = 0 p = 0x1 "" match_offset = 4294967295 match_size = 4154388481 #3 0x0804b50f in grepfile (file=0x0, stats=0x805a480) at grep.c:845 e = 140578818 desc = 0 status = 140578816 #4 0x0804c7cd in main (argc=3, argv=0xbff8d424) at grep.c:1793 file = 0xffffffff
keys = 0xbffc6b4a "\\w\\s" keycc = 4 oldcc = 3220990799 keyalloc = 4294967295 with_filenames = 0 cc = -1 status = -1 default_context = 0 fp = (FILE *) 0xffffffff #5 0x00774e33 in __libc_start_main () from /lib/tls/libc.so.6 No symbol table info available. #6 0x08049981 in _start () No symbol table info available. (gdb)