Skip to content

Crash with non-0 offset #1

@dkogan

Description

@dkogan

Hi. Currently a segfault happens on cleanup time when offset != 0. Trivial example to show this:

#!/usr/bin/perl
use strict;
use warnings;

use Sys::Mmap;
use autodie;

system("dd=/dev/zero of=/tmp/dat bs=1k count=1");

my $fd;
my $data;
open $fd, '<', "/tmp/dat";
mmap($data, 0, PROT_READ, MAP_SHARED, $fd, 256);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions