Bug 118267

Summary: tail core dump
Product: Base System Reporter: Paul P <pprocacci>
Component: binAssignee: avatar
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-read.c none

Description Paul P 2007-11-26 19:40:01 UTC
`tail`ing a directory causes a core dump.

# tail -F /tmp
Comment 1 Maxim Konovalov 2007-11-26 20:14:12 UTC
> >Description:
> `tail`ing a directory causes a core dump.
>
> # tail -F /tmp
>
avatar@ has fixed this issue in HEAD.

-- 
Maxim Konovalov
Comment 2 Xin LI 2007-11-26 20:15:33 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This seems to be a double free.  Will the attached patch resolve your
problem?

Cheers,
- --
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHSyllhcUczkLqiksRApzYAJsG3fYojLrI/4noEflStj8vCkb4jQCfR1nb
Nl5LOGa+dnBI1KtrU8fp9vU=
=41j2
-----END PGP SIGNATURE-----
Comment 3 Xin LI freebsd_committer freebsd_triage 2007-11-26 20:16:01 UTC
State Changed
From-To: open->analyzed

Seems to be a double free. 


Comment 4 Xin LI freebsd_committer freebsd_triage 2007-11-26 20:16:01 UTC
Responsible Changed
From-To: freebsd-bugs->delphij

Take.
Comment 5 Xin LI freebsd_committer freebsd_triage 2007-11-26 21:18:44 UTC
State Changed
From-To: analyzed->patched

Over to avatar@ who committed a patch against -HEAD as MFC reminder. 


Comment 6 Xin LI freebsd_committer freebsd_triage 2007-11-26 21:18:44 UTC
Responsible Changed
From-To: delphij->avatar

Over to avatar@ who committed a patch against -HEAD as MFC reminder.
Comment 7 dfilter service freebsd_committer freebsd_triage 2007-11-29 03:51:01 UTC
avatar      2007-11-29 03:50:55 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    usr.bin/tail         read.c 
  Log:
  MFC(1.14): Fixing a double free bug which will cause tail to dump core when
  there's no tailing newline(\n) character.
  
  PR:             bin/118267
  Reviewed by:    kib
  Approved by:    re (kensmith)
  
  Revision   Changes    Path
  1.11.10.2  +1 -0      src/usr.bin/tail/read.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 dfilter service freebsd_committer freebsd_triage 2007-11-29 03:53:45 UTC
avatar      2007-11-29 03:53:40 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    usr.bin/tail         read.c 
  Log:
  MFC(1.14): Fixing a double free bug which will cause tail to dump core when
  there's no tailing newline(\n) character.
  
  PR:             bin/118267
  Reviewed by:    kib
  Approved by:    re (kensmith)
  
  Revision  Changes    Path
  1.11.2.2  +1 -0      src/usr.bin/tail/read.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 9 dfilter service freebsd_committer freebsd_triage 2007-11-29 03:55:04 UTC
avatar      2007-11-29 03:54:56 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6_3)
    usr.bin/tail         read.c 
  Log:
  MFC(1.14): Fixing a double free bug which will cause tail to dump core when
  there's no tailing newline(\n) character.
  
  PR:             bin/118267
  Reviewed by:    kib
  Approved by:    re (kensmith)
  
  Revision      Changes    Path
  1.11.2.1.2.1  +1 -0      src/usr.bin/tail/read.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 10 avatar freebsd_committer freebsd_triage 2007-11-29 04:40:21 UTC
State Changed
From-To: patched->closed

Fix has been MFC'ed to RELENG_7, RELENG_6 and RELENG_6_3. 

Thanks for the reminder!