incubator-mod_ftp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Progress of migration to current APR API?
Date Thu, 14 Dec 2006 15:22:05 GMT

On Dec 14, 2006, at 10:19 AM, Jim Jagielski wrote:

>
> On Dec 14, 2006, at 9:21 AM, Jim Jagielski wrote:
>
>>
>> Thread 0 Crashed:
>> 0   libapr-1.0.dylib    0x007850fc apr_socket_bind + 28 (sockets.c: 
>> 154)
>> 1   mod_ftp.so          0x0112c75c ftp_cmd_port + 748  
>> (ftp_commands.c:1633)
>> 2   mod_ftp.so          0x01129e10 ftp_run_handler + 240  
>> (ftp_commands.c:148)
>> 3   mod_ftp.so          0x01129fbc ftp_run_cmd + 268  
>> (ftp_commands.c:232)
>> 4   mod_ftp.so          0x01133498 ftp_process_request + 152  
>> (ftp_request.c:56)
>> 5   mod_ftp.so          0x0112eba8 ftp_process_connection + 968  
>> (ftp_connection.c:258)
>> 6   httpd               0x0001f504 ap_run_process_connection + 100  
>> (connection.c:43)
>> 7   httpd               0x00081e4c child_main + 1276 (prefork.c:641)
>> 8   httpd               0x00082010 make_child + 320 (prefork.c:739)
>> 9   httpd               0x000820b4 startup_children + 116  
>> (prefork.c:754)
>> 10  httpd               0x00082608 ap_mpm_run + 1272 (prefork.c:975)
>> 11  httpd               0x0000386c main + 3324 (main.c:717)
>> 12  httpd               0x000023dc _start + 760
>> 13  httpd               0x000020e0 start + 48
>>
>
> Here's why... still tracking down (these are the calls in  
> ftp_cmd_port):
>
> [Thu Dec 14 10:16:11 2006] [error] apr_sockaddr_addr_get:  
> sa=18fc2a8, s=18fc268
> [Thu Dec 14 10:16:11 2006] [error] (22)Invalid argument:  
> apr_sockaddr_info_get: sa=0, s=18fc268
> [Thu Dec 14 10:16:11 2006] [error] apr_socket_opt_set: sa=0, s=18fc268
>

     rv = apr_socket_addr_get(&sa, APR_LOCAL, s);
     ap_log_error(APLOG_MARK, APLOG_ERR, rv, c->base_server,
         "apr_sockaddr_addr_get: sa=%x, s=%x", (unsigned int) sa,  
(unsigned int)s );

     if (fsc->active_min != -1) {
         short port_num = fsc->active_min +
                    ((int) (rand() % (fsc->active_max - fsc- 
 >active_min + 1)));
         sa->port = port_num;
     }
     else {
         sa->port = 0;
     }

     rv = apr_sockaddr_info_get(&sa, c->local_ip, sa->family,
                           sa->port, APR_IPV4_ADDR_OK, r->pool);
     ap_log_error(APLOG_MARK, APLOG_ERR, rv, c->base_server,
         "apr_sockaddr_info_get: sa=%x, s=%x", (unsigned int) sa,  
(unsigned int)s );
     rv = apr_socket_opt_set(s, APR_SO_REUSEADDR, 1);
     ap_log_error(APLOG_MARK, APLOG_ERR, rv, c->base_server,
         "apr_socket_opt_set: sa=%x, s=%x", (unsigned int) sa,  
(unsigned int)s );

     rv = apr_socket_bind(s, sa);


Mime
View raw message