REBOL3 tracker
  0.9.12 beta
Ticket #0002032 User: anonymous

Project:



rss
TypeBug Statusbuilt Date11-Jun-2013 07:31
Versionalpha 111 CategoryPorts Submitted byWayneTsui
PlatformWindows Severitycrash Priorityhigh

Summary Port crash
Description When I run a spider programme, after several minutes, the console terminates abnormally.
OS: Win7
Rebol Version: 2.100.111.3.1
Example code

			

Assigned ton/a Fixed in- Last Update7-Mar-2014 04:31

Attached Files

Comments
(0003884)
WayneTsui
5-Jul-2013 15:56

I think there was something wrong with my code. I was writing a spider to get some infomation from the internet.First I need to get all the urls from a page and store them in a block, then I traversal this block to parse the pages from the urls. While I parse these pages, I still need to get all the urls and store then in the same block.The problem reside between getting all the urls and parsing the pages.In fact this is a multi-task. When I use the "wait 1" clause, there is not problem.
But still, when there is no memory, the console would terminated. I don't know if this is a bug.
(0003885)
maxim
5-Jul-2013 16:10

The console should never crash, so its definitely a bug.

Normally, you should get a Rebol Error about out of memory, or stack overun, etc.

Whatever caused the crash should be detected by the interpreter itself, and reported as a Rebol Error!.
(0003886)
adrians
5-Jul-2013 18:40

The links to the attached images return a 404.
(0003888)
WayneTsui
13-Jul-2013 07:37

There are three phenomena:9910, 1401 and disappear without no warnings.And these phenomena cannot be forecasted.
Also, the programme will run long to get them, maybe half an hour, or maybe more than one hour. So please be patient. :)
How to use the source code? just type do %spider.reb.

9910: http://www.evernote.com/shard/s28/sh/737c80ac-9e2f-4bbe-ab83-76a7f306198f/d06a360ab1d04724ebb9147fcd2d43a7
1401: http://www.evernote.com/shard/s28/sh/4683e41e-1a9d-4f92-85bd-03202beddb77/1004f76919afeee359d321d9f953bd93
sourcecode: http://www.evernote.com/shard/s28/sh/50bb6f91-453e-470c-869d-ae770d6e0bd3/537ffeacfbfe40999eb7ce1587a7dc4f
(0003889)
Graham
13-Jul-2013 07:51

We have discovered this #9910 error in other tcp programming so this needs to be fixed. But we need to replicate it easily.
Are you able to provide a short piece of code that does this?
(0003890)
WayneTsui
13-Jul-2013 08:14

I can try it.
(0003892)
WayneTsui
14-Jul-2013 14:49

OK, guys, I have made it! I have run 20 console prompts at the same time. Most of the time, I got #9910, and 1 #1401, and some just disapper. Once I have got 5 #1412 and 2 #1405. Unfortunately, I fail to capture the #1405 well; and I tried twice more, but could't get the #1412 and #1405.
Note that run 20 console prompts at the same time would cost a lot of memory. The test would take about one hour.

#1412: http://www.evernote.com/shard/s28/sh/a31ba2d7-9702-4356-851f-3587352340ae/20ba0a552803e535855525b255b6dac1
#1405: http://www.evernote.com/shard/s28/sh/4e4fe6be-980a-4841-a6a6-c7ff075cbeb8/760b7d1e01884b3e18364fb5a8d19b64
code: http://www.evernote.com/shard/s28/sh/1f5bee45-a2b7-404d-ac4b-59ce8cc1b864/09504e250d69b5174b4a2ac944bd3ca1
(0003894)
Graham
15-Jul-2013 01:33

Can you post your rebol code on github as a Gist or something?
Download from here is not working.
Thanks
(0003895)
WayneTsui
15-Jul-2013 07:28

I have put the code in this place: https://gist.github.com/WayneTsui/5997656
(0003896)
abolka
15-Jul-2013 09:56

For reference:
- 1401 is "not enough memory"
- 1405 is "problem with IO"
- 1412 is "event queue overflow"
- 9910 is caused by an invalid port! object
(0004028)
fork
2-Oct-2013 11:59

Possibly/probably resolved by: https://github.com/rebol/rebol/pull/158
(0004263)
Ladislav
21-Feb-2014 09:18

#2106 is related

Date User Field Action Change
7-Mar-2014 04:31 Ladislav Status Modified pending => built
21-Feb-2014 09:18 Ladislav Comment : 0004263 Added -
6-Oct-2013 11:17 Ladislav Status Modified submitted => pending
6-Oct-2013 11:17 Ladislav Summary Modified Program terminated abnormally. => Port crash
6-Oct-2013 11:17 Ladislav Description Modified -
6-Oct-2013 11:17 Ladislav Category Modified Unspecified => Ports
6-Oct-2013 11:15 Ladislav Comment : 0003901 Removed -
6-Oct-2013 11:13 Ladislav Description Modified -
2-Oct-2013 11:59 fork Comment : 0004028 Added -
30-Jul-2013 06:01 Ladislav Comment : 0003901 Added -
15-Jul-2013 09:56 abolka Comment : 0003896 Added -
15-Jul-2013 07:28 WayneTsui Comment : 0003895 Added -
15-Jul-2013 01:33 Graham Comment : 0003894 Added -
14-Jul-2013 14:49 WayneTsui Comment : 0003892 Added -
14-Jul-2013 03:03 WayneTsui Comment : 0003891 Removed -
14-Jul-2013 03:03 WayneTsui Comment : 0003891 Modified -
13-Jul-2013 18:15 WayneTsui Comment : 0003891 Added -
13-Jul-2013 08:15 WayneTsui Comment : 0003890 Modified -
13-Jul-2013 08:14 WayneTsui Comment : 0003890 Added -
13-Jul-2013 07:51 Graham Comment : 0003889 Added -
13-Jul-2013 07:37 WayneTsui Comment : 0003888 Added -
5-Jul-2013 18:40 adrians Comment : 0003886 Added -
5-Jul-2013 16:12 maxim Comment : 0003885 Modified -
5-Jul-2013 16:11 maxim Comment : 0003885 Modified -
5-Jul-2013 16:10 maxim Comment : 0003885 Added -
5-Jul-2013 15:56 WayneTsui Comment : 0003884 Added -
11-Jun-2013 07:31 WayneTsui Ticket Added -