Forum: wxRuby Segmentation fault on paste a long text into Scintilla

01a68e65c05c8751d75dbf957ea4fa23?d=identicon&s=25 Zhimin Zhan (zzhan)
on 2010-06-03 00:44
Hi there,

In bundled samples\scintilla.rb, paste a long one-line text (see below)
caused segmentation fault

scintilla.rb:166: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

However, It was Ok if not including last 100 or so characters (worked on
13100 characters).

Cheers,
Zhimin

-- text copied

<tbody><tr><td class="Application-content-title" width="460px"><table
role="tablist" class="gwt-TabBar" cellpadding="0"
cellspacing="0"><tbody><tr><td class="gwt-TabBarFirst-wrapper"
style="vertical-align: bottom;" align="left" height="100%"><div
style="white-space: normal; height: 100%;"
class="gwt-TabBarFirst">&nbsp;</div></td><td
class="gwt-TabBarItem-wrapper gwt-TabBarItem-wrapper-selected"
style="vertical-align: bottom;" align="left"><div role="tab"
class="gwt-TabBarItem gwt-TabBarItem-selected" tabindex="0"><input
style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow:
hidden; position: absolute;" tabindex="-1" type="text"><div
style="white-space: nowrap;"
class="gwt-Label">Example</div></div></td><td
class="gwt-TabBarItem-wrapper" style="vertical-align: bottom;"
align="left"><div role="tab" class="gwt-TabBarItem" tabindex="0"><input
style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow:
hidden; position: absolute;" tabindex="-1" type="text"><div
style="white-space: nowrap;" class="gwt-Label">Source
Code</div></div></td><td class="gwt-TabBarItem-wrapper"
style="vertical-align: bottom;" align="left"><div role="tab"
class="gwt-TabBarItem" tabindex="0"><input style="opacity: 0; height:
1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><div style="white-space: nowrap;"
class="gwt-Label">CSS Style</div></div></td><td
class="gwt-TabBarRest-wrapper" style="vertical-align: bottom;"
align="left" width="100%"><div style="white-space: normal; height:
100%;"
class="gwt-TabBarRest">&nbsp;</div></td></tr></tbody></table></td></tr><tr><td
class="Application-content-wrapper" width="460px"><div><div
class="sc-ContentWidget"><div><div style="width: 100%; height: 100%;
padding: 0px; margin: 0px;"><table style="width: 100%; height: 100%;"
cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align:
top;" align="left"><div class="sc-ContentWidget-name">Rich
Text</div></td></tr><tr><td style="vertical-align: top;"
align="left"><div class="sc-ContentWidget-description">The Rich Text
Area is supported on all major browsers, and will fall back gracefully
to the level of functionality supported on each.</div></td></tr><tr><td
style="vertical-align: top;" align="left"><table
class="cw-RichText"><colgroup><col></colgroup><tbody><tr><td><table
style="width: 100%;" id="gwt-debug-cwRichText-toolbar"
class="gwt-RichTextToolbar" cellpadding="0"
cellspacing="0"><tbody><tr><td style="vertical-align: top;"
align="left"><table style="width: 100%;" cellpadding="0"
cellspacing="0"><tbody><tr><td style="vertical-align: top;"
align="left"><div aria-pressed="false" title="Toggle Bold" role="button"
class="gwt-ToggleButton gwt-ToggleButton-up" tabindex="0"><input
style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow:
hidden; position: absolute;" tabindex="-1" type="text"><img
class="gwt-Image" onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAJElEQVR42mNgGAVDBvwngCk2FJ/YMDVwNAxJN5Am6XAUDBcAAEbIOsY2U3mTAAAAAElFTkSuQmCC&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Toggle Italic" role="button" class="gwt-ToggleButton
gwt-ToggleButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAMElEQVR42mNgGAVDFvzHgqljaEtLC+WGVVdXU9VlcNdBDR513QC57j+t0t4oGA4AAKUVKhOV88RGAAAAAElFTkSuQmCC&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Toggle Underline" role="button" class="gwt-ToggleButton
gwt-ToggleButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAM0lEQVR42mNgGAW0Av/RMC4xsgwlJDZq4JA3sLq6GmwAlKbIQGxp7/+gzSmD16WjgDAAAErVNq+bleVlAAAAAElFTkSuQmCC&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Toggle Subscript" role="button" class="gwt-ToggleButton
gwt-ToggleButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAQUlEQVR42mNgGAVA8B+KCYmRbSBFhmEz5D+1vf6flmFJFdf9p7brKDaUqrGMSzMuS6gWHAzUTlKD3zCqJ/pRgAAA25Aq1vSpbcYAAAAASUVORK5CYII=&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Toggle Superscript" role="button" class="gwt-ToggleButton
gwt-ToggleButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAR0lEQVR42mNgGAVEgv9ImCqGYWNT1WD6GoYtbJDF/pMahv+xhNN/asUiVcOKqkmDgVaGUTXx/qeWS6kay7g0/6d2zhgFuAEAP4Qq1pLsimkAAAAASUVORK5CYII=&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Left Justify" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAH0lEQVR42mNgGAXUBv/JxIPPhaNhOBqGIzsMRwHpAACk/ke5B2guPwAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Center" role="button" class="gwt-PushButton gwt-PushButton-up"
tabindex="0"><input style="opacity: 0; height: 1px; width: 1px; z-index:
-1; overflow: hidden; position: absolute;" tabindex="-1"
type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAH0lEQVR42mNgGAXUBv/JxIPXpaNhOBqGIzMMRwHpAAC130e5KyRN6AAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Right Justify" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAH0lEQVR42mNgGAXUBv/JxIPfxaNhOBqGIysMRwHpAADGwEe5v4tWjAAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Toggle Strikethrough" role="button" class="gwt-ToggleButton
gwt-ToggleButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAPUlEQVR42mNgGAW0B4wM/1EwTIwiwwiJUWQgVVyIzZVUCUOqRAIhPHAuxRZWVPE+sTE/cOkQV24ZBUMHAACWYzIBInwtbwAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Indent Right" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAALklEQVR42mNgGAUjD/zHwicG4zXwP7Vchs9Wkl1Islfo7kKqhyHNYnkUjAIiAABycjnHMpImtQAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Indent Left" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAALklEQVR42mNgGAUjE/xHYxOD8Rr2n5ouw2UzyS4k2St0dyFNwpAmsTwKRgERAABCojnHWU6H/gAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Insert Horizontal Rule" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAG0lEQVR42mNgGAWjYPCB/2TiIWzgKBgFwwIAAM0gKdePp3jVAAAAAElFTkSuQmCC&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Insert Ordered List" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAMklEQVR42mNgGPHgPxRT3VBsluDDJBlIFS//H/SRQtOIGY2UQeBCqucUqkbM4I+UwQcAdqwxz5oujfsAAAAASUVORK5CYII=&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Insert Unordered List" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAIklEQVR42mNgGPHgPxKmmYH/icD0c+FopIxGymikjALaAAC2dzXLcl5hjgAAAABJRU5ErkJggg==&quot;)
no-repeat scroll 0px 0px transparent;" border="0"></div></td><td
style="vertical-align: top;" align="left"><div aria-pressed="false"
title="Insert Image" role="button" class="gwt-PushButton
gwt-PushButton-up" tabindex="0"><input style="opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;"
tabindex="-1" type="text"><img class="gwt-Image"
onload='this.__gwtLastUnhandledEvent="load";'
src="http://gwt.google.com/samples/Showcase/showcase/cl...
style="width: 20px; height: 20px; background:
url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABSklEQVR42t2Uv0oDQRCH8zR5FhvfJOADpEplpWBhY6cgNgrqA0RTRDHNxWgjCF7jHyxyIaggyTHyrfyOgejuYRcPfuze7sw3szN712j8u+fxeWxo0B/Y
This topic is locked and can not be replied to.