fork download
  1. cd $TMPDIR
  2. cat > segv.pl <<'_EOS_'
  3. require 'syscall.ph';
  4. open $fh,'<','/proc/self/maps';
  5. /^(\w+)-(\w+).*stack/ and ($b,$e)=(hex($1),hex($2)) while <$fh>;
  6. syscall &SYS_mprotect,$b,$e-$b,0;
  7. _EOS_
  8. perl segv.pl
Runtime error #stdin #stdout #stderr 0.03s 8144KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog.sh: line 8: 28778 Segmentation fault      perl segv.pl