Re: Squid on MinGW is alive

From: Guido Serassio <serassio@dont-contact.us>
Date: Sun, 22 Sep 2002 22:43:00 +0200

Hi Robert,

At 11.26 22/09/2002, Robert Collins wrote:
>On Sun, 2002-09-22 at 08:57, Guido Serassio wrote:
> > Hi,
> >
> > Good news, now I'm able to build the nt branch with Cygwin/MinGW. They are
> > still some things to fix, but it starts (and crashes ...)
>
>in vsnprintf. There seems to be something broken there. The varargs are
>valid AFAICT (checked via print *(char **) vargs).

The strange thing is that when build with MS VisualC we use the MSVCRT
_snprintf and _vsnprintf, and they works fine. May be some problem with
MinGW environment.

I have just changed configure.in, forcing the use of Squid own snprintf()
functions, and after a rebuild, WOW !!!, it works !!!!, as a service and
with awin32 multithreaded fs module:

2002/09/22 22:35:05| Starting Squid Cache version 2.6-DEVEL for
i686-pc-mingw32...
2002/09/22 22:35:05| Running as SquidNT-MinGW Windows System Service on
Windows 2000
2002/09/22 22:35:05| Service command line is:
2002/09/22 22:35:05| Process ID 2192
2002/09/22 22:35:05| With 2048 file descriptors available
2002/09/22 22:35:05| With 2048 CRT stdio descriptors available
2002/09/22 22:35:05| Performing DNS Tests...
2002/09/22 22:35:05| Successful DNS name lookup tests...
2002/09/22 22:35:05| DNS Socket created at 0.0.0.0, port 2993, FD 4
2002/09/22 22:35:05| Adding nameserver 172.31.128.1 from Registry
2002/09/22 22:35:05| Adding nameserver 194.153.210.30 from Registry
2002/09/22 22:35:05| Adding nameserver 194.153.210.34 from Registry
2002/09/22 22:35:05| Unlinkd pipe opened on FD 7
2002/09/22 22:35:05| Swap maxSize 524288 KB, estimated 40329 objects
2002/09/22 22:35:05| Target number of buckets: 2016
2002/09/22 22:35:05| Using 8192 Store buckets
2002/09/22 22:35:05| Max Mem size: 8192 KB
2002/09/22 22:35:05| Max Swap size: 524288 KB
2002/09/22 22:35:05| Store logging disabled
2002/09/22 22:35:05| Rebuilding storage in c:/MinGWsquid/var/cache (CLEAN)
2002/09/22 22:35:05| Using Least Load store dir selection
2002/09/22 22:35:05| Set Current Directory to c:/MinGWsquid/var/cache
2002/09/22 22:35:05| Loaded Icons.
2002/09/22 22:35:05| Accepting HTTP connections at 0.0.0.0, port 3127, FD 12.
2002/09/22 22:35:05| Ready to serve requests.
2002/09/22 22:35:05| Done reading c:/MinGWsquid/var/cache swaplog (77 entries)
2002/09/22 22:35:05| Finished rebuilding storage from disk.
2002/09/22 22:35:05| 77 Entries scanned
2002/09/22 22:35:05| 0 Invalid entries.
2002/09/22 22:35:05| 0 With invalid flags.
2002/09/22 22:35:05| 77 Objects loaded.
2002/09/22 22:35:05| 0 Objects expired.
2002/09/22 22:35:05| 0 Objects cancelled.
2002/09/22 22:35:05| 0 Duplicate URLs purged.
2002/09/22 22:35:05| 0 Swapfile clashes avoided.
2002/09/22 22:35:05| Took 0.1 seconds ( 700.0 objects/sec).
2002/09/22 22:35:05| Beginning Validation Procedure
2002/09/22 22:35:05| Completed Validation Procedure
2002/09/22 22:35:05| Validated 77 Entries
2002/09/22 22:35:05| store_swap_size = 604k
2002/09/22 22:35:06| storeLateRelease: released 0 objects
2002/09/22 22:35:20| CACHEMGR: manager@127.0.0.1 requesting 'menu'
2002/09/22 22:35:24| CACHEMGR: manager@127.0.0.1 requesting 'info'
2002/09/22 22:35:39| CACHEMGR: manager@127.0.0.1 requesting 'storedir'
2002/09/22 22:39:28| CACHEMGR: manager@127.0.0.1 requesting 'menu'
2002/09/22 22:39:30| CACHEMGR: manager@127.0.0.1 requesting 'squidaio_counts'
2002/09/22 22:39:48| CACHEMGR: manager@127.0.0.1 requesting 'info'
2002/09/22 22:39:54| CACHEMGR: manager@127.0.0.1 requesting 'shutdown'
2002/09/22 22:39:54| Shutdown by command.
2002/09/22 22:39:54| Preparing for shutdown after 10 requests
2002/09/22 22:39:54| Waiting 30 seconds for active connections to finish
2002/09/22 22:39:54| FD 12 Closing HTTP connection
2002/09/22 22:39:54| Shutting down...
2002/09/22 22:39:54| Closing unlinkd pipe on FD 7
2002/09/22 22:39:54| aioSync: flushing pending I/O operations
2002/09/22 22:39:54| aioSync: done
2002/09/22 22:39:54| storeDirWriteCleanLogs: Starting...
2002/09/22 22:39:54| Finished. Wrote 78 entries.
2002/09/22 22:39:54| Took 0.0 seconds ( 78.0 entries/sec).
CPU Usage: 0.219 seconds = 0.125 user + 0.094 sys
Maximum Resident Size: 9316 KB
Page faults with physical i/o: 2442
2002/09/22 22:39:54| aioSync: flushing pending I/O operations
2002/09/22 22:39:54| aioSync: done
2002/09/22 22:39:54| aioSync: flushing pending I/O operations
2002/09/22 22:39:54| aioSync: done
2002/09/22 22:39:54| Squid Cache (Version 2.6-DEVEL): Exiting normally.

Regards

Guido

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Sun Sep 22 2002 - 14:43:21 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:35 MST