[ok [ 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} code: #[none] version: "alpha 111" severity: "crash" status: "built" resolution: "open" priority: "high" type: "Bug" platform: "Windows" created: 11-Jun-2013/7:31:31 modified: 7-Mar-2014/4:31:06 user: "WayneTsui" category: "Ports" reproduce: "Always" fixed-in: #[none] project: "REBOL 3.0" comments: [[3884 "WayneTsui" 5-Jul-2013/15:56:32 {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. ^M But still, when there is no memory, the console would terminated. I don't know if this is a bug.}] [3885 "maxim" 5-Jul-2013/16:10:43 {The console should never crash, so its definitely a bug.^M ^M Normally, you should get a Rebol Error about out of memory, or stack overun, etc.^M ^M Whatever caused the crash should be detected by the interpreter itself, and reported as a Rebol Error!.}] [3886 "adrians" 5-Jul-2013/18:40:58 "The links to the attached images return a 404."] [3888 "WayneTsui" 13-Jul-2013/7:37:09 {There are three phenomena:9910, 1401 and disappear without no warnings.And these phenomena cannot be forecasted. ^M Also, the programme will run long to get them, maybe half an hour, or maybe more than one hour. So please be patient. :) ^M How to use the source code? just type do %spider.reb.^M ^M 9910: http://www.evernote.com/shard/s28/sh/737c80ac-9e2f-4bbe-ab83-76a7f306198f/d06a360ab1d04724ebb9147fcd2d43a7^M 1401: http://www.evernote.com/shard/s28/sh/4683e41e-1a9d-4f92-85bd-03202beddb77/1004f76919afeee359d321d9f953bd93^M sourcecode: http://www.evernote.com/shard/s28/sh/50bb6f91-453e-470c-869d-ae770d6e0bd3/537ffeacfbfe40999eb7ce1587a7dc4f}] [3889 "Graham" 13-Jul-2013/7:51:23 {We have discovered this #9910 error in other tcp programming so this needs to be fixed. But we need to replicate it easily.^M Are you able to provide a short piece of code that does this?}] [3890 "WayneTsui" 13-Jul-2013/8:14:46 "I can try it."] [3892 "WayneTsui" 14-Jul-2013/14:49:42 {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.^M Note that run 20 console prompts at the same time would cost a lot of memory. The test would take about one hour.^M ^M #1412: http://www.evernote.com/shard/s28/sh/a31ba2d7-9702-4356-851f-3587352340ae/20ba0a552803e535855525b255b6dac1^M #1405: http://www.evernote.com/shard/s28/sh/4e4fe6be-980a-4841-a6a6-c7ff075cbeb8/760b7d1e01884b3e18364fb5a8d19b64^M code: http://www.evernote.com/shard/s28/sh/1f5bee45-a2b7-404d-ac4b-59ce8cc1b864/09504e250d69b5174b4a2ac944bd3ca1^M }] [3894 "Graham" 15-Jul-2013/1:33:04 {Can you post your rebol code on github as a Gist or something?^M Download from here is not working.^M Thanks}] [3895 "WayneTsui" 15-Jul-2013/7:28:28 {I have put the code in this place: https://gist.github.com/WayneTsui/5997656}] [3896 "abolka" 15-Jul-2013/9:56:01 {For reference:^M - 1401 is "not enough memory"^M - 1405 is "problem with IO"^M - 1412 is "event queue overflow"^M - 9910 is caused by an invalid port! object}] [4028 "fork" 2-Oct-2013/11:59:39 {Possibly/probably resolved by: https://github.com/rebol/rebol/pull/158}] [4263 "Ladislav" 21-Feb-2014/9:18:42 "#2106 is related"]] history: [ [7-Mar-2014/4:31:06 "Ladislav" "Status " "Modified" "pending => built"] [21-Feb-2014/9:18:42 "Ladislav" "Comment : 0004263" "Added" "-"] [6-Oct-2013/11:17:16 "Ladislav" "Status " "Modified" "submitted => pending"] [6-Oct-2013/11:17:02 "Ladislav" "Category " "Modified" "Unspecified => Ports"] [6-Oct-2013/11:17:02 "Ladislav" "Description " "Modified" "-"] [6-Oct-2013/11:17:02 "Ladislav" "Summary " "Modified" "Program terminated abnormally. => Port crash"] [6-Oct-2013/11:15:04 "Ladislav" "Comment : 0003901" "Removed" "-"] [6-Oct-2013/11:13:31 "Ladislav" "Description " "Modified" "-"] [2-Oct-2013/11:59:39 "fork" "Comment : 0004028" "Added" "-"] [30-Jul-2013/6:01:30 "Ladislav" "Comment : 0003901" "Added" "-"] [15-Jul-2013/9:56:01 "abolka" "Comment : 0003896" "Added" "-"] [15-Jul-2013/7:28:28 "WayneTsui" "Comment : 0003895" "Added" "-"] [15-Jul-2013/1:33:04 "Graham" "Comment : 0003894" "Added" "-"] [14-Jul-2013/14:49:42 "WayneTsui" "Comment : 0003892" "Added" "-"] [14-Jul-2013/3:03:36 "WayneTsui" "Comment : 0003891" "Removed" "-"] [14-Jul-2013/3:03:30 "WayneTsui" "Comment : 0003891" "Modified" "-"] [13-Jul-2013/18:15:41 "WayneTsui" "Comment : 0003891" "Added" "-"] [13-Jul-2013/8:15:27 "WayneTsui" "Comment : 0003890" "Modified" "-"] [13-Jul-2013/8:14:46 "WayneTsui" "Comment : 0003890" "Added" "-"] [13-Jul-2013/7:51:23 "Graham" "Comment : 0003889" "Added" "-"] [13-Jul-2013/7:37:09 "WayneTsui" "Comment : 0003888" "Added" "-"] [5-Jul-2013/18:40:58 "adrians" "Comment : 0003886" "Added" "-"] [5-Jul-2013/16:12:35 "maxim" "Comment : 0003885" "Modified" "-"] [5-Jul-2013/16:11:55 "maxim" "Comment : 0003885" "Modified" "-"] [5-Jul-2013/16:10:43 "maxim" "Comment : 0003885" "Added" "-"] [5-Jul-2013/15:56:32 "WayneTsui" "Comment : 0003884" "Added" "-"] [11-Jun-2013/7:31:31 "WayneTsui" "Ticket " "Added" "-"] ] ]]