Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007300 [Squeak] OS-Win32 crash always 02-24-09 17:24 02-25-09 15:02
Reporter mhj View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 3.10.2
  Product Build
Summary 0007300: Instant crash using reMatch: on a long string with many matches
Description When performing reMatch with a certain RE on a long enough string, the Squeak window instantly vanishes with no error messages. Nothing is logged in SqueakDebug.log.

Steps to reproduce, starting from a freshly-unzipped Squeak3.10.2-7179-win32.zip on WinXP SP3:

- Open Squeak.exe on the included Squeak3.10.2-7179-basic.image
- Install the Regular Expression Plugin with the Package Loader (yellow-click, install, Yes to all three prompts, close the opened doc windows)
- Open a Workspace and paste the following, on one line:
'146,399,163,403,170,393,169,391,166,386,170,381,170,371,170,355,169,346,167,335,170,329,170,320,170,310,171,301,173,290,178,289,182,287,188,286,190,286,192,291,194,296,195,305,194,307,191,312,190,316,190,321,192,331,193,338,196,341,197,346,199,352,198,360,197,366,197,373,196,380,197,383,196,387,192,389,191,392,190,396,189,400,194,401,201,402,208,403,213,402,216,401,219,397,219,393,216,390,215,385,215,379,213,373,213,365,212,360,210,353,210,347,212,338,213,329,214,319,215,311,215,306,216,296,218,290,221,283,225,282,233,284,238,287,243,290,250,291,255,294,261,293,265,291,271,291,273,289,278,287,279,285,281,280,284,278,284,276,287,277,289,283,291,286,294,291,296,295,299,300,301,304,304,320,305,327,306,332,307,341,306,349,303,354,301,364,301,371,297,375,292,384,291,386,302,393,324,391,333,387,328,375,329,367,329,353,330,341,331,328,336,319,338,310,341,304,341,285,341,278,343,269,344,262,346,259,346,251,349,259,349,264,349,273,349,280,349,288,349,295,349,298,354,293,356,286,354,279,352,268,352,257,351,249,350,234,351,211,352,197,354,185,353,171,351,154,348,147,342,137,339,132,330,122,327,120,314' reMatch: '(\d+,\s*)+'
- Print it (or do it)

Removing ',314' from the end of the string prevents the crash.

I tried launching Squeak with "-memory: 512", but the outcome was the same. I could not duplicate this crash on OS X 10.5, even with a much longer string.
Steps To Reproduce
Additional Information I apologize if this should have been submitted to the Regular Expression Plugin maintainers instead. Since it caused all of Squeak to crash, I figured this was the appropriate place to submit.

Yes, the regex is in fact no good and will miss the last number in the string.
Attached Files

- Relationships

- Notes
(0012989 - 824 - 1301 - 1301 - 1301 - 1301 - 1301)
nicolas cellier
02-25-09 08:05

That does not happen when I use a 3.7 VM.
   datedVersion 'Squeak3.10.2 of ''5 June 2008'''
   osVersion 'NT'
   platformName 'Win32'
   platformSubtype 'IX86'
   vmPath 'C:\Smalltalk\Squeak_3.7.1\'
   vmVersion 'Squeak3.7 of ''4 September 2004'' [latest update: #5989]'
Maybe you could give more information about VM version and plugins.
From within the image:

Workspace new
   acceptContents: (String streamContents: [:aStream |
      #(#datedVersion #osVersion #platformName #platformSubtype #vmPath #vmVersion #imageName #changesName #sourcesName #listBuiltinModules #listLoadedModules #getVMParameters )
         do: [:each |
            | value |
            value := SmalltalkImage current perform: each.
            aStream crtab; nextPutAll: each; space; print: value]]);
   openLabel: 'version'
 
(0012990 - 2225 - 2579 - 2579 - 2695 - 2695 - 2695)
mhj
02-25-09 15:02

Here's the output of that command:

    datedVersion 'Squeak3.10.2 of ''5 June 2008'''
    osVersion 'NT'
    platformName 'Win32'
    platformSubtype 'IX86'
    vmPath 'C:\squeak\Squeak3.10.2-7179\'
    vmVersion 'Squeak3.9 of 7 November 2006 [latest update: 0007067]'
    imageName 'C:\squeak\Squeak3.10.2-7179\test.image'
    changesName 'C:\squeak\Squeak3.10.2-7179\test.changes'
    sourcesName 'C:\squeak\Squeak3.10.2-7179\SqueakV39.sources'
    listBuiltinModules #('ADPCMCodecPlugin 1 February 2007 (i)' 'AsynchFilePlugin 1 February 2007 (i)' 'B3DAcceleratorPlugin 1 February 2007 (i)' 'BMPReadWriterPlugin 1 February 2007 (i)' 'B2DPlugin 1 February 2007 (i)' 'BitBltPlugin 1 February 2007 (i)' 'DSAPrims 1 February 2007 (i)' 'ZipPlugin 1 February 2007 (i)' 'DropPlugin 1 February 2007 (i)' 'FFTPlugin 1 February 2007 (i)' 'FilePlugin 1 February 2007 (i)' 'FloatArrayPlugin 1 February 2007 (i)' 'FloatMathPlugin 1 February 2007 (i)' 'GeniePlugin v2.0 1 February 2007 (i)' 'HostWindowPlugin 1 February 2007 (i)' 'JPEGReadWriter2Plugin 1 February 2007 (i)' 'JPEGReaderPlugin 1 February 2007 (i)' 'JoystickTabletPlugin 1 February 2007 (i)' 'Klatt 1 February 2007 (i)' 'LargeIntegers v1.5 1 February 2007 (i)' 'LocalePlugin 1 February 2007 (i)' 'MIDIPlugin 1 February 2007 (i)' 'Matrix2x3Plugin 1 February 2007 (i)' 'MiscPrimitivePlugin 1 February 2007 (i)' 'Mpeg3Plugin 1 February 2007 (i)' 'RePlugin 1 February 2007 (i)' 'SecurityPlugin 1 February 2007 (i)' 'SerialPlugin 1 February 2007 (i)' 'SocketPlugin 1 February 2007 (i)' 'SoundCodecPrims 1 February 2007 (i)' 'SoundGenerationPlugin 1 February 2007 (i)' 'SoundPlugin 1 February 2007 (i)' 'StarSqueakPlugin 1 February 2007 (i)' 'SurfacePlugin Aug 30 2007 (i)' 'UUIDPlugin 1 February 2007 (i)')
    listLoadedModules #('Matrix2x3Plugin 1 February 2007 (i)' 'FloatArrayPlugin 1 February 2007 (i)' 'LargeIntegers v1.5 1 February 2007 (i)' 'BitBltPlugin 1 February 2007 (i)' 'B2DPlugin 1 February 2007 (i)' 'SecurityPlugin 1 February 2007 (i)' 'FilePlugin 1 February 2007 (i)' 'MiscPrimitivePlugin 1 February 2007 (i)')
    getVMParameters #(18619800 18855888 21446552 2804 4000 2000 1 73 78 7 0 0 0 0 0 0 0 0 0 0 104 0 0 8388608 4194304 1 1879 4204 62 62 1 0 103 4000 138 737344428 350 0 0 4)
 

- Issue History
Date Modified Username Field Change
02-24-09 17:24 mhj New Issue
02-25-09 08:05 nicolas cellier Note Added: 0012989
02-25-09 15:02 mhj Note Added: 0012990


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
38 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker