Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup 05/09/2007

Joe Moore
Wednesday, May 9, 2007

Interesting Things

  • Hpricot versions 0.4 and 0.5.x are causing us Segmentation faults. Why, Why?
  • Rails gotcha: Rails’ automatically generated finder methods will not work properly if you have a class name with the word ‘And’ in it. For example, a RentalCarCompany might have many CarsAndTruck. You will have problems if you try to call RentalCarCompany.find_by_cars_and_truck_ids because the _and_ is reserved for methods such as find_by_name_and_address.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

One comment

  1. steve dp says:

    I’ve had a problem with segmentation faults on hpricot before although I cannot remember which version. I also forget how exactly I determined it (I think I gdb’ed the core file) but it was due to a buffer overflow on a char[1024] array that wasn’t big enough to handle ASP.NET session tracking strings (which is done with fields). The strings were far larger than 1024 bytes.

    So you might want to check if there are any very long quoted values in the HTML you’re parsing. If so it may be the same problem. I was under the impression Why knew about this and fixed it in the latest release, but I could be mistaken. I decided against using the library because of memory/cpu usage and fell back on ruby’s String#scan.

    I just found the ticket for it: http://code.whytheluckystiff.net/hpricot/ticket/13, Looks like its slated for the 0.6 release.

    December 12, 2007 at 11:50 pm

Add New Comment Cancel reply

Your email address will not be published.

Joe Moore

Joe Moore
New York

Recent Posts

  • How We Use tmux for Remote Pair Programming
  • Integrating Remote Developers: Intuitive, Flexible Video Conferencing
  • Pair Programming Matrix
Subscribe to Joe's Feed

Author Topics

agile (117)
pair programming (6)
remote (4)
remote pair programming (3)
tmux (1)
android (10)
mobile (10)
robolectric (4)
java (4)
c2dm (2)
testing (8)
apple (1)
ipad (1)
pivotal tracker (6)
sf.tug (2)
desert (2)
ruby on rails (13)
javascript (2)
capistrano (1)
palmpre (1)
active record (3)
activerecord (6)
mysql (1)
rubymine (1)
fun (4)
acts_as_fu (1)
rspec (2)
xp (1)
flash (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >