httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Kasichainula <man...@raleigh.ibm.com>
Subject Re: cvs commit: apache-1.3/src/main http_protocol.c
Date Mon, 10 Aug 1998 04:31:53 GMT
Something broke for me, probably with this change:

On Sun, Aug 09, 1998 at 04:52:32PM -0000, dgaudet@hyperreal.org wrote:
>    
>    static int read_request_line(request_rec *r)
>    {
>   -    char *l=alloca(r->server->limit_req_line + 2);
>   -    const char *ll = l, *uri;
>   +    char *l;
>   +    const char *ll;
>   +    const char *uri;
>        conn_rec *conn = r->connection;
>        int major = 1, minor = 0;   /* Assume HTTP/1.0 if non-"HTTP" protocol */
>        int len;
>   +    pool *tmp;
>    
>   +    tmp = ap_make_sub_pool(r->pool);
>   +    l = ap_palloc(tmp, r->server->limit_req_line + 2);

On my machine at work with two simple name virtual hosts:

Program received signal SIGSEGV, Segmentation fault.
0x805d313 in ap_bgets (buff=0x0, n=0, fb=0x8091efc) at buff.c:847
847             buff[ct++] = ch;
(gdb) bt          
#0  0x805d313 in ap_bgets (buff=0x0, n=0, fb=0x8091efc) at buff.c:847
#1  0x80671b3 in getline (s=0x0, n=0, in=0x8091efc, fold=0)
    at http_protocol.c:542
#2  0x806734e in read_request_line (r=0x809f054) at http_protocol.c:656
#3  0x8067aaf in ap_read_request (conn=0x809e01c) at http_protocol.c:934
#4  0x80658a7 in child_main (child_num_arg=0) at http_main.c:3695
#5  0x80659f3 in make_child (s=0x808a97c, slot=0, now=902722466)
    at http_main.c:3779
#6  0x8065af0 in startup_children (number_to_start=5) at http_main.c:3853
#7  0x8065fa3 in standalone_main (argc=2, argv=0xbffff98c) at http_main.c:4131
#8  0x80665c2 in main (argc=2, argv=0xbffff98c) at http_main.c:4404

Looks like l is getting set to NULL in read_request_line, but I have no idea
why. I'm working on it.

-- 
Manoj Kasichainula - manojk@raleigh.ibm.com
IBM Apache Development Team

Mime
View raw message