Type | Bug | Status | complete | Date | 22-Sep-2010 10:12 |
---|---|---|---|---|---|
Version | alpha 107 | Category | Native | Submitted by | Ladislav |
Platform | Windows | Severity | crash | Priority | normal |
Summary | Call of inline function crashes |
---|---|
Description |
The F1 function below should normally work, I guess, but instead, it causes an interpreter crash. The funny thing about it is, that this approach is successfully used in http://www.rebol.org/view-script.r?script=use-rule.r , where it never crashed. I made some notes on function initialization (which the code below is related to) in http://www.fm.tul.cz/~ladislav/rebol/evaluate.r as well as in the !Rebol3 group on Rebol3 AltMe. See also http://www.rebol.org/view-script.r?script=ifunc.r |
Example code |
f1: func [/local a] reduce [func ['word] [inner word] 'a] inner: func [word] [] f1 |
Assigned to | n/a | Fixed in | alpha 108 | Last Update | 2-Nov-2010 00:31 |
---|
Comments | |
---|---|
(0002573)
BrianH 12-Oct-2010 21:53 |
This also crashes:
>> #[function! [[][]]] It doesn't matter what is in the function code, just that it is being evaluated as a inline function value. |
(0002577)
Ladislav 13-Oct-2010 22:37 |
It does not have to be an inline function, it suffices if it is anonymous. |
(0002582)
BrianH 16-Oct-2010 18:52 |
>> do does [1]
== 1 Nope, it has to be inline to cause the crash. |
(0002589)
Ladislav 17-Oct-2010 20:16 |
Aha, indeed, you are right. I was confused by seeing natives etc. crashing, but they were inlined as well. |
(0002712)
Ladislav 31-Oct-2010 01:26 |
in the core-tests suite |
Date | User | Field | Action | Change |
---|---|---|---|---|
2-Nov-2010 00:31 | BrianH | Status | Modified | tested => complete |
31-Oct-2010 01:26 | Ladislav | Comment : 0002712 | Added | - |
20-Oct-2010 04:26 | BrianH | Status | Modified | built => tested |
18-Oct-2010 02:14 | Ladislav | Summary | Modified | Call of anonymous function crashes => Call of inline function crashes |
17-Oct-2010 20:16 | Ladislav | Comment : 0002589 | Added | - |
16-Oct-2010 19:10 | BrianH | Comment : 0002573 | Modified | - |
16-Oct-2010 18:54 | BrianH | Comment : 0002582 | Modified | - |
16-Oct-2010 18:52 | BrianH | Comment : 0002582 | Added | - |
13-Oct-2010 22:37 | Ladislav | Comment : 0002577 | Added | - |
13-Oct-2010 22:36 | Ladislav | Summary | Modified | Call of inline function value crashes => Call of anonymous function crashes |
12-Oct-2010 21:53 | BrianH | Comment : 0002573 | Added | - |
12-Oct-2010 21:51 | BrianH | Category | Modified | Unspecified => Native |
12-Oct-2010 21:51 | BrianH | Summary | Modified | Inner function call crash => Call of inline function value crashes |
23-Sep-2010 11:14 | Ladislav | Description | Modified | - |
22-Sep-2010 21:28 | carl | Status | Modified | reviewed => built |
22-Sep-2010 21:28 | carl | Fixedin | Modified | => alpha 108 |
22-Sep-2010 20:00 | carl | Status | Modified | submitted => reviewed |
22-Sep-2010 11:21 | Ladislav | Description | Modified | - |
22-Sep-2010 10:19 | Ladislav | Code | Modified | - |
22-Sep-2010 10:19 | Ladislav | Description | Modified | - |
22-Sep-2010 10:12 | Ladislav | Ticket | Added | - |