[Varnish] #935: "varnishadm: free(): invalid pointer" when varnishadm does not have read access to secret

Andreas Plesner Jacobsen apj at mutt.dk
Wed Jun 8 19:49:57 CEST 2011


On Wed, Jun 08, 2011 at 11:22:38AM -0400, Renato Farias wrote:
> Hi scoof.
> 
> Could you send the command line that you are running.

No params, just plain varnishadm. Reproduced with the debian package and a source install of latest snapshot.

> On Wed, Jun 8, 2011 at 10:51 AM, Varnish <varnish-bugs at varnish-cache.org>wrote:
> 
> > #935: "varnishadm: free(): invalid pointer" when varnishadm does not have
> > read
> > access to secret
> >
> > -----------------------------+----------------------------------------------
> >  Reporter:  scoof            |        Type:  defect
> >   Status:  new              |    Priority:  lowest
> > Milestone:  Varnish 3.0 dev  |   Component:  varnishadm
> >  Version:  trunk            |    Severity:  trivial
> >  Keywords:                   |
> >
> > -----------------------------+----------------------------------------------
> >  This occurs only when I run as a user without rights for the secret file:
> >
> >
> >  {{{
> >  Cannot open "/etc/varnish/secret": Permission denied
> >  *** glibc detected *** varnishadm: free(): invalid pointer: 0x089330df ***
> >  ======= Backtrace: =========
> >  /lib/i686/cmov/libc.so.6(+0x6b281)[0xb75c8281]
> >  /lib/i686/cmov/libc.so.6(+0x6cad8)[0xb75c9ad8]
> >  /lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb75ccbbd]
> >  varnishadm[0x80497bb]
> >  varnishadm[0x8049bc4]
> >  /lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7573c76]
> >  varnishadm[0x8049111]
> >  ======= Memory map: ========
> >  08048000-0804c000 r-xp 00000000 08:01 1022240    /usr/bin/varnishadm
> >  0804c000-0804d000 rw-p 00003000 08:01 1022240    /usr/bin/varnishadm
> >  08933000-08954000 rw-p 00000000 00:00 0          [heap]
> >  b22e2000-b22ff000 r-xp 00000000 08:01 4416206    /lib/libgcc_s.so.1
> >  b22ff000-b2300000 rw-p 0001c000 08:01 4416206    /lib/libgcc_s.so.1
> >  b2300000-b2321000 rw-p 00000000 00:00 0
> >  b2321000-b2400000 ---p 00000000 00:00 0
> >  b2410000-b7510000 r--s 00000000 08:01 2861966
> >  /var/lib/varnish/trillian/_.vsm
> >  b7510000-b7512000 rw-p 00000000 00:00 0
> >  b7512000-b7514000 r-xp 00000000 08:01 4415792
> >  /lib/i686/cmov/libdl-2.11.2.so
> >  b7514000-b7515000 r--p 00001000 08:01 4415792
> >  /lib/i686/cmov/libdl-2.11.2.so
> >  b7515000-b7516000 rw-p 00002000 08:01 4415792
> >  /lib/i686/cmov/libdl-2.11.2.so
> >  b7516000-b751f000 r-xp 00000000 08:01 4415120    /lib/libbsd.so.0.2.0
> >  b751f000-b7520000 rw-p 00008000 08:01 4415120    /lib/libbsd.so.0.2.0
> >  b7520000-b755c000 r-xp 00000000 08:01 4415659    /lib/libpcre.so.3.12.1
> >  b755c000-b755d000 rw-p 0003b000 08:01 4415659    /lib/libpcre.so.3.12.1
> >  b755d000-b769d000 r-xp 00000000 08:01 4416106
> >  /lib/i686/cmov/libc-2.11.2.so
> >  b769d000-b769f000 r--p 0013f000 08:01 4416106
> >  /lib/i686/cmov/libc-2.11.2.so
> >  b769f000-b76a0000 rw-p 00141000 08:01 4416106
> >  /lib/i686/cmov/libc-2.11.2.so
> >  b76a0000-b76a4000 rw-p 00000000 00:00 0
> >  b76a4000-b76b9000 r-xp 00000000 08:01 4415779
> >  /lib/i686/cmov/libpthread-2.11.2.so
> >  b76b9000-b76ba000 r--p 00014000 08:01 4415779
> >  /lib/i686/cmov/libpthread-2.11.2.so
> >  b76ba000-b76bb000 rw-p 00015000 08:01 4415779
> >  /lib/i686/cmov/libpthread-2.11.2.so
> >  b76bb000-b76bd000 rw-p 00000000 00:00 0
> >  b76bd000-b76e1000 r-xp 00000000 08:01 4415532
> >  /lib/i686/cmov/libm-2.11.2.so
> >  b76e1000-b76e2000 r--p 00023000 08:01 4415532
> >  /lib/i686/cmov/libm-2.11.2.so
> >  b76e2000-b76e3000 rw-p 00024000 08:01 4415532
> >  /lib/i686/cmov/libm-2.11.2.so
> >  b76e3000-b771a000 r-xp 00000000 08:01 4415247    /lib/libncurses.so.5.7
> >  b771a000-b771d000 rw-p 00036000 08:01 4415247    /lib/libncurses.so.5.7
> >  b771d000-b7738000 r-xp 00000000 08:01 1016461    /usr/lib/libedit.so.2.11
> >  b7738000-b773a000 rw-p 0001b000 08:01 1016461    /usr/lib/libedit.so.2.11
> >  b773a000-b773b000 rw-p 00000000 00:00 0
> >  b773b000-b774e000 r-xp 00000000 08:01 4416100
> >  /lib/i686/cmov/libnsl-2.11.2.so
> >  b774e000-b774f000 r--p 00012000 08:01 4416100
> >  /lib/i686/cmov/libnsl-2.11.2.so
> >  b774f000-b7750000 rw-p 00013000 08:01 4416100
> >  /lib/i686/cmov/libnsl-2.11.2.so
> >  b7750000-b7753000 rw-p 00000000 00:00 0
> >  b7753000-b7754000 r-xp 00000000 08:01 3761035
> >  /usr/lib/varnish/libvarnishcompat.so
> >  b7754000-b7755000 rw-p 00000000 08:01 3761035
> >  /usr/lib/varnish/libvarnishcompat.so
> >  b7755000-b7765000 r-xp 00000000 08:01 1014340
> >  /usr/lib/libvarnishapi.so.1.0.0
> >  b7765000-b7766000 rw-p 00010000 08:01 1014340
> >  /usr/lib/libvarnishapi.so.1.0.0
> >  b7785000-b7787000 rw-p 00000000 00:00 0
> >  b7787000-b7788000 r-xp 00000000 00:00 0          [vdso]
> >  b7788000-b77a3000 r-xp 00000000 08:01 4416907    /lib/ld-2.11.2.so
> >  b77a3000-b77a4000 r--p 0001a000 08:01 4416907    /lib/ld-2.11.2.so
> >  b77a4000-b77a5000 rw-p 0001b000 08:01 4416907    /lib/ld-2.11.2.so
> >  bf9a7000-bf9c8000 rw-p 00000000 00:00 0          [stack]
> >  Aborted
> >  }}}
> >
> > --
> > Ticket URL: <http://www.varnish-cache.org/trac/ticket/935>
> > Varnish <http://varnish-cache.org/>
> > The Varnish HTTP Accelerator
> >
> > _______________________________________________
> > varnish-bugs mailing list
> > varnish-bugs at varnish-cache.org
> > http://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
> >
> 
> 
> 

> _______________________________________________
> varnish-bugs mailing list
> varnish-bugs at varnish-cache.org
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs





More information about the varnish-bugs mailing list