Opened 12 years ago
Last modified 11 years ago
#910 closed defect
Failure with many arguments on amd64 — at Version 2
Reported by: | sjamaan | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 4.9.0 |
Component: | core libraries | Version: | 4.8.x |
Keywords: | Cc: | Christian Kellermann, Ivan Raikov | |
Estimated difficulty: |
Description (last modified by )
The following simple program, when compiled crashes on AMD64:
(define (make-me-a-list . args) args) (print (make-me-a-list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150))
The errors vary from bus errors to illegal instruction to segmentation fault. There's no C_do_apply
call to be found in the code, so perhaps it's "just" a gcc bug.
If you think this is bad enough to warrant a fix before 4.8.0 is out, feel free to reset the milestone.
Change History (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
This was on NetBSD/amd64 5.1, with GCC 4.1.3 20080704 (the one shipped with NetBSD 5.1.2) and both Chicken 4.7.0 and today's master, 4.7.5 (rev e061038)
It didn't crash on Linux/i386, and Christian tested on Linux/amd64 where it also didn't crash, which means it's likely a NetBSD-only bug or a bug in this particular GCC.