###@###.### 2002-10-31 I wrote a little program to replace the "<meta ... charset=" html tag with a tag containing a defined codeset for any input files, and found that it was hanging on two files (both samples attached) The pattern that it's hanging on looks like : // looking for a html meta tag like : // <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5"> Pattern mypattern = Pattern.compile("<\\s*"+ "(meta|META)"+ "(\\s|[^>])+"+ "(CHARSET|charset)="+ "(\\s|[^>])+>"); my test program (attached) can be run on any html input file, and it should print out what (if any) text it replaced. I can reproduce this on java full version "1.4.0_02-20020711" and "1.4.1_01-b01" Both html attachments cause this error to occur. Though lots of other html files (both with and without matches for the above regex) work fine. Trussing java while it's hung reveals lots of : 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/2: lwp_cond_wait(0x0002BD10, 0x0002BCF8, 0xFADFFD60) (sleeping...) 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/2: lwp_cond_wait(0x0002BD10, 0x0002BCF8, 0xFADFFD60) Err#62 ETIME 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0 11130/5: poll(0xF2A7FD88, 0, 10) = 0
|