[DRE-maint] [Bug 736521] Re: two segfaults in ruby inotify extension library

Brian Murray brian at ubuntu.com
Thu Mar 17 17:52:30 UTC 2011


** Tags added: patch

-- 
You received this bug notification because you are subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/736521

Title:
  two segfaults in ruby inotify extension library

Status in “libinotify-ruby” package in Ubuntu:
  New

Bug description:
  Binary package hint: libinotify-ruby

  Segfault #1 - Poor input type checking in rb_inotify_add_watch() throws a segfault when passed e.g. the nil object
  Segfault #2 - Closing the inotify file descriptor in a separate thread may lead to fd reuse and segfault in rb_inotify_each_event

  Supplied patch provides tests to trigger these bugs and
  a) adds a type check in rb_inotify_add_watch()
  b) sets the file descriptor to -1 in rb_inotify_close()
  c) exits rb_inotify_each_event() when the file descriptor is invalidated

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: libinotify-ruby 0.0.2-4
  ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
  Uname: Linux 2.6.35-27-generic x86_64
  Architecture: amd64
  Date: Wed Mar 16 15:59:26 2011
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: libinotify-ruby





More information about the Pkg-ruby-extras-maintainers mailing list