1 2010-11-06 Bruno Haible <bruno@clisp.org>
4 * configure.ac: Bump version number to 2.9.
5 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
7 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:2:0.
9 2010-11-06 Bruno Haible <bruno@clisp.org>
12 * autogen.sh: New option --skip-gnulib. Fetch gnulib if GNULIB_TOOL is
13 not set. Import m4/relocatable-lib.m4.
14 * configure.ac: Invoke gl_RELOCATABLE_NOP instead of
16 * m4/relocatable.m4: Remove file.
18 2010-11-06 Bruno Haible <bruno@clisp.org>
20 Modernize autoconf macro style.
21 * configure.ac: Surround all macro arguments in brackets.
22 * m4/getpagesize.m4: Likewise.
23 * m4/mmap-anon.m4: Likewise.
24 * m4/sigaltstack.m4: Likewise.
26 2010-11-06 Bruno Haible <bruno@clisp.org>
28 Don't list files in .gitignore that are absent after "make distclean".
29 * .gitignore: Complete the list of files that are created by "make" and
30 removed by "make distclean". But comment them out, since they belong in
31 .git/info/exclude. Also remove /autom4te.cache because "make distclean"
34 2010-10-25 Eric Blake <eblake@redhat.com>
36 Fix powerpc64-unknown-linux-gnu implementation.
37 * src/stackvma-rofile.c (struct rofile): Reduce size, to avoid
38 overflowing alternate stack when compiled under -O2.
39 * src/stackvma-mincore.c (mapped_range_start, mapped_range_end):
41 * NEWS: Document the fix.
43 2010-10-24 Eric Blake <eblake@redhat.com>
44 Bruno Haible <bruno@clisp.org>
46 Enhance the tests to detect overflow of the alternate stack.
47 * tests/altstack.h: New file.
48 * tests/Makefile.am (EXTRA_DIST): Add altstack.h.
49 * configure.ac: Invoke AC_TYPE_UINTPTR_T.
50 * tests/stackoverflow1.c: Include altstack.h.
51 (SIGSTKSZ): Remove definition.
52 (mystack): Remove definition.
53 (main): Invoke prepare_alternate_stack and
54 check_alternate_stack_no_overflow.
55 * tests/stackoverflow2.c: Likewise.
56 * tests/efault2.c: Likewise.
57 * tests/efault3.c: Likewise.
59 2010-10-21 Eric Blake <eblake@redhat.com>
61 * .gitignore: Ignore more files.
63 2010-09-23 Bruno Haible <bruno@clisp.org>
65 * m4/libtool.m4: Update from libtool-2.4.
66 * m4/ltversion.m4: Likewise.
67 * build-aux/ltmain.sh: Likewise.
69 2010-06-04 Bruno Haible <bruno@clisp.org>
71 * m4/libtool.m4: Update from libtool-2.2.8.
72 * m4/ltoptions.m4: Likewise.
73 * m4/ltversion.m4: Likewise.
74 * m4/lt~obsolete.m4: Likewise.
75 * build-aux/ltmain.sh: Likewise.
77 2010-04-06 Eric Blake <eblake@redhat.com>
79 * AUTHORS: Add myself.
81 2010-03-30 Bruno Haible <bruno@clisp.org>
83 * README.woe32: Update for Cygwin 1.7.x.
85 2010-02-18 Bruno Haible <bruno@clisp.org>
87 Fix 64-bit builds with --enable-shared on MacOS X.
88 * src/stackvma-mach.c (sigsegv_get_vma): On 64-bit MacOS X, use
89 vm_region_64 instead of vm_region.
90 * NEWS: Mention the fix.
91 Reported by Rudá Moura <ruda@rudix.org>.
93 2010-01-31 Bruno Haible <bruno@clisp.org>
95 * README: Add more homepage links. Add bug report address.
97 2010-01-07 Bruno Haible <bruno@clisp.org>
99 Improve support for OpenBSD.
100 * src/fault-openbsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Define
101 differently in 64-bit mode.
102 * src/fault-openbsd-alpha.h: New file.
103 * src/fault-openbsd-arm.h: New file.
104 * src/fault-openbsd-hppa.h: New file.
105 * src/fault-openbsd-m68k.h: New file.
106 * src/fault-openbsd-m88k.h: New file.
107 * src/fault-openbsd-mips.h: New file.
108 * src/fault-openbsd-powerpc.h: New file.
109 * src/fault-openbsd-sh.h: New file.
110 * src/fault-openbsd-sparc.h: New file.
111 * src/fault-openbsd-vax.h: New file.
112 * src/Makefile.am (noinst_HEADERS): Add the new files.
113 * configure.ac (CFG_FAULT): Use these files on OpenBSD.
114 Reported by Paul Irofti <bulibuta@sdf.lonestar.org>.
116 2009-12-11 Bruno Haible <bruno@clisp.org>
118 * Version 2.8 released.
120 2009-12-11 Bruno Haible <bruno@clisp.org>
122 * configure.ac: Bump version number to 2.8.
123 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
125 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:1:0.
127 2009-12-11 Bruno Haible <bruno@clisp.org>
129 Remove configuration option --enable-EFAULT.
130 * configure.ac (enable_EFAULT): Set to yes on Cygwin, to no otherwise.
131 * README, NEWS: Don't mention --enable-EFAULT.
132 Reported by Eric Blake.
134 2009-12-11 Bruno Haible <bruno@clisp.org>
137 * tests/cygwin1.c: New file, based on code by Eric Blake.
138 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add it.
139 * configure.ac (CYGWIN): New conditional.
141 2009-11-21 Eric Blake <ebb9@byu.net>
142 Bruno Haible <bruno@clisp.org>
144 New configuration option --enable-EFAULT.
145 * configure.ac: Accept option --enable-EFAULT. Set and define
146 ENABLE_EFAULT. Invoke SV_SYSCALLS_EFAULT.
147 For Cygwin, use the CFG_FAULT that was already determined, or
148 fault-cygwin-old.h if none. In the latter case, define
149 OLD_CYGWIN_WORKAROUND.
150 * m4/efault.m4: New file.
151 * src/handler-win32.c [CYGWIN && ENABLE_EFAULT]: Include
153 (MIXING_UNIX_SIGSEGV_AND_WIN32_STACKOVERFLOW_HANDLING): New macro.
154 (last_seen_fault_address): New variable.
155 (main_exception_filter): Store the fault address for the Unix signal
157 (sigsegv_install_handler): Redefine.
158 (sigsegv_deinstall_handler, sigsegv_leave_handler): Don't define.
159 * src/handler-unix.c (stackoverflow_install_handler,
160 stackoverflow_deinstall_handler): Don't define if
161 MIXING_UNIX_SIGSEGV_AND_WIN32_STACKOVERFLOW_HANDLING is set.
162 * src/fault-cygwin-old.h: New file.
163 * src/Makefile.am (noinst_HEADERS): Add it.
164 * tests/efault1.c: New file.
165 * tests/efault2.c: New file.
166 * tests/efault3.c: New file.
167 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add efault1, efault2,
169 * README, NEWS: Mention the new option.
171 2009-11-21 Bruno Haible <bruno@clisp.org>
173 Support for Cygwin 1.7.
174 * configure.ac: For Cygwin and mingw, choose FAULT_CONTEXT in a way
175 that is consistent with CFD_HANDLER.
176 Reported by Eric Blake <ebb9@byu.net>
178 2009-11-21 Bruno Haible <bruno@clisp.org>
180 * configure.ac: Add comments and structure.
182 2009-11-21 Bruno Haible <bruno@clisp.org>
184 Reduce size of configure.ac.
185 * m4/stack-direction.m4: New file, extracted from configure.ac.
186 * configure.ac: Simply invoke SV_STACK_DIRECTION.
188 2009-11-21 Eric Blake <ebb9@byu.net>
189 Bruno Haible <bruno@clisp.org>
192 * src/handler-win32.c (debug_get_except_list): Mark as unused.
194 2009-11-21 Bruno Haible <bruno@clisp.org>
196 Fix compilation error on newer versions of HP-UX 11.31 on ia64.
197 * configure.ac: Set sv_cv_have_stack_overflow_recovery to 'no' if it is
198 not possible to longjmp out of the signal handler. On HP-UX 11.31 on
199 ia64 it is only possible with siglongjmp (as far as we know).
200 Reported by Bill Glessner <bill.glessner@cwu.edu>.
202 * configure.ac: Move determination of CFG_LEAVE before the
203 determination of sv_cv_have_stack_overflow_recovery.
205 2009-10-17 Bruno Haible <bruno@clisp.org>
207 * README: Mention danger of longjmping back to a central point.
208 Reported by Angelo Borsotti <angelo.borsotti@gmail.com>.
210 2009-09-22 Paolo Bonzini <bonzini@gnu.org>
212 Move more declarations of alternate stacks to global scope.
213 * m4/sigaltstack-longjmp.m4: Make mystack global.
214 * m4/sigaltstack-siglongjmp.m4: Make mystack global.
215 * m4/sigaltstack.m4: Make mystack global.
217 2009-09-22 Paolo Bonzini <bonzini@gnu.org>
219 Fix crash of stackoverflow2 on x86_64-linux.
220 * tests/stackoverflow1.c: Make mystack global.
221 * tests/stackoverflow2.c: Likewise.
222 * src/sigsegv.h.in: Warn against placing the alternate stack
225 2009-08-16 Bruno Haible <bruno@clisp.org>
227 Avoid a gcc warning on Solaris.
228 * src/stackvma-procfs.c: Include <string.h>.
230 2009-08-14 Bruno Haible <bruno@clisp.org>
232 Remove config.guess, config.sub from from version control.
233 * autogen.sh: Fetch config.guess, config.sub.
234 * build-aux/config.guess: Remove file.
235 * build-aux/config.sub: Remove file.
237 2009-08-14 Bruno Haible <bruno@clisp.org>
239 Remove autogenerated files from version control.
240 * autogen.sh: New file.
241 * aclocal.m4: Remove file.
242 * configure: Remove file.
243 * config.h.in: Remove file.
244 * Makefile.in: Remove file.
245 * src/Makefile.in: Remove file.
246 * tests/Makefile.in: Remove file.
247 * build-aux/install-sh: Remove file.
248 * build-aux/missing: Remove file.
249 * config.h.msvc: Remove file.
250 * src/sigsegv.h.msvc: Remove file.
252 2009-08-14 Bruno Haible <bruno@clisp.org>
254 Override automake's tar command used for creating distributions.
255 * configure.ac (am__tar): New variable.
257 2009-08-09 Bruno Haible <bruno@clisp.org>
259 * Version 2.7 released.
261 2009-08-09 Bruno Haible <bruno@clisp.org>
263 * configure.ac: Bump version number to 2.7.
264 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
265 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:0:0.
267 2009-08-09 Bruno Haible <bruno@clisp.org>
269 * src/fault-linux-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Fix mistake.
271 2009-08-09 Bruno Haible <bruno@clisp.org>
273 Avoid warnings on glibc systems.
274 * src/stackvma-mincore.c (pageinfo_t): New type.
275 (is_mapped, mapped_range_start, mapped_range_end): Use it.
277 2009-08-01 Bruno Haible <bruno@clisp.org>
279 Prefer the POSIX way over the traditional one, on Linux.
280 * configure.ac: Use the traditional Linux way only if the POSIX way
282 * NEWS: Mention the change.
284 2009-08-01 Bruno Haible <bruno@clisp.org>
286 Add knowledge where to find the stack pointer on Linux platforms.
287 * src/fault-linux-alpha.h: New file.
288 * src/fault-linux-arm.h: New file.
289 * src/fault-linux-cris.h: New file.
290 * src/fault-linux-hppa.h: New file.
291 * src/fault-linux-i386.h: New file.
292 * src/fault-linux-ia64.h: New file.
293 * src/fault-linux-m68k.h: New file.
294 * src/fault-linux-mips.h: New file.
295 * src/fault-linux-powerpc.h: New file.
296 * src/fault-linux-s390.h: New file.
297 * src/fault-linux-sh.h: New file.
298 * src/fault-linux-sparc.h: New file.
299 * src/Makefile.am (noinst_HEADERS): Add them.
300 * src/handler-unix.c (_GNU_SOURCE): Define.
301 * src/fault-linux-hppa-old.h: Add alternative code, commented.
302 * src/fault-linux-sparc-old.h: Likewise.
303 * configure.ac (CFG_FAULT): Use these files on Linux when the POSIX way
304 of catching page faults works.
306 2009-08-01 Bruno Haible <bruno@clisp.org>
308 * src/fault-linux-i386-old.h: Renamed from src/fault-linux-i386.h.
309 * src/Makefile.am (noinst_HEADERS): Update.
310 * configure.ac: Update.
312 * src/fault-linux-i386-oldold.h: Renamed from
313 src/fault-linux-i386-old.h.
314 * src/Makefile.am (noinst_HEADERS): Update.
315 * configure.ac: Update.
317 * src/fault-linux-alpha-old.h: Renamed from src/fault-linux-alpha.h.
318 * src/fault-linux-arm-old.h: Renamed from src/fault-linux-arm.h.
319 * src/fault-linux-cris-old.h: Renamed from src/fault-linux-cris.h.
320 * src/fault-linux-hppa-old.h: Renamed from src/fault-linux-hppa.h.
321 * src/fault-linux-ia64-old.h: Renamed from src/fault-linux-ia64.h.
322 * src/fault-linux-m68k-old.c: Renamed from src/fault-linux-m68k.c.
323 * src/fault-linux-m68k-old.h: Renamed from src/fault-linux-m68k.h.
325 * src/fault-linux-mips-old.h: Renamed from src/fault-linux-mips.h.
326 * src/fault-linux-powerpc-old.h: Renamed from src/fault-linux-powerpc.h.
327 * src/fault-linux-s390-old.h: Renamed from src/fault-linux-s390.h.
328 * src/fault-linux-sh-old.h: Renamed from src/fault-linux-sh.h.
329 * src/fault-linux-sparc-old.h: Renamed from src/fault-linux-sparc.h.
330 * src/fault-linux-x86_64-old.h: Renamed from src/fault-linux-x86_64.h.
331 * src/Makefile.am (noinst_HEADERS): Update.
332 * configure.ac: Update.
334 2009-06-23 Bruno Haible <bruno@clisp.org>
336 * Makefile.am (check-next): No longer ask for copies of config.log.
338 2009-06-23 Bruno Haible <bruno@clisp.org>
340 Improve support for MirBSD 10.
341 * configure.ac (CFG_FAULT, FAULT_CONTEXT): Treat MirBSD/i386 like
344 2009-06-23 Bruno Haible <bruno@clisp.org>
346 Add support for platforms that follow POSIX:2008, not POSIX:2001.
347 * configure.ac (POSIX): Add MirBSD to known list.
348 (CFG_FAULT, FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE): Define appropriately
349 when <ucontext.h> does not exist.
350 * src/fault-posix-ucontext.h: Renamed from src/fault-posix.h.
351 * src/fault-posix.h: New file.
352 * src/fault-aix5.h: Update.
353 * src/fault-hpux-hppa.h: Update.
354 * src/fault-netbsd.h: Update.
355 * src/fault-solaris.h: Update.
356 * src/Makefile.am (noinst_HEADERS): Add fault-posix-ucontext.h.
358 2009-06-23 Bruno Haible <bruno@clisp.org>
360 * configure.ac (FAULT_CONTEXT_INCLUDE): Reinstall the AC_SUBST
363 2009-05-21 Bruno Haible <bruno@clisp.org>
365 * configure.ac (FAULT_CONTEXT_INCLUDE): Don't substitute into
368 2009-05-21 Bruno Haible <bruno@clisp.org>
370 * tests/Makefile.am (AUTOMAKE_OPTIONS): Assume automake >= 1.11.
371 Use color-tests option.
373 2009-01-14 Bruno Haible <bruno@clisp.org>
375 * configure.ac: More consistent m4 quoting.
377 2008-09-27 Bruno Haible <bruno@clisp.org>
379 * build-aux/config.sub: Update to GNU version 2008-09-08.
381 2008-09-23 Eric Blake <ebb9@byu.net>
383 Use 2 * SIGSTKSZ consistently in configuration checks.
384 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Work around IRIX sigaltstack bug.
385 * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
386 * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
389 2008-09-21 Bruno Haible <bruno@clisp.org>
391 * src/Makefile.am (LIBSIGSEGV_VERSION_INFO): New variable.
392 (libsigsegv_la_LDFLAGS): Pass -rpath and -version-info option.
393 Reported by Thomas Klausner <tk@giga.or.at>.
395 2008-09-21 Eric Blake <ebb9@byu.net>
396 Bruno Haible <bruno@clisp.org>
398 Detect and work around bug in Irix 5.3 sigaltstack.
399 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Test for broken stack_t direction
401 * src/handler-unix.c (stackoverflow_install_handler): Adjust stack
403 * tests/stackoverflow1.c (stack_lower_bound, stack_upper_bound): New
405 (stackoverflow_handler): Use them to expose IRIX bug.
406 (main): Initialize them.
408 2008-09-07 Bruno Haible <bruno@clisp.org>
410 * m4/libtool.m4: Update from libtool-2.2.6.
411 * m4/ltoptions.m4: Likewise.
412 * m4/ltsugar.m4: Likewise.
413 * m4/ltversion.m4: Likewise.
414 * build-aux/ltmain.sh: Likewise.
416 2008-08-25 Bruno Haible <bruno@clisp.org>
418 * Version 2.6 released.
420 2008-08-24 Bruno Haible <bruno@clisp.org>
422 * configure.ac: Treat Dragonfly BSD platforms like FreeBSD.
423 Reported by Thomas Klausner <tk@giga.or.at>.
425 2008-08-24 Bruno Haible <bruno@clisp.org>
427 * src/stackvma-mincore.c (mincore_is_near_this): Improve logic. Needed
428 for reliable NULL pointer access classification as SIGSEGV on AIX 4.3.
430 2008-08-24 Bruno Haible <bruno@clisp.org>
432 * m4/sigaltstack.m4: Change 'volatile int' return type to 'int'. Needed
434 * m4/sigaltstack-longjmp.m4: Likewise.
435 * m4/sigaltstack-siglongjmp.m4: Likewise.
436 * tests/stackoverflow1.c (recurse): Likewise.
437 * tests/stackoverflow2.c (recurse): Likewise.
439 2008-08-24 Bruno Haible <bruno@clisp.org>
441 * tests/sigsegv1.c: Include <config.h>.
442 * tests/sigsegv2.c: Likewise.
443 * tests/sigsegv3.c: Include <config.h> before all other headers.
444 * tests/stackoverflow1.c: Likewise.
445 * tests/stackoverflow2.c: Likewise.
447 2008-08-24 Bruno Haible <bruno@clisp.org>
449 Fix the sigsegv3 test on MacOS X.
450 * src/sigsegv.h.in (sigsegv_leave_handler): Take 4 arguments.
451 * NEWS: Mention the change.
452 * src/handler-macos.c (our_exception_thread, signalled_thread): New
454 (catch_exception_raise): Set signalled_thread during the user_handler
456 (mach_exception_thread): Initialize our_exception_thread.
457 (sigsegv_leave_handler): Take 4 arguments. When called from within
458 the exception thread, let the signalled thread do a hyperjump.
459 * src/handler-unix.c (sigsegv_leave_handler): Take 4 arguments.
460 * src/handler-win32.c (sigsegv_leave_handler): Likewise.
461 * src/handler-none.c (sigsegv_leave_handler): Likewise.
462 * src/machfault-macos.h (SIGSEGV_INTEGER_ARGUMENT_1,
463 SIGSEGV_INTEGER_ARGUMENT_2, SIGSEGV_INTEGER_ARGUMENT_3,
464 SIGSEGV_FRAME_POINTER): New macros.
465 * tests/sigsegv3.c (handler_continuation): New function.
466 (handler): Update to new API.
467 * tests/stackoverflow1.c (stackoverflow_handler_continuation): New
469 (stackoverflow_handler): Update to new API.
470 * tests/stackoverflow2.c (stackoverflow_handler_continuation): New
472 (stackoverflow_handler, sigsegv_handler): Update to new API.
474 2008-08-24 Bruno Haible <bruno@clisp.org>
476 Test the use of sigsegv_leave_handler from within a SIGSEGV handler.
477 * tests/sigsegv3.c: New file.
478 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add sigsegv3.
480 2008-08-23 Eric Blake <ebb9@byu.net>
482 * src/Makefile.am (noinst_HEADERS): Remove machfault-macos-powerpc.h
483 and machfault-macos-i386.h. Add machfault-macos.h.
485 2008-08-17 Bruno Haible <bruno@clisp.org>
487 Allow building universal binaries on MacOS X.
488 * src/machfault-macos.h: New file, combining
489 src/machfault-macos-powerpc.h and src/machfault-macos-i386.h.
490 * src/machfault-macos-powerpc.h: Remove file.
491 * src/machfault-macos-i386.h: Remove file.
492 * configure.ac (CFG_MACHFAULT): Set to machfault-macos.h.
493 (FAULT_CONTEXT_INCLUDE) [MacOSX]: Set to #ifdefs for all four possible
496 2008-07-20 Bruno Haible <bruno@clisp.org>
498 Make sigsegv_get_vma async-safe.
499 * src/sigsegv.h.in (sigsegv_handler_t, stackoverflow_handler_t):
500 Mention async-safety constraints.
501 + src/stackvma-rofile.c: New file.
502 * src/stackvma-freebsd.c: Include stackvma-rofile.c.
503 (sigsegv_get_vma): Use struct rofile instead of FILE.
504 * src/stackvma-linux.c: Include stackvma-rofile.c.
505 (sigsegv_get_vma): Use struct rofile instead of FILE.
506 * src/stackvma-procfs.c: Include <sys/mman.h> instead of <stdlib.h> and
508 (sigsegv_get_vma): Avoid using sprintf. Ensure pagesize is initialized.
509 Use mmap/munmap instead of malloc/free.
510 * src/Makefile.am (EXTRA_DIST): Add stackvma-rofile.c.
511 Reported by Eric Blake <ebb9@byu.net>.
513 2008-07-20 Bruno Haible <bruno@clisp.org>
515 * src/handler-unix.c (sigsegv_handler): Preserve errno.
517 2008-07-20 Eric Blake <ebb9@byu.net>
519 * src/stackvma-mincore.c (mincore_is_near_this): Fix logic.
521 2008-07-20 Bruno Haible <bruno@clisp.org>
523 * tests/stackoverflow2.c (main): Test also a NULL pointer access.
524 Reported by Eric Blake <ebb9@byu.net>.
526 2008-06-23 Bruno Haible <bruno@clisp.org>
528 * build-aux/config.guess: Update to GNU version 2008-06-16.
529 * build-aux/config.sub: Likewise.
531 2008-05-31 Bruno Haible <bruno@clisp.org>
533 Make cross-compile from MacOS X 10.5 to MacOS X 10.4 work.
534 * src/handler-macos.c (MacOS_X_10_5_HEADERS): New macro.
535 * src/machfault-macos-i386.h: Use it.
536 * src/machfault-macos-powerpc.h: Likewise.
537 Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
539 2008-05-31 Bruno Haible <bruno@clisp.org>
541 * m4/mmap-anon.m4 (SV_MMAP_ANON): Add known cross-compile results for
543 Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
545 2008-05-27 Bruno Haible <bruno@clisp.org>
547 * configure.ac: Require at least autoconf 2.62. Merge
548 FAULT_CONTEXT_INCLUDE2 variable into FAULT_CONTEXT_INCLUDE.
549 * src/sigsegv.h.in: Remove FAULT_CONTEXT_INCLUDE2 substitution.
550 * src/Makefile.am (sigsegv.h.msvc): Update.
552 2008-05-27 Bruno Haible <bruno@clisp.org>
554 * configure.ac: Bump version number to 2.6.
555 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
557 2008-05-27 Bruno Haible <bruno@clisp.org>
559 Support for 64-bit mode on MacOS X 10.5.
560 * src/handler-macos.c (catch_exception_raise): Align the stack pointer
561 also on x86_64. Needed for MMX instructions.
562 * src/machfault-macos-i386.h: Choose among 64-bit and 32-bit flavours.
563 Use new names for the 32-bit flavour when possible.
564 * src/machfault-macos-powerpc.h: Choose among 64-bit and 32-bit
566 * configure.ac (FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE2): Choose
567 right flavour (ppc_thread_state_t/ppc_thread_state64_t or
568 i386_thread_state_t/x86_thread_state32_t/x86_thread_state64_t) at
571 2008-05-18 Bruno Haible <bruno@clisp.org>
573 * m4/libtool.m4: Update from libtool-2.2.4.
574 * m4/ltoptions.m4: Likewise.
575 * m4/ltversion.m4: Likewise.
576 * m4/lt~obsolete.m4: Likewise.
577 * build-aux/ltmain.sh: Likewise.
579 2008-04-06 Bruno Haible <bruno@clisp.org>
581 * m4/libtool.m4: Update from libtool-2.2.2.
582 * m4/ltoptions.m4: New file, from libtool-2.2.2.
583 * m4/ltsugar.m4: New file, from libtool-2.2.2.
584 * m4/ltversion.m4: New file, from libtool-2.2.2.
585 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
586 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
587 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
589 2007-11-16 Bruno Haible <bruno@clisp.org>
591 * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Use sc_rsp
592 also on x86_64-freebsd platform.
593 Reported by Dmitri Hrapof <hrapof@common-lisp.ru> and
594 Petr Salinger <Petr.Salinger@seznam.cz>.
596 2007-11-15 Bruno Haible <bruno@clisp.org>
598 * configure.ac (CFG_SIGNALS, CFG_FAULT): Port to i586-kfreebsd-gnu
599 and x86_64-kfreebsd-gnu.
600 * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Likewise.
601 Based on patch by Petr Salinger <Petr.Salinger@seznam.cz>.
603 2007-11-11 Bruno Haible <bruno@clisp.org>
605 * Version 2.5 released.
607 2007-11-11 Bruno Haible <bruno@clisp.org>
609 * configure.ac: Bump version number to 2.5.
610 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
612 2007-10-28 Bruno Haible <bruno@clisp.org>
614 * src/handler-macos.c (catch_exception_raise): Align the new stack
615 pointer on a 16-byte boundary.
616 * src/handler-win32.c (main_exception_filter): Correct alignment:
617 %esp must be aligned to == -4 mod 16 upon function entry.
619 2007-10-28 Bruno Haible <bruno@clisp.org>
621 * src/sigsegv.h.in (stackoverflow_install_handler): Avoid comment
623 Reported by Chris Willmore <willmc@rpi.edu>.
625 2007-10-28 Bruno Haible <bruno@clisp.org>
627 * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS,
628 SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Add __DARWIN_UNIX03
630 * src/machfault-macos-i386.h (SIGSEGV_FAULT_ADDRESS,
631 SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Likewise.
632 * src/fault-macosdarwin7-powerpc.h (SIGSEGV_FAULT_STACKPOINTER):
634 * src/fault-macosdarwin7-powerpc.c (get_fault_addr): Likewise.
635 Reported by Chris Willmore <willmc@rpi.edu>.
637 2007-01-12 Bruno Haible <bruno@clisp.org>
639 * Makefile.am (check-next): Don't ask for reports from x86_64-*-linux*
642 2006-07-14 Bruno Haible <bruno@clisp.org>
644 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Use SIGSTKSZ instead of
646 * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
647 * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
649 * tests/stackoverflow1.c (main): Likewise.
650 * tests/stackoverflow2.c (main): Likewise.
651 * src/sigsegv.h.in (stackoverflow_install_handler): Update
652 recommendation for extra_stack_size.
654 Reported by Peter Van Eynde <pvaneynd@users.sourceforge.net>.
656 2006-06-23 Bruno Haible <bruno@clisp.org>
658 * Version 2.4 released.
660 2006-06-23 Bruno Haible <bruno@clisp.org>
662 * configure.ac: Bump version number to 2.4.
663 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
665 2006-06-17 Bruno Haible <bruno@clisp.org>
667 * src/Makefile.am (noinst_HEADERS): Add fault-netbsd.h.
669 2006-06-17 Bruno Haible <bruno@clisp.org>
671 * m4/sigaltstack.m4: Insert 'volatile' and pass a pointer, to defeat
673 * m4/sigaltstack-longjmp.m4: Likewise.
674 * m4/sigaltstack-siglongjmp.m4: Likewise.
676 2006-06-17 Bruno Haible <bruno@clisp.org>
678 * tests/stackoverflow1.c (recurse): Remove useless cast.
679 * tests/stackoverflow2.c (recurse): Likewise.
681 2006-06-17 Bruno Haible <bruno@clisp.org>
683 * src/stackvma-freebsd.c (sigsegv_get_vma): Test whether mincore()
684 works as expected before using it.
686 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
688 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
689 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
691 2006-06-13 Bruno Haible <bruno@clisp.org>
693 Make NetBSD/i386 stack overflow detection work even without mincore.
694 * src/fault-netbsd.h: New file.
695 * configure.ac (CFG_FAULT): Choose it when appropriate.
697 2006-05-16 Bruno Haible <bruno@clisp.org>
699 Don't allow the compiler to reorder instructions in the tests.
700 * tests/sigsegv1.c (crashes): Use volatile in pointer access.
701 * tests/sigsegv2.c (main): Likewise.
702 * tests/stackoverflow2.c (main): Likewise.
704 2006-05-14 Bruno Haible <bruno@clisp.org>
706 Exploit the mincore() system call where available.
707 * src/stackvma-mincore.c: New file.
708 * src/Makefile.am (EXTRA_DIST): Add it.
709 * src/stackvma.h: Add double-inclusion guard.
710 * src/stackvma-freebsd.c: If mincore() is available, include also
712 (sigsegv_get_vma): If mincore() is available, use it as fallback.
713 * src/stackvma-linux.c: If mincore() is available, include also
715 (sigsegv_get_vma): If mincore() is available, use it as fallback.
716 * src/stackvma-procfs.c: If mincore() is available, include also
718 (sigsegv_get_vma): If mincore() is available, use it as fallback.
719 * configure.ac: Test for mincore.
720 (CFG_STACKVMA): Set to stackvma-mincore.c if nothing else is available.
722 2006-05-14 Bruno Haible <bruno@clisp.org>
724 * src/stackvma-simple.c: New file, extracted from handler-unix.c.
725 * src/Makefile.am (EXTRA_DIST): Add it.
726 * src/stackvma-beos.c: Include stackvma-simple.c.
727 (sigsegv_get_vma): Fill the vma's is_near_this field.
728 * src/stackvma-freebsd.c: Include stackvma-simple.c.
729 (sigsegv_get_vma): Fill the vma's is_near_this field.
730 * src/stackvma-linux.c: Include stackvma-simple.c.
731 (sigsegv_get_vma): Fill the vma's is_near_this field.
732 * src/stackvma-mach.c: Include stackvma-simple.c.
733 (sigsegv_get_vma): Fill the vma's is_near_this field.
734 * src/stackvma-procfs.c: Include stackvma-simple.c.
735 (sigsegv_get_vma): Fill the vma's is_near_this field.
736 * src/stackvma.h (vma_struct): Add is_near_this field.
737 * src/handler-unix.c (sigsegv_handler): Use the vma's is_near_this
740 2006-04-28 Bruno Haible <bruno@clisp.org>
742 * Version 2.3 released.
744 2006-04-28 Bruno Haible <bruno@clisp.org>
746 * configure.ac: Bump version number to 2.3.
747 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
749 * build-aux/config.guess, build-aux/config.sub: Update to GNU version
752 * build-aux/install-sh: Update from automake-1.9.6.
753 * build-aux/missing: Likewise.
755 * build-aux/ltmain.sh: Update from libtool-1.5.22.
756 * m4/libtool.m4: Likewise.
758 2006-04-28 Bruno Haible <bruno@clisp.org>
760 * build-aux: Renamed from autoconf.
761 * configure.ac (AC_CONFIG_AUX_DIR): Set to build-aux.
763 2006-04-22 Bruno Haible <bruno@clisp.org>
765 * configure.ac: Renamed from configure.in.
767 2006-04-21 Bruno Haible <bruno@clisp.org>
769 * src/machfault-macos-i386.h: Rewritten for Darwin 8.6.1.
770 * configure.in: Change FAULT_CONTEXT for i?86-darwin.
772 2005-06-21 Paolo Bonzini <bonzini@gnu.org>
774 * configure.in: For handler-macos.c, include mach/thread_status.h.
775 * configure: Regenerate.
777 2005-06-21 Paolo Bonzini <bonzini@gnu.org>
779 * tests/stackoverflow1.c (recurse): Make more resilient to compiler
782 * tests/stackoverflow2.c: Likewise.
784 2005-05-24 Bruno Haible <bruno@clisp.org>
786 * src/handler-win32.c (main_exception_filter): Copy CONTEXT structure
787 to safe area on the stack.
788 Based on patch by Doug Currie <e@flavors.com>.
790 * src/handler-win32.c (main_exception_filter): Swap arguments passed
791 to stack_overflow_handler.
792 Patch by Doug Currie <e@flavors.com>.
794 * src/handler-win32.c (main_exception_filter): Align %esp on a 16-byte
797 2005-03-02 Bruno Haible <bruno@clisp.org>
799 * Version 2.2 released.
801 2005-03-02 Bruno Haible <bruno@clisp.org>
803 * autoconf/config.guess: Update.
804 * autoconf/config.sub: Update.
805 * autoconf/missing: Update from automake-1.9.5.
807 * m4/libtool.m4: Upgrade to libtool-1.5.14 with gettext modifications.
808 * autoconf/ltmain.sh: Likewise.
810 2005-03-02 Bruno Haible <bruno@clisp.org>
812 * src/fault-aix5.h: New file.
813 * src/fault-aix5-powerpc.h: New file.
814 * src/Makefile.am (noinst_HEADERS): Add them.
815 * configure.in: Choose them when the POSIX test succeeds on AIX.
817 * src/fault-aix3-powerpc.h: Renamed from src/fault-aix-powerpc.h.
818 * src/fault-aix3.h: Renamed from src/fault-aix.h.
819 * src/Makefile.am (noinst_HEADERS): Update.
820 * configure.in: Update. When cross-compiling, assume the AIX test
821 succeeds only on AIX 3 and AIX 4.
823 2005-03-01 Bruno Haible <bruno@clisp.org>
825 * configure.in: Fix test of CFG_MACHFAULT.
827 2005-02-27 Bruno Haible <bruno@clisp.org>
829 * configure.in: Skip tests that are not needed on MacOS X >= 10.2.
830 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Don't perform the test on
833 2005-02-18 Bruno Haible <bruno@clisp.org>
835 * tests/sigsegv1.c (handler_called): Declare as volatile.
836 * tests/sigsegv2.c (logcount, logdata): Likewise.
837 * tests/stackoverflow1.c (pass): Likewise.
838 * tests/stackoverflow2.c (pass): Likewise.
840 2005-01-29 Bruno Haible <bruno@clisp.org>
842 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): New macro.
843 (libsigsegv_version): New declaration.
844 * src/version.c: New file.
845 * src/Makefile.am (libsigsegv_la_SOURCES): Add version.c.
846 * Makefile.msvc (OBJECTS): Add version.obj.
847 (version.obj): New rule.
848 Suggested by Sam Steingold.
850 2004-08-25 Bruno Haible <bruno@clisp.org>
852 * m4/libtool.m4: Upgrade to libtool-1.5.6.
853 * autoconf/ltmain.sh: Upgrade to libtool-1.5.6.
855 2004-08-18 Bruno Haible <bruno@clisp.org>
857 * configure.in: Bump version number to 2.2.
859 2004-08-17 Bruno Haible <bruno@clisp.org>
861 Finish the Mach-based MacOS X support.
862 * src/handler-macos.c: Don't include mach/vm_map.h.
863 Include machfault.h instead of fault.h.
864 (save_exc_state): Remove variable.
865 (save_thread_state): New variable.
866 (terminating_handler): New function.
867 (altstack_handler): Pass the save_thread_state, not the save_exc_state,
868 to the user's handler.
869 (catch_exception_raise): Make it work also for platforms which don't
870 have an exc_state type. Call SIGSEGV_FAULT_ADDRESS with 2 arguments.
871 Don't clobber the exc_state; instead set the thread's program counter
872 to terminating_handler or altstack_handler, depending on the case.
873 Return KERN_SUCCESS at the end.
874 * src/machfault.h: New file.
875 * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS): Add a second
877 * src/machfault-macos-i386.h: New file.
878 * src/Makefile.am (EXTRA_DIST): Add handler-macos.c.
879 (NOINST_HEADERS): Add machfault.h, machfault-macos-i386.h,
880 machfault-macos-powerpc.h.
881 * configure.in (CFG_HANDLER): Initialize to empty.
882 (CFG_MACHFAULT): New substituted variable.
883 On MacOS X PowerPC+i386, use CFG_HANDLER=handler-macos.c
885 (sv_cv_fault_include, sv_cv_have_stack_overflow_recovery): Set
886 correctly also in the handler-macos.c case.
888 2004-08-16 Bruno Haible <bruno@clisp.org>
890 Support for MacOS X 10.3 on PowerPC.
891 * src/fault-macosdarwin5-powerpc.h: Renamed from
892 src/fault-macos-powerpc.h.
893 * src/fault-macosdarwin5-powerpc.c: Renamed from
894 src/fault-macos-powerpc.c.
895 * src/fault-macosdarwin7-powerpc.h: New file.
896 * src/fault-macosdarwin7-powerpc.c: New file.
897 * src/Makefile.am (noinst_HEADERS): Update.
898 * configure.in: Test the method for MacOSX/Darwin5 PowerPC only after
899 the method for MacOSX/Darwin7 PowerPC failed.
900 Substitute FAULT_CONTEXT_INCLUDE2.
901 * src/sigsegv.h.in: Insert @FAULT_CONTEXT_INCLUDE2@.
902 * src/Makefile.am (sigsegv.h.msvc): Replace @FAULT_CONTEXT_INCLUDE2@.
904 2003-12-09 Paolo Bonzini <bonzini@gnu.org>
906 * src/handler-macos.c: Completed; removed dependency on
908 * src/machfault-macos-powerpc.h: Reorganized.
910 2003-12-08 Paolo Bonzini <bonzini@gnu.org>
911 Bruno Haible <bruno@clisp.org>
913 * src/handler-macos.c: New file.
914 * src/machfault.h: New file.
915 * src/machfault-macos-powerpc.h: New file.
917 2003-12-05 Bruno Haible <bruno@clisp.org>
919 * m4/fault.m4: Tweak indentation. Bump serial number.
920 * m4/getpagesize.m4: Likewise.
921 * m4/mmap-anon.m4: Likewise.
922 * m4/sigaltstack.m4: Likewise.
923 * m4/sigaltstack-longjmp.m4: Likewise.
924 * m4/sigaltstack-siglongjmp.m4: Likewise.
926 2003-12-05 Paolo Bonzini <bonzini@gnu.org>
928 * aclocal.m4: Regenerate with Automake 1.7h.
929 * configure.in: Drop m4/Makefile from list of generated files.
930 * configure: Regenerate.
931 * Makefile.am (install-data-hook): New name of the install-am
932 target, for Automake 1.8 compatibility. Other -am targets
933 are not affected because Automake does not have anything to
935 (AUTOMAKE_OPTIONS): Bump minimum Automake requirement to 1.7h.
936 (SUBDIRS): Remove m4.
937 ($(srcdir)/config.h.msvc): New target for config.h.msvc.
938 * Makefile.in: Regenerate with Automake 1.7h.
939 * m4/Makefile.am: Delete, Automake 1.7h takes care of it.
940 * m4/Makefile.in: Delete.
941 * src/Makefile.am (installdirs): Delete, Automake 1.7h adds it.
942 * src/Makefile.in: Regenerate with Automake 1.7h.
943 * tests/Makefile.in: Regenerate with Automake 1.7h.
945 * autoconf/config.guess: Update from automake-1.7h.
946 * autoconf/config.sub: Likewise.
947 * autoconf/install.sh: Likewise.
948 * autoconf/missing: Likewise.
949 * autoconf/mkinstalldirs: Delete.
950 * m4/fault.m4: autoupdate and manually tweak.
951 * m4/sigaltstack.m4: Likewise.
952 * m4/sigaltstack-longjmp.m4: Likewise.
953 * m4/sigaltstack-siglongjmp.m4: Likewise.
954 * m4/mmap-anon.m4: Likewise.
955 * m4/getpagesize.m4: Likewise.
957 2003-10-29 Bruno Haible <bruno@clisp.org>
959 * tests/sigsegv1.c (main): Add a check whether mprotect with
960 PROT_READ_WRITE really works.
961 * tests/sigsegv2.c (main): Likewise.
962 Reported by Ullal Devappa Kini <wmbfqj@vsnl.net>.
964 2003-08-21 Bruno Haible <bruno@clisp.org>
966 * Version 2.1 released.
968 2003-06-24 Paolo Bonzini <bonzini@gnu.org>
970 * m4/fault.m4: Exit if we detect an infinite loop.
971 * aclocal.m4: Regenerate.
972 * configure: Regenerate.
974 2003-06-18 Bruno Haible <bruno@clisp.org>
976 * autoconf/install-sh: Update from automake-1.7.5.
978 2003-05-14 Paolo Bonzini <bonzini@gnu.org>
980 * configure.in: Use signals-bsd.h for OpenBSD and NetBSD too.
981 Support instruction decoding to get fault address for Alphas.
982 * src/fault-netbsd-alpha.h: New file.
983 * src/fault-netbsd-alpha.c: New file.
984 * src/Makefile.am (noinst_HEADERS): Add them.
986 2003-05-14 Paolo Bonzini <bonzini@gnu.org>
988 * src/dispatcher.c (insert): Fix lossage in 64-bit environments
989 (cast from void* to unsigned int).
991 2003-05-10 Bruno Haible <bruno@clisp.org>
993 * tests/Makefile.am (../src/libsigsegv.la): New rule.
995 * Makefile.msvc (handler.obj): Complete the dependencies.
996 (stackoverflow2.exe): New rule.
997 (check): Depend on it.
1000 2003-05-10 Paolo Bonzini <bonzini@gnu.org>
1001 Bruno Haible <bruno@clisp.org>
1003 * configure.in: AC_SUBST of CFG_STACKVMA, CFG_LEAVE, CFG_HANDLER.
1004 * src/Makefile.am: Add dependencies for the object files.
1006 2003-05-08 Paolo Bonzini <bonzini@gnu.org>
1008 * configure.in: Add $srcdir/ to #include statements. Needed when
1011 * src/signals-macos.h (SIGSEGV_FOR_ALL_SIGNALS): Add SIGSEGV.
1013 2003-05-03 Paolo Bonzini <bonzini@gnu.org>
1015 * configure.in: Tweak 2003-04-26 patch so that it works on mingw32 and
1018 2003-05-02 Bruno Haible <bruno@clisp.org>
1020 * src/handler-unix.c: Add special case for stack handling on IA-64.
1021 * src/fault-linux-ia64.h: Complete the port.
1022 * configure.in: Improve Linux/IA-64 support.
1024 2003-05-01 Bruno Haible <bruno@clisp.org>
1026 * configure.in: Don't use fault-hurd.h on NetBSD/alpha. It does not
1029 2003-05-01 Bruno Haible <bruno@clisp.org>
1031 Support for Linux/HPPA.
1032 * fault-linux-hppa.h: Don't include <siginfo.h>.
1033 (SIGSEGV_FAULT_ADDRESS): Change.
1034 (SIGSEGV_FAULT_ADDRESS_FROM_SIGINFO): Define it, otherwise the value
1035 passed for sip is 0.
1036 (SIGSEGV_FAULT_CONTEXT, SIGSEGV_FAULT_STACKPOINTER): Remove macros.
1037 * configure.in: Improve Linux/HPPA support.
1039 2003-05-01 Bruno Haible <bruno@clisp.org>
1041 Support for OpenBSD/i386.
1042 * src/fault-openbsd.h: New file.
1043 * src/fault-openbsd-i386.h: New file.
1044 * src/Makefile.am (noinst_HEADERS): Add them.
1045 * configure.in: If the POSIX test works and the OS is OpenBSD, use
1046 fault-openbsd.h instead of fault-posix.h.
1048 2003-05-01 Bruno Haible <bruno@clisp.org>
1050 * src/fault-hpux-hppa.h: Make it work on machines with 64-bit registers
1052 * configure.in: Likewise.
1054 2003-04-29 Bruno Haible <bruno@clisp.org>
1056 * configure.in: Define HAVE_STACKVMA if CFG_STACKVMA is nontrivial.
1057 * src/handler-unix.c: Test HAVE_STACKVMA instead of CFG_STACKVMA.
1059 * m4/fault.m4 (SV_TRY_FAULT): On HP-UX, always pass 0 as first argument
1061 * tests/mmaputil.h (mmap_zeromap): Likewise.
1063 2003-04-28 Bruno Haible <bruno@clisp.org>
1065 * src/stackvma-freebsd.c (sigsegv_get_vma): Fix logic error.
1067 2002-04-17 Paolo Bonzini <bonzini@gnu.org>
1070 * configure.in: Treat cygwin* like mingw*.
1071 * src/handler-win32.c [CYGWIN] (exception_list, _except_list,
1072 debug_get_except_list, cygwin_exception_handler,
1073 libsigsegv_exception_handler, do_install_main_exception_filter): New
1075 (install_main_exception_filter): New function.
1076 (sigsegv_install_handler, stackoverflow_install_handler): Call it.
1078 2003-04-26 Bruno Haible <bruno@clisp.org>
1080 * configure.in: Don't set sv_cv_have_stack_overflow_recovery=yes if
1081 not all of the fault-*.h and stackvma-*.h premises are fulfilled.
1082 Reported by Paolo Bonzini <bonzini@gnu.org> for NetBSD/Alpha.
1084 2003-04-03 Bruno Haible <bruno@clisp.org>
1086 * configure.in: Add --enable-relocatable option.
1087 * m4/relocatable.m4: New file, from GNU gettext.
1088 * m4/Makefile.am (EXTRA_DIST): Add it.
1090 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.4.3.
1091 * autoconf/ltmain.sh: Likewise.
1093 2003-04-02 Bruno Haible <bruno@clisp.org>
1095 * configure.in: Bump version number to 2.1.
1097 * tests/stackoverflow2.c: New file, based on code by Paolo Bonzini.
1098 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add stackoverflow2.
1100 2003-04-02 Paolo Bonzini <bonzini@gnu.org>
1101 Bruno Haible <bruno@clisp.org>
1103 Complete the port to MacOS X (Darwin).
1104 * m4/fault.m4: Include sys/signal.h. Have an exit status of 3 instead
1105 of 1 if fault_address is misdetected.
1106 * m4/sigaltstack.m4: Define stack_t to struct sigaltstack if absent.
1107 Include <sys/signal.h>.
1108 * configure.in: Add check for sys/signal.h.
1109 Add support for catching stack overflow on MacOSX.
1110 Add support for MacOSX on i386.
1111 Provide a fallback for SS_ONSTACK before using it.
1112 * src/fault-macos-i386.h: New file.
1113 * src/stackvma-mach.c: New file.
1114 * src/fault-macos-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Change.
1115 * src/handler-unix.c: Include <sys/signal.h>.
1116 (SS_DISABLE): Provide a fallback.
1117 * src/leave-sigaltstack.c: Include sys/signal.h.
1118 (SS_ONSTACK): Provide a fallback.
1119 * src/Makefile.am (noinst_HEADERS): Add fault-macos-i386.h.
1120 (EXTRA_DIST): Add stackvma-mach.c.
1121 * tests/sigsegv1.c: Abort after 10 handler invocations.
1122 (main): Drop SKIP message, now emitted by automake 1.7.x.
1123 * tests/sigsegv2.c: Abort after 10 handler invocations.
1124 (main): Drop SKIP message, now emitted by automake 1.7.x.
1125 * tests/stackoverflow1.c (main): Drop SKIP message, now emitted by
1128 2002-10-14 Bruno Haible <bruno@clisp.org>
1130 * src/fault-none.h: New file.
1131 * src/fault.h: Include CFG_FAULT unconditionally.
1132 * src/leave-none.c: New file.
1133 * src/leave.c: Include CFG_LEAVE unconditionally.
1134 * src/stackvma.c: Include CFG_STACKVMA unconditionally.
1135 * configure.in (CFG_LEAVE, CFG_STACKVMA): Define always.
1136 * src/Makefile.am (noinst_HEADERS): Add fault-none.h.
1137 (EXTRA_DIST): Add leave-none.c.
1138 Reported by Paolo Bonzini <bonzini@gnu.org>.
1140 2002-09-30 Bruno Haible <bruno@clisp.org>
1142 * src/Makefile.am (noinst_HEADERS): Add fault-hurd.h,
1143 fault-linux-m68k.c, fault-macos-powerpc.h, fault-macos-powerpc.c,
1144 signals-hurd.h, signals-macos.h.
1146 2002-09-30 Bruno Haible <bruno@clisp.org>
1148 * Makefile.am (check-next): Don't ask for reports from i?86-*-linux*
1151 2002-09-30 Bruno Haible <bruno@clisp.org>
1153 Better Linux/PowerPC support.
1154 * configure.in: Change Linux/PowerPC support.
1155 * src/fault-linux-powerpc.h (SIGSEGV_FAULT_ADDRESS): New macro.
1157 2002-09-30 Bruno Haible <bruno@clisp.org>
1159 Better Linux/m68k support.
1160 * configure.in: Change Linux/m68k support.
1161 * src/fault-linux-m68k.c: New file.
1162 * src/fault-linux-m68k.h: Use it.
1164 2002-09-30 Bruno Haible <bruno@clisp.org>
1166 Tentative Hurd support.
1167 * configure.in: Add Hurd support.
1168 * src/signals-hurd.h: New file.
1169 * src/fault-hurd.h: New file.
1171 2002-09-30 Bruno Haible <bruno@clisp.org>
1173 MacOSX/PowerPC support.
1174 * configure.in: Add MacOSX/PowerPC support.
1175 * src/signals-macos.h: New file.
1176 * src/fault-macos-powerpc.c: New file.
1177 * src/fault-macos-powerpc.h: New file.
1179 2002-09-16 Bruno Haible <bruno@clisp.org>
1181 * src/fault-posix.h: Don't include <siginfo.h>. Needed for hppa-linux.
1182 Reported by Will Newton <will@misconception.org.uk>.
1184 2002-08-28 Bruno Haible <bruno@clisp.org>
1186 * Version 2.0 released.
1188 2002-07-28 Bruno Haible <bruno@clisp.org>
1190 Big reorganization and rewrite. Every file changed.