[Issue 11310] Alignment failure in test42.d

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 21 00:01:11 PDT 2013


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


safety0ff.bugz <safety0ff.bugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz at gmail.com


--- Comment #1 from safety0ff.bugz <safety0ff.bugz at gmail.com> 2013-10-21 00:01:04 PDT ---
I noticed importing random stuff (e.g. std.string, std.stdio, std.algorithm)
made it run without error, then I looked at the assembly code:

Disassembly of section .text._D6_113106test41FZv:

0000000000000000 <_D6_113106test41FZv>:
   0:    55                       push   %rbp
   1:    48 8b ec                 mov    %rsp,%rbp
   4:    f6 05 00 00 00 00 0f     testb  $0xf,0x0(%rip)
   b:    74 0a                    je     17 <_D6_113106test41FZv+0x17>
   d:    bf 11 00 00 00           mov    $0x11,%edi
  12:    e8 00 00 00 00           callq  17 <_D6_113106test41FZv+0x17>
  17:    5d                       pop    %rbp
  18:    c3                       retq   
  19:    0f 1f 80 00 00 00 00     nopl   0x0(%rax)

Looks like it is and'ing the instruction pointer with 0xf.

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


More information about the Digitalmars-d-bugs mailing list