www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6562] New: writeln Sigsegv

http://d.puremagic.com/issues/show_bug.cgi?id=6562

           Summary: writeln Sigsegv
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: alienballance gmail.com



22:40:08 PDT ---
Following code crashes:
<code>
class T {
         property {
                float[3] scale() {
                        return [1, 2, 3];
                }
                void scale(float[3] value) {
                        float tx = 1;
                        writeln(tx, " ", tx, " ", tx,
                                tx, " ", tx, "
", tx,
                                tx, " ", tx, "
", tx);
                }
        }
}

void main() {
        auto t = new T;
        t.scale = [1, 2, 3];
}
</code>
<backtrace>




_D3std5stdio4File17LockingTextWriter12__T3putTAyaZ3putMFAyaZv
(this=0x7fffffffdcc0, writeme=0x000000000000000d00007fff3f800000)
    at /usr/include/d/std/stdio.d:1163

_D3std5range48__T3putTS3std5stdio4File17LockingTextWriterTAyaZ3putFKS3std5stdio4File17LockingTextWriterAyaZv
(e=0x000000000000000d00007fff3f800000, 
    r=0x7fffffffdcc0) at /usr/include/d/std/range.d:287

_D3std5stdio4File54__T5writeTfTAyaTfTAyaTfTfTAyaTfTAyaTfTfTAyaTfTAyaTfTaZ5writeMFfAyafAyaffAyafAyaffAyafAyafaZv
(this=0x651d08, _param_15=10 '\n', 
    _param_14=1, _param_13=0x000000000043af200000000000000001, _param_12=1,
_param_11=0x000000000043af200000000000000001, _param_10=1, _param_9=1, 
    _param_8=0x000000000043af200000000000000001, _param_7=1,
_param_6=0x000000000043af200000000000000001, _param_5=1, _param_4=1,
_param_3=0x000000000043af200000000000000001, 
    _param_2=1, _param_1=0x000000000000000d00007fff3f800000,
_param_0=-nan(0x7fe2c0)) at /usr/include/d/std/stdio.d:678

_D3std5stdio54__T7writelnTfTAyaTfTAyaTfTfTAyaTfTAyaTfTfTAyaTfTAyaTfZ7writelnFfAyafAyaffAyafAyaffAyafAyafZv
(_param_14=1, 
    _param_13=0x000000000043af200000000000000001, _param_12=1,
_param_11=0x000000000043af200000000000000001, _param_10=1, _param_9=1,
_param_8=0x000000000043af200000000000000001, 
    _param_7=1, _param_6=0x000000000043af200000000000000001, _param_5=1,
_param_4=1, _param_3=0x000000000043af200000000000000001,
_param_2=1.40129846e-45, 
    _param_1=0x000000000040294d00007fff3f800000, _param_0=1) at
/usr/include/d/std/stdio.d:1511
</backtrace>


Similar:
<code>
writeln(tx, tx, " ", tx, tx, " ", tx, " ", tx, tx, " ", tx, " ", tx);
</code>
<result>5.93185e-395.89226e-39 11 1 11 1 1</result>

Ps. i can't pick field 'version' 2.054 (above 2.041)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 26 2011