W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1998

Re: Segfault in w3c with PUT

From: Matthew P. Bohnsack <bohnsack@eai.com>
Date: Fri, 31 Jul 1998 10:39:45 -0500
Message-Id: <199807311536.KAA03523@goliath.eai.com>
To: www-lib@w3.org
the latest CVS version is working much better
2MB, 5MB, 10MB, 20MB, no problem!  This is probably
good enough for my application, however at 30MB, I get 


geronimo:/usr/src/libwww/ComLine/src# ./w3c -put test_data -dest
http://merced/lala
Looking up merced
Contacting merced
Writing...
Reading...
Writing...
HTBufWrt.c:146 failed allocation for "HTBufferWriter_addBuffer" (30735915
bytes).
Program aborted.
Abort

I am using a Perl PUT handler with apache 1.2.6 on IRIX 5.3 on 
the server side.  I've successfuly PUT 50MB to the PUT handler 
with a win32 client created with MFC libs 


Here is -vsop if it helps 
./w3c -vsop -put test_data -dest http://merced/lala

Host........ Setting event timeout to 10000 ms         
Net After... Add 0x40020720 with order 0 tmplate `<null>' code 1 context
0x8051438
ChunkStream. Chunk 0x80514b0 created with max size 0
HTAccess.... Accessing document file:/usr/src/libwww/ComLine/src/test_date
Net Before.. calling 0x4005e720 (request 0x804bfc0, context (nil))
Net Before.. calling 0x4005e650 (request 0x804bfc0, context (nil))
Net Object.. 0x8051528 created with hash 0
Net Object.. starting request 0x804bfc0 (retry=1) with net object 0x8051528
HTLoadFile.. Looking for `file:/usr/src/libwww/ComLine/src/test_date'
Node........ `file:/usr/src/libwww/ComLine/src/test_date' means path
`/usr/src/libwww/ComLine/src/test_date'
Event....... Created event 0x8051f48 with context 0x80520c0, priority 20,
and timeout 10000
Event....... Created event 0x8051f60 with context 0x80520c0, priority 20,
and timeout 10000
Event....... Created event 0x8052168 with context 0x80520c0, priority 20,
and timeout 10000
Host info... added `localhost' with host 0x80520c0 to list 0x80514e8
Host info... Add Net 0x8051528 (request 0x804bfc0) to pipe, 1 requests
made, 1 requests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
Load File... Found `/usr/src/libwww/ComLine/src/test_date'
File mode is 0100664, uid=0, gid=0. My uid=0, 4 groups ( 0 101 110 200)
HTFileOpen.. `/usr/src/libwww/ComLine/src/test_date' opened using
NON-blocking socket

Channel..... Hash value is 3                    
Channel..... Added 0x8052310 to list 0x80514f8
Reader...... Created reader stream 0x8052340
StreamStack. Constructing stream stack for www/unknown to */*
Response.... Created 0x805a498               
Error....... Add   2    Severity: 8     Parameter: `Unspecified'
Where: `HTLoadFile'
HTLoadFile.. Returning                         
Host Event.. READ passed to `/usr/src/libwww/ComLine/src/test_date'
Read Socket. 32768 bytes read from socket 3                                  
GUESSING.... Result of content analysis: Text=0% Newlines=0% Ctrl=100% High=0%
Guessed..... Content-Type `application/octet-stream'
StreamStack. Constructing stream stack for application/octet-stream to */*
StreamStack. Source output    
Host Event.. READ passed to `/usr/src/libwww/ComLine/src/test_date'
Read Socket. 32768 bytes read from socket 3
<SNIP>
Host Event.. READ passed to `/usr/src/libwww/ComLine/src/test_date'
Read Socket. FIN received on socket 3
Net Object.. Delete 0x8051528 and call AFTER filters
Host Object. closing socket 3
Channel..... Semaphore set to 0 for channel 0x8052310
Channel..... Delete 0x8052310 with semaphore 0
Chunkstream. FREEING...
Socket read. FREEING....
Socket write FREEING....
Net Manager. Decreasing active sockets to 0, 0 persistent sockets
Channel..... Deleted 0x8052310, socket 3
Host info... removed host 0x80520c0 as persistent
Host info... Remove 0x8051528 from pipe
Net Object.. Remove object 0x8051528
Net After... calling 0x40020720 (request 0x804bfc0, response 0x805a498,
status 200, context 0x8051438)
HTAccess.... Accessing document http://merced/lala
Response.... Delete 0x805a498
Net Before.. calling 0x4005e7a0 (request 0x804bfc0, context (nil))
Net Before.. calling 0x4005e720 (request 0x804bfc0, context (nil))
Net Before.. calling 0x4005eff0 (request 0x804bfc0, context (nil))
URL Tree.... did NOT find `w3c-AA'
Credentials. verified
Net Before.. calling 0x40060470 (request 0x804bfc0, context (nil))

URL Tree.... did NOT find `w3c-pep'
Net Before.. calling 0x4005e650 (request 0x804bfc0, context (nil))
Net Object.. 0x8051ee0 created with hash 1
Net Object.. starting request 0x804bfc0 (retry=2) with net object 0x8051ee0
HTTP........ Looking for `http://merced/lala'
HTDoConnect. Looking up `merced'
Event....... Created event 0x8051490 with context 0x8052310, priority 20,
and timeout 10000
Event....... Created event 0x80523c8 with context 0x8052310, priority 20,
and timeout 10000
Event....... Created event 0x80523e0 with context 0x8052310, priority 20,
and timeout 10000
Host info... added `merced' with host 0x8052310 to list 0x80521a0
Host info... Add Net 0x8051ee0 (request 0x804bfc0) to pipe, 1 requests
made, 1 requests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
HTHost 0x8052310 going to state TCP_CHANNEL.
HTHost 0x8052310 going to state TCP_DNS.
Looking up merced
DNS Add..... `merced' with 1 home(s) to 0x8052528
ParseInet... as port 80 on 10.1.1.76 with 1 homes
HTHost 0x8052310 going to state TCP_NEED_SOCKET.
Socket...... Created 3
Net Manager. Increasing active sockets to 1, 0 persistent sockets
Socket...... Turned off Nagle's algorithm
Socket...... Non-blocking socket
Channel..... Hash value is 3
Channel..... Added 0x80521b0 to list 0x80514f8
Reader...... Created reader stream 0x805a5d8
Socket...... TCP send buffer size is 65535 for socket 3
Contacting merced
HTHost 0x8052310 going to state TCP_NEED_CONNECT.
HTDoConnect. WOULD BLOCK `merced'
Host Event.. WRITE passed to `http://merced/lala'
HTHost 0x8052310 going to state TCP_CONNECTED.
HTHost 0x8052310 connected.
StreamStack. Constructing stream stack for text/x-http to */*
Tee......... Created stream 0x8052780 with resolver 0x40033bd0
HTTP........ Dumping request to `w3chttp.out'
Host Event.. FLUSH passed to `http://merced/lala'
HTTP........ Generating HTTP/1.x Request Headers
HTTP........ Generating General Headers
MIME........ Generating Entity Headers
Buffer...... Flushing 0x8051528
Write Socket 343 bytes written to 3
Writing...
Uploading... Holding 0x805a548 for 2000 ms using time 0x8052888
Read Socket. WOULD BLOCK fd 3
Host Event.. READ passed to `http://merced/lala'
Read Socket. 25 bytes read from socket 3
Reading...
Response.... Created 0x8052938
Host info... New mode is 1 for host 0x8052310
Net Manager. 1 active sockets, increasing persistent sockets to 1
Host info... added host 0x8052310 as persistent
Net Object.. Persistent connection set ON succeeded
StreamStack. Constructing stream stack for message/x-rfc822-cont to www/debug
Host........ passing 23 bytes as consumed to 0x805a5d8
Host........ 2 bytes remaining
Host........ passing 2 bytes as consumed to 0x805a5d8
Host........ 0 bytes remaining
MIME........ FREEING....
Read Socket. CONTINUE
HTTP........ Continuing
Read Socket. WOULD BLOCK fd 3
Uploading... Flushing 0x805a548 with timer 0x8052888
Posting Data from callback function
Write Socket 55480 bytes written to 3
Writing...
Write Socket WOULD BLOCK 3 (offset 55480)
Buffer...... Increasing buffer to 30735915 bytes
HTBufWrt.c:146 failed allocation for "HTBufferWriter_addBuffer" (30735915
bytes).
Program aborted.
Abort



--
Matt Bohnsack                Engineering Animation, Inc.
bohnsack@eai.com             http://www.eai.com
515.296.0964
Received on Friday, 31 July 1998 11:33:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT