Skip to content

Commit

Permalink
Merge pull request #19 from mkutlak/python3-sigsegv
Browse files Browse the repository at this point in the history
Add Python3 variant for segfault
  • Loading branch information
sorki committed Sep 13, 2018
2 parents 3e5677c + ec0c11b commit 675f376
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ libwilljavasegfault_la_CPPFLAGS = -I$(javahome)/include -I$(javahome)/include/li
libwillcrash_la_SOURCES = libwillcrash.c

bin_SCRIPTS = will_python3_raise \
will_python3_sigsegv \
will_ruby_raise \
will_java_segfault \
will_oops \
Expand Down Expand Up @@ -107,6 +108,7 @@ clean-local-check:

EXTRA_DIST = \
will_python3_raise \
will_python3_sigsegv \
will_ruby_raise \
will_crash.rb \
will_java_segfault.in \
Expand Down
4 changes: 4 additions & 0 deletions src/will_python3_sigsegv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env python3
print 'Will segfault python3.'
import ctypes
ctypes.string_at(1)
1 change: 1 addition & 0 deletions will-crash.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
%{_bindir}/will_python_raise
%{_bindir}/will_python_sigsegv
%endif
%{_bindir}/will_python3_sigsegv
%{_bindir}/will_python3_raise
%{_bindir}/will_ruby_raise
%{_bindir}/will_java_segfault
Expand Down

0 comments on commit 675f376

Please sign in to comment.