Sugree

Main menu

  • About
    • Self
  • Project
    • Barcode Generator / Reader
    • GT200
    • GeoPin
    • Mitter
    • Red Mob
    • Thairath Breaking News
    • Twitter Android SDK
    • jibjib
    • microblog-purple
    • English
    • Thai

A known problem in pcre and preg_match()

Submitted by sugree on Fri, 06/26/2009 - 10:10
  • Drupal
  • PHP
  • Thai

เจอปัญหาแปลกๆ apache2 ตายแบบมีข้อกังขา ไม่ถึงกับถี่ แต่ก็ไม่ควรเกิด

[Sun May 31 06:01:44 2009] [notice] child pid 19028 exit signal Segmentation fault (11)

หลังจากที่บังคับพ่น core แล้วใช้ gdb ไล่จิก ก็พบความลับสวรรค์

มีคนเจอแล้ว 45735 นานแล้วด้วย จอดสนิทที่ pcre_dfa_exec() หลังจากที่โดนเรียกตัวเองมาแล้วมากกว่า 8000 ครั้ง ทางแก้ง่ายๆ คืออย่าให้มันไปไกลเกินไป แต่ข้อเสียที่ตามมาก็มากเหมือนกัน "ความว่างเปล่า" ซึ่งหลายคนเห็น เช่น @markpeak @phisite @suksit

ตอนนี้ปรับค่าขึ้นมาเป็น 50000 รอดูอาการต่อไป

Roti (alpha) thinks you may like these:
  • A known problem in pcre and preg_match()
  • Stack overflow confirmed
  • A Bug a Day
  • a year and a day
  • a room with a view
  • Login to post comments
by onequad (not verified) on Fri, 06/26/2009 - 21:27 #995

โอ้้้ เคยเป็นเหมือนกันครับ อยู่ดีๆ apache ก็ตาย

  • Login to post comments

Popular Tags

Android BarCamp BarCampBangkok Book Django Drupal Education Family Google Hardware Hardy Health Interview Intrepid Java jibjib Joke Life microblog-purple OpenOffice.org OpenSource Podcast Python Review SoC Social Network Trip Twitter Ubuntu Weekly Suki
more tags

Powered By

debian
apache
drupal
drupal.in.th
openfreehost
inox
feedburner

© 2007-2008 Sugree Phatanapherom. Creative Commons [Feed Content / Comment]
RoopleTheme