Webcat 2.0.1 date math bug -> Crash!

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13502
interpreted = N
texte = After 3 hours of continuously testing and crashing Webstar, we found that the following code will cause our Webstar 2.1 or 2.0 server to Type 11 if more than one instance is executed concurrently (i.e. using Netsplat): Untitled [MATH DATE]{9/17/1997}-{00/10/0000}[/MATH] You can load this page with one copy of Netscape all day long, and it will work fine. However, CONCURRENT users will cause this to crash almost immediately (Netsplat is awesome!). When we switched to the WC2.0.1 plugin on our live server, it usually lasts only about 5 minutes before two browsers execute this code at the exact same moment. This code works just fine with the WC2.0 plugin, even under a load. I'm not sure if this is broken in 2.0.1b1, I didn't try it.The error also occurs if this is only a [MATH] context (without the DATE).As a partial workaround, the code:[MATH DATE]{9/17/1997}-10[/MATH]does work without any problems for numbers less than 28. How exactly to correctly add more than one month is problematic, due to the varying length of months...Another solution is to switch to the Webcat ACGI, which seems to serialize the requests enough for this to not happen. Along the way to tracking this down we found that the code:[MATH DATE]{9/17/1997}-{00/10/00}[/MATH]produces the result 9/7/0000, while[MATH DATE]{9/17/1997}-{00/10/0000}[/MATH]produces the correct result 9/7/1997.I thought that 19 was assumed when you only used a two digit year, but if that was so then the answer should have been 9/7/0097, right? Not consistent. Our site depends heavily upon the addition and subtraction of dates, so we would greatly appreciate getting this crashing bug fixed!! Also, since we can't seem to get many things to work in WC2.0 but they appear to be fixed in WC2.0.1 (like SEARCH, LOOP, etc), we REALLY want to use WC2.0.1...Our server: AISS 7250/120 40mb RAM System 7.5.3r2, OT 1.1.2 Webstar 2.1 and 2.0 20mb allocated WebCatalog plugin 2.0.1 Sept 4 1997 no other plugins or cgisThe other server: Powercenter 604/120 48mb RAM MacOS 8, OT 1.2 Webstar 2.1 and 2.0 30mb allocated WebCatalog plugin 2.0.1 Sept 4 1997 no other plugins or cgis This one had a bad L2 cache which was causing our hard hangs with the 2.0 plugin last week.The above problems occur on both of these machines.Help!!Thanks,Dale ________________________ ______________________________ | Dale LaFountain | mailto:dalel@dhorse.com | | MIS Director,WebMaster | web: http://www.dhorse.com/ | | Dark Horse Comics, Inc.|Phone: 503-652-8815 x324 | \_________ID97___________|______________________________/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Webcat 2.0.1 date math bug -> Crash! (wahl@dnai.com (Bernt Wahl) 1997)
  2. Re: Webcat 2.0.1 date math bug -> Crash! (Kenneth Grome 1997)
  3. Webcat 2.0.1 date math bug -> Crash! (Dale LaFountain 1997)
After 3 hours of continuously testing and crashing Webstar, we found that the following code will cause our Webstar 2.1 or 2.0 server to Type 11 if more than one instance is executed concurrently (i.e. using Netsplat): Untitled [MATH DATE]{9/17/1997}-{00/10/0000}[/MATH] You can load this page with one copy of Netscape all day long, and it will work fine. However, CONCURRENT users will cause this to crash almost immediately (Netsplat is awesome!). When we switched to the WC2.0.1 plugin on our live server, it usually lasts only about 5 minutes before two browsers execute this code at the exact same moment. This code works just fine with the WC2.0 plugin, even under a load. I'm not sure if this is broken in 2.0.1b1, I didn't try it.The error also occurs if this is only a [math] context (without the DATE).As a partial workaround, the code:[MATH DATE]{9/17/1997}-10[/MATH]does work without any problems for numbers less than 28. How exactly to correctly add more than one month is problematic, due to the varying length of months...Another solution is to switch to the Webcat ACGI, which seems to serialize the requests enough for this to not happen. Along the way to tracking this down we found that the code:[MATH DATE]{9/17/1997}-{00/10/00}[/MATH]produces the result 9/7/0000, while[MATH DATE]{9/17/1997}-{00/10/0000}[/MATH]produces the correct result 9/7/1997.I thought that 19 was assumed when you only used a two digit year, but if that was so then the answer should have been 9/7/0097, right? Not consistent. Our site depends heavily upon the addition and subtraction of dates, so we would greatly appreciate getting this crashing bug fixed!! Also, since we can't seem to get many things to work in WC2.0 but they appear to be fixed in WC2.0.1 (like SEARCH, LOOP, etc), we REALLY want to use WC2.0.1...Our server: AISS 7250/120 40mb RAM System 7.5.3r2, OT 1.1.2 Webstar 2.1 and 2.0 20mb allocated WebCatalog plugin 2.0.1 Sept 4 1997 no other plugins or cgisThe other server: Powercenter 604/120 48mb RAM MacOS 8, OT 1.2 Webstar 2.1 and 2.0 30mb allocated WebCatalog plugin 2.0.1 Sept 4 1997 no other plugins or cgis This one had a bad L2 cache which was causing our hard hangs with the 2.0 plugin last week.The above problems occur on both of these machines.Help!!Thanks,Dale ________________________ ______________________________ | Dale LaFountain | mailto:dalel@dhorse.com | | MIS Director,WebMaster | web: http://www.dhorse.com/ | | Dark Horse Comics, Inc.|Phone: 503-652-8815 x324 | \_________ID97___________|______________________________/ Dale LaFountain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Searching multiple Databases (1997) Hosting Service (1998) Crediting money back to a customer (2000) WebCat2 several catalogs? (1997) WC2.0 Memory Requirements (1997) Authorize.net setup (2002) Fun with Dates - revisited (1997) suggestion (1997) Searchtitle (2000) WebCatalog can't find database (1997) RE: Help name our technology! (1997) Giving out error pages (1997) WebCat & Liststar ... & Rumpus, too! (1997) Security Issue (1999) WebCatalog for Postcards ? (1997) RE: type 2 errors with ssl server (1997) Thanks ! (1997) EMailFolder vs. EMailCompleted folder (2002) multi-paragraph fields (1997) [URL] and [showif] or [hideif] comparisons (2003)