1 /* This test used to cause an assertion in the address space manager */
3 __attribute__((noinline
))
4 static void inner(void)
6 /* Set other registers to apriori known values. */
10 "movl $0x103, %%ecx\n"
11 "movl $0x104, %%edx\n"
12 "movl $0x105, %%esi\n"
13 "movl $0x106, %%edi\n"
14 // not %ebp as mdb is then not able to reconstruct stack trace
15 "movl $0x108, %%esp\n"
16 "movl $0x1234, (%%eax)\n" // should cause SEGV here
17 "ud2" // should never get here
18 : // no output registers
19 : // no input registers
20 : "memory", "%eax", "%ebx", "%ecx", "%edx", "%esi", "%edi", "%esp");
23 __attribute__((noinline
))
24 static void outer(void)
29 int main(int argc
, const char *argv
[])