Next Five Minute Lightning Talk: Perl's syscall Function #15            

mmap (cont'd)

    [mct@ellesmere ~]$ perl mmap.pl
    Bad address
    [mct@ellesmere ~]$ strace -o out perl mmap.pl 
    ptrace: umoven: Input/output error
    ptrace: umoven: Input/output error
    Bad address

    [mct@ellesmere ~]$ tail -6 out
    fstat64(3, {st_mode=S_IFREG|0644, st_size=1161, ...}) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
    old_mmap()                              = -1 EFAULT (Bad address)
    write(2, "Bad address\n", 12)           = 12
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    _exit(14)                               = ?