Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC9C211013 for ; Thu, 24 Jul 2014 12:13:57 +0000 (UTC) Received: (qmail 15025 invoked by uid 500); 24 Jul 2014 12:13:57 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 14980 invoked by uid 500); 24 Jul 2014 12:13:57 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 14966 invoked by uid 99); 24 Jul 2014 12:13:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 12:13:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmarantz@google.com designates 209.85.218.43 as permitted sender) Received: from [209.85.218.43] (HELO mail-oi0-f43.google.com) (209.85.218.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 12:13:52 +0000 Received: by mail-oi0-f43.google.com with SMTP id u20so1977722oif.30 for ; Thu, 24 Jul 2014 05:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Bzsizutf2Tnrj9EtDTEUWjKTl+7tpN0AQnOlYbKeWMk=; b=bo10B/TRoMJZU/vxpH2LIC6IYx5Kc4h0LDDxsb4otLJJnHUDqoXeTVwMc97BRYEk0V tmR0bLLclsO/OLBuGVjAuF2CIYHG3TB1MzTMMwWqUOKXC1JhK3ScYM2/CwR687Kl7vlu sPOItNmOT9hILYXMmRjmxcIUZ8jaQTi7VpOzNsVh7lXItsJM2xrt/OE73URf5avVuw0f MXcT3/gb7VUBeUcHdZJl2Zyw2ooS2XZS9NJuIpkiSSSviUFqBiAWVl9L8lInbIY9E6AD Ovl0yhDlq0ITTPLTjX/zy3Ol4ZtXMrTHGseSt4xeQWp7XdlhZ6fttHqEP+SY9Cg2H8zD Yr3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=Bzsizutf2Tnrj9EtDTEUWjKTl+7tpN0AQnOlYbKeWMk=; b=jA4b1hULqVyKNEBGLYqOssobrfxbqR+TpHU/4zVrb9GMGQCxsUwpQAf+a1cqap54je ShEg4iWAu8fibwJ6QEFgo6qG981IVSpYclEDAJx0fOwTs2y5eGt9hd/QfE8alhGbV7E8 VC9l4IufqW0vr/DLKoBLdp60m2GuaE8RNR03wyTwRe5vdF4j0T1fqFBEzYAkWqNPgZAT NglDOMZYu+TXGjJG3+jFoX4UzUYsqYAKFi4piFb/qyUvNhgYnS+P9cd5M/JcAO7XF5UC SfcNkC9xW1HZyNkur3iwsUCAqT/EE00LfJAp6NtxFjoi+RuD/GTa8SmCsy2rKUxolAZe oE3A== X-Gm-Message-State: ALoCoQkItui4KVpbNwJZ3vZRhqZNxiU8BT2ERICHwECbMiKG0Ale8CiOCFpX3srFj9cyAymHFABo X-Received: by 10.60.70.205 with SMTP id o13mr12462133oeu.38.1406204012016; Thu, 24 Jul 2014 05:13:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.79.132 with HTTP; Thu, 24 Jul 2014 05:13:11 -0700 (PDT) In-Reply-To: References: From: Joshua Marantz Date: Thu, 24 Jul 2014 08:13:11 -0400 Message-ID: Subject: Re: sequence of request To: "modules-dev@httpd.apache.org" Content-Type: multipart/alternative; boundary=001a11333df69e517904feef62b5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11333df69e517904feef62b5 Content-Type: text/plain; charset=UTF-8 Yes, in particular, the gdb feature that can help determine who is changing r->filename is hardware watchpoints: http://sourceware.org/gdb/onlinedocs/gdb/Set-Watchpoints.html 1. Set a breakpoint at a line of code where you believe r->filename is correct 2. Start up Apache with "run -X" 3. Issue a request to the server to hit the line of code where r->filename is set. 4. Set up a hardware watchpoint with (gdb) p &r->filename $1 = (char**) 0x.... (gdb) watch *$1 Hardware Watchpoint 2 Depending on what you've done in the debugger beforehand, the "$1" may be something like $3 or $4. In that case use watch *$3, etc. -Josh On Thu, Jul 24, 2014 at 6:54 AM, Eric Covener wrote: > On Thu, Jul 24, 2014 at 12:51 AM, Donatas Abraitis > wrote: > > Hello guys, > > > > is it possible to know the sequence of request is handled? I mean which > > module takes precedence? Because I need to debug why r->filename becomes > > not so as I expected. > > mod_info shows you the order the loaded modules will run in for > various phases. A debugger can also tell you when it changes. > > -- > Eric Covener > covener@gmail.com > --001a11333df69e517904feef62b5--