Skip to content

Instantly share code, notes, and snippets.

@Berdir
Created April 9, 2015 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Berdir/c9f4876f8f4fbd17b2cd to your computer and use it in GitHub Desktop.
Save Berdir/c9f4876f8f4fbd17b2cd to your computer and use it in GitHub Desktop.
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 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.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Reading symbols from /usr/sbin/apache2...(no debugging symbols found)...done.
[New LWP 12869]
warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libtasn1.so.6" is not at the expected address (wrong library or version mismatch?)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f60cf280cdf in _pcre_jit_compile (re=0x1, extra=0x0, mode=696) at /home/berdir/tools/php-src/ext/pcre/pcrelib/pcre_jit_compile.c:10144
10144 CMPTO(SLJIT_C_LESS, STR_PTR, 0, STR_END, 0, common->ff_newline_shortcut);
(gdb) bt full
#0 0x00007f60cf280cdf in _pcre_jit_compile (re=0x1, extra=0x0, mode=696) at /home/berdir/tools/php-src/ext/pcre/pcrelib/pcre_jit_compile.c:10144
rootbacktrack = {prev = 0x0, nextbacktracks = 0x0, top = 0x7f60d59247b8, topbacktracks = 0x0, cc = 0x7f60d5923510 "\203"}
common_data = {compiler = 0x7f60d59236e0, start = 0x7f60d5923510 "\203", private_data_ptrs = 0x7f60d591fcf0, read_only_data = 0x0, read_only_data_size = 0,
read_only_data_ptr = 0x0, optimized_cbracket = 0x7f60d58b2d40 "", then_offsets = 0x0, then_trap = 0x0, cbra_ptr = 64, ovector_start = 48, req_char_ptr = 0,
recursive_head_ptr = 0, start_used_ptr = 0, hit_start = 0, first_line_end = 0, mark_ptr = 0, control_head_ptr = 0, capture_last_ptr = 0, start_ptr = 48,
fcc = 0x7f60cf663c80 "in favor of 'peer_name'", lcc = 140053773171584, mode = 0, might_be_empty = 0, has_set_som = 0, has_skip_arg = 0, has_then = 0, needs_start_ptr = 0,
local_exit = 0, positive_assert = 0, nltype = 0, nlmax = 2147483647, nlmin = 0, newline = 10, bsr_nltype = 1, bsr_nlmax = 2147483647, bsr_nlmin = 0, endonly = 0,
ctypes = 140053773172416, name_table = 0x7f60d5923510 "\203", name_count = 0, name_entry_size = 0, partialmatchlabel = 0x0, quit_label = 0x7f60d5924a70,
forced_quit_label = 0x7f60d5924a70, accept_label = 0x7f60d59249e8, ff_newline_shortcut = 0x0, stubs = 0x0, label_addrs = 0x0, entries = 0x0, currententry = 0x0,
partialmatch = 0x0, quit = 0x0, positive_assert_quit = 0x0, forced_quit = 0x0, accept = 0x0, calllimit = 0x0, stackalloc = 0x0, revertframes = 0x0, wordboundary = 0x0,
anynewline = 0x0, hspace = 0x0, vspace = 0x0, casefulcmp = 0x0, caselesscmp = 0x0, reset_match = 0x0, jscript_compat = 0, utf = 0, use_ucp = 0, utfreadchar = 0x0,
utfreadchar16 = 0x0, utfreadtype8 = 0x0, getucd = 0x0}
tables = 0x2b8 <error: Cannot access memory at address 0x2b8>
ccend = 0x7f60cfe2efd8 <php_pcre_free> "\240\r\335\322`\177"
functions = 0x2b8
label_addr = 0x4801e88348104113
empty_match_backtrack_label = 0x278
reset_match_label = 0x7f60bcf0d510
quit_label = 0x278
minlength_check_failed = 0x480267e40502154b
#1 0x00007f60cf25a5b5 in _pcre_valid_utf (string=0x1 <error: Cannot access memory at address 0x1>, length=<optimized out>, erroroffset=0x2b8)
at /home/berdir/tools/php-src/ext/pcre/pcrelib/pcre_valid_utf8.c:230
ab = 19 '\023'
c = 192 '\300'
d = 0 '\000'
p = 0x7f60d5923763 ""
#2 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) list 10144
10139 if ((re->options & PCRE_ANCHORED) == 0)
10140 {
10141 if (common->ff_newline_shortcut != NULL)
10142 {
10143 if ((re->options & PCRE_FIRSTLINE) == 0)
10144 CMPTO(SLJIT_C_LESS, STR_PTR, 0, STR_END, 0, common->ff_newline_shortcut);
10145 /* There cannot be more newlines here. */
10146 }
10147 else
10148 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment