[Varnish] #848: varnishlog -r seems broken
Varnish
varnish-bugs at varnish-cache.org
Wed Jan 26 11:59:44 CET 2011
#848: varnishlog -r seems broken
--------------------+-------------------------------------------------------
Reporter: perbu | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Varnish 3.0 dev
Component: build | Version: trunk
Severity: normal | Keywords: varnishlog
--------------------+-------------------------------------------------------
Description changed by perbu:
Old description:
> Created a log file like this: ./varnishlog -w /tmp/vlog
>
> Waiting a few seconds and breaking (^C).
>
> Then I try to read the file like this: ./varnishlog -r /tmp/vlog
>
> varnishlog then gives no output and returns with a exit code of 0.
>
> Strace gives some hints that something is wrong:
>
> (..)
> open("/tmp/vlog", O_RDONLY) = 3
> uname({sys="Linux", node="odd", ...}) = 0
>
> What the hell is this:
> open("/opt/varnish/var/varnish/odd/_.vsm", O_RDONLY) = 4
> fstat(4, {st_mode=S_IFREG|0644, st_size=84934656, ...}) = 0
> read(4,
> "6\332y\371\200\0\1\0#\330?M\0\0\0\0\277\23\0\0\300\23\0\0\0\0\20\5\0\0\0\0"...,
> 65664) = 65664
> mmap(NULL, 84934656, PROT_READ, MAP_SHARED, 4, 0) = 0x7fc57f055000
> read(3, "\35\0\0)\f\0\0\0", 8) = 8
> read(3, "66.249.72.243 40136 773308670\0\0\0", 32) = 32
> exit_group(0) = ?
>
> I have a log file that I can send to someone. It does however, contain
> session data so I won't upload it.
New description:
Created a log file like this: ./varnishlog -w /tmp/vlog
Waiting a few seconds and breaking (^C).
Then I try to read the file like this: ./varnishlog -r /tmp/vlog
varnishlog then gives no output and returns with a exit code of 0.
Strace gives some hints that something is wrong:
{{{
(..)
open("/tmp/vlog", O_RDONLY) = 3
uname({sys="Linux", node="odd", ...}) = 0
}}}
What the hell is this:
{{{
open("/opt/varnish/var/varnish/odd/_.vsm", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=84934656, ...}) = 0
read(4,
"6\332y\371\200\0\1\0#\330?M\0\0\0\0\277\23\0\0\300\23\0\0\0\0\20\5\0\0\0\0"...,
65664) = 65664
mmap(NULL, 84934656, PROT_READ, MAP_SHARED, 4, 0) = 0x7fc57f055000
read(3, "\35\0\0)\f\0\0\0", 8) = 8
read(3, "66.249.72.243 40136 773308670\0\0\0", 32) = 32
exit_group(0) = ?
}}}
I have a log file that I can send to someone. It does however, contain
session data so I won't upload it.
--
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/848#comment:1>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list