Type | Bug | Status | reviewed | Date | 15-Oct-2010 16:28 |
---|---|---|---|---|---|
Version | alpha 99 | Category | Native | Submitted by | PeterWood |
Platform | Mac OSX | Severity | crash | Priority | urgent |
Summary | On OSX - Read current directory causes Segmentation Fault |
---|---|
Description |
Reading the current directory via %. causes a segmentation fault. It works if you use %./ |
Example code |
>> ls %. .DS_Store arabic-url.r base/ chinese-url.r extension/ fastest.r invalid-syntax.r latin1.txt launched.r launched.r~ launched2.r launcher.r lds-local.r lds-local.r~ list.r load-test.r macroman.txt make-unicode-word-list/ make-unicode-word-list.zip make-word-biggie.r mymodule.r mytest.r new-inv.r nop-test.r parsecomp.r parseeuro.r parsenot.r parseskip.r ping-client.r ping-client.r~ pong-server.r pong-server.r~ prot-jdbc.r ps.r rebol REBOLCoreTests/ reverse-str.r RUN.R segfault.r simple-script.r start-message.txt str.r test test-framework/ test.r test.r~ test.set test.txt testLaunch.r text.txt tmp.html top-level-test.r updates/ utf8.txt utf8nobom.txt windowslatin1.txt work/ >> read %. == Segmentation fault >> read %./ == [%.DS_Store %arabic-url.r %base/ %chinese-url.r %extension/ %fastest.r %invalid-syntax.r %latin1.txt %launched.r %launched.r~ %launched2.r %launcher.r %lds-local.r %lds-local.r~ %list.r %load-test.r %macroman.txt %make-unicode-word-list/ %make-unicode-word-list.zip %make-word-biggie.r %mymodule.r %mytest.r %new-inv.r %nop-test.r %parsecomp.r %parseeuro.r %parsenot.r %parseskip.r %ping-client.r %ping-client.r~ %pong-server.r %pong-server.r~ %prot-jdbc.r %ps.r %rebol %REBOLCoreTests/ %reverse-str.... |
Assigned to | n/a | Fixed in | - | Last Update | 25-Mar-2014 22:53 |
---|
Comments | |
---|---|
(0002578)
meijeru 15-Oct-2010 20:22 |
My copy of A107 for Windows does:
>> read %. ** Access error: cannot open: %. reason: -3 ** Where: read ** Near: read %. |
(0002590)
BrianH 17-Oct-2010 23:04 |
Both the Mac crash and Windows error are serious and should be fixed in the next release, if possible. |
(0002596)
abolka 18-Oct-2010 21:24 |
Same on Linux RT A107:
>> read %. == Segmentation fault |
(0002864)
Laurent 13-Nov-2010 01:05 |
Same segmentation fault error with my Ubuntu Linux on EeePC:
>> REBOL == make object! [ product: 'core version: 2.100.110.4.2 build: 2-Nov-2010/3:54:31 platform: [ Linux libc6-x86 ] license: {Alpha prototype version. For testing only. Use at your own risk. Do not distribute.} catalog: make object! [ datatypes: [end! unset! none! logic! integer! decimal! percent! money! char! pair! tuple! time! date! binary! string! file! email! url! tag! bitset! image! vector! block! paren! path! set-path! get-path! lit-path! map! datatype!... >> folder: read %. == Erreur de segmentation laurent@EeePC:~/REBOL$ ls -la total 1628 drwxr-xr-x 6 laurent laurent 4096 2010-11-13 00:32 . drwx------ 64 laurent laurent 16384 2010-11-12 23:51 .. drwxr-xr-x 15 laurent laurent 4096 2010-11-12 04:48 docs drwxr-xr-x 3 laurent laurent 4096 2010-11-12 00:41 outils drwxr-xr-x 5 laurent laurent 4096 2010-11-11 20:56 projets -rwxr-xr-x 1 laurent laurent 407792 2010-11-13 00:32 r3-a110-4-2 -rwxr-xr-x 1 laurent laurent 1201620 2010-01-06 21:22 rebol drwxr-xr-x 2 laurent laurent 4096 2010-11-12 07:22 tests laurent@EeePC:~/REBOL$ |
(0004387)
abolka 25-Mar-2014 22:53 |
Fix for the crash part submitted:
https://github.com/rebol/rebol/pull/214 With this fix merged, OS X and Linux will still fail with an "access error" similar to Win32. But they will no longer crash. |
Date | User | Field | Action | Change |
---|---|---|---|---|
25-Mar-2014 22:53 | abolka | Comment : 0004387 | Added | - |
13-Nov-2010 01:05 | Laurent | Comment : 0002864 | Added | - |
19-Oct-2010 19:46 | carl | Summary | Modified | Read current directory causes Segmentation Fault => On OSX - Read current directory causes Segmentation Fault |
18-Oct-2010 21:24 | abolka | Comment : 0002596 | Added | - |
17-Oct-2010 23:04 | BrianH | Comment : 0002590 | Added | - |
17-Oct-2010 23:03 | BrianH | Description | Modified | - |
17-Oct-2010 23:03 | BrianH | Code | Modified | - |
17-Oct-2010 23:03 | BrianH | Status | Modified | submitted => reviewed |
17-Oct-2010 23:03 | BrianH | Priority | Modified | normal => urgent |
15-Oct-2010 20:22 | meijeru | Comment : 0002578 | Added | - |
15-Oct-2010 16:28 | PeterWood | Ticket | Added | - |