1 2008-09-07 Bruno Haible <bruno@clisp.org>
3 * m4/libtool.m4: Update from libtool-2.2.6.
4 * m4/ltoptions.m4: Likewise.
5 * m4/ltsugar.m4: Likewise.
6 * m4/ltversion.m4: Likewise.
7 * build-aux/ltmain.sh: Likewise.
9 2008-08-25 Bruno Haible <bruno@clisp.org>
11 * Version 2.6 released.
13 2008-08-24 Bruno Haible <bruno@clisp.org>
15 * configure.ac: Treat Dragonfly BSD platforms like FreeBSD.
16 Reported by Thomas Klausner <tk@giga.or.at>.
18 2008-08-24 Bruno Haible <bruno@clisp.org>
20 * src/stackvma-mincore.c (mincore_is_near_this): Improve logic. Needed
21 for reliable NULL pointer access classification as SIGSEGV on AIX 4.3.
23 2008-08-24 Bruno Haible <bruno@clisp.org>
25 * m4/sigaltstack.m4: Change 'volatile int' return type to 'int'. Needed
27 * m4/sigaltstack-longjmp.m4: Likewise.
28 * m4/sigaltstack-siglongjmp.m4: Likewise.
29 * tests/stackoverflow1.c (recurse): Likewise.
30 * tests/stackoverflow2.c (recurse): Likewise.
32 2008-08-24 Bruno Haible <bruno@clisp.org>
34 * tests/sigsegv1.c: Include <config.h>.
35 * tests/sigsegv2.c: Likewise.
36 * tests/sigsegv3.c: Include <config.h> before all other headers.
37 * tests/stackoverflow1.c: Likewise.
38 * tests/stackoverflow2.c: Likewise.
40 2008-08-24 Bruno Haible <bruno@clisp.org>
42 Fix the sigsegv3 test on MacOS X.
43 * src/sigsegv.h.in (sigsegv_leave_handler): Take 4 arguments.
44 * NEWS: Mention the change.
45 * src/handler-macos.c (our_exception_thread, signalled_thread): New
47 (catch_exception_raise): Set signalled_thread during the user_handler
49 (mach_exception_thread): Initialize our_exception_thread.
50 (sigsegv_leave_handler): Take 4 arguments. When called from within
51 the exception thread, let the signalled thread do a hyperjump.
52 * src/handler-unix.c (sigsegv_leave_handler): Take 4 arguments.
53 * src/handler-win32.c (sigsegv_leave_handler): Likewise.
54 * src/handler-none.c (sigsegv_leave_handler): Likewise.
55 * src/machfault-macos.h (SIGSEGV_INTEGER_ARGUMENT_1,
56 SIGSEGV_INTEGER_ARGUMENT_2, SIGSEGV_INTEGER_ARGUMENT_3,
57 SIGSEGV_FRAME_POINTER): New macros.
58 * tests/sigsegv3.c (handler_continuation): New function.
59 (handler): Update to new API.
60 * tests/stackoverflow1.c (stackoverflow_handler_continuation): New
62 (stackoverflow_handler): Update to new API.
63 * tests/stackoverflow2.c (stackoverflow_handler_continuation): New
65 (stackoverflow_handler, sigsegv_handler): Update to new API.
67 2008-08-24 Bruno Haible <bruno@clisp.org>
69 Test the use of sigsegv_leave_handler from within a SIGSEGV handler.
70 * tests/sigsegv3.c: New file.
71 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add sigsegv3.
73 2008-08-23 Eric Blake <ebb9@byu.net>
75 * src/Makefile.am (noinst_HEADERS): Remove machfault-macos-powerpc.h
76 and machfault-macos-i386.h. Add machfault-macos.h.
78 2008-08-17 Bruno Haible <bruno@clisp.org>
80 Allow building universal binaries on MacOS X.
81 * src/machfault-macos.h: New file, combining
82 src/machfault-macos-powerpc.h and src/machfault-macos-i386.h.
83 * src/machfault-macos-powerpc.h: Remove file.
84 * src/machfault-macos-i386.h: Remove file.
85 * configure.ac (CFG_MACHFAULT): Set to machfault-macos.h.
86 (FAULT_CONTEXT_INCLUDE) [MacOSX]: Set to #ifdefs for all four possible
89 2008-07-20 Bruno Haible <bruno@clisp.org>
91 Make sigsegv_get_vma async-safe.
92 * src/sigsegv.h.in (sigsegv_handler_t, stackoverflow_handler_t):
93 Mention async-safety constraints.
94 + src/stackvma-rofile.c: New file.
95 * src/stackvma-freebsd.c: Include stackvma-rofile.c.
96 (sigsegv_get_vma): Use struct rofile instead of FILE.
97 * src/stackvma-linux.c: Include stackvma-rofile.c.
98 (sigsegv_get_vma): Use struct rofile instead of FILE.
99 * src/stackvma-procfs.c: Include <sys/mman.h> instead of <stdlib.h> and
101 (sigsegv_get_vma): Avoid using sprintf. Ensure pagesize is initialized.
102 Use mmap/munmap instead of malloc/free.
103 * src/Makefile.am (EXTRA_DIST): Add stackvma-rofile.c.
104 Reported by Eric Blake <ebb9@byu.net>.
106 2008-07-20 Bruno Haible <bruno@clisp.org>
108 * src/handler-unix.c (sigsegv_handler): Preserve errno.
110 2008-07-20 Eric Blake <ebb9@byu.net>
112 * src/stackvma-mincore.c (mincore_is_near_this): Fix logic.
114 2008-07-20 Bruno Haible <bruno@clisp.org>
116 * tests/stackoverflow2.c (main): Test also a NULL pointer access.
117 Reported by Eric Blake <ebb9@byu.net>.
119 2008-06-23 Bruno Haible <bruno@clisp.org>
121 * build-aux/config.guess: Update to GNU version 2008-06-16.
122 * build-aux/config.sub: Likewise.
124 2008-05-31 Bruno Haible <bruno@clisp.org>
126 Make cross-compile from MacOS X 10.5 to MacOS X 10.4 work.
127 * src/handler-macos.c (MacOS_X_10_5_HEADERS): New macro.
128 * src/machfault-macos-i386.h: Use it.
129 * src/machfault-macos-powerpc.h: Likewise.
130 Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
132 2008-05-31 Bruno Haible <bruno@clisp.org>
134 * m4/mmap-anon.m4 (SV_MMAP_ANON): Add known cross-compile results for
136 Reported by Dr Tomaž Slivnik <slivnik@tomaz.name>.
138 2008-05-27 Bruno Haible <bruno@clisp.org>
140 * configure.ac: Require at least autoconf 2.62. Merge
141 FAULT_CONTEXT_INCLUDE2 variable into FAULT_CONTEXT_INCLUDE.
142 * src/sigsegv.h.in: Remove FAULT_CONTEXT_INCLUDE2 substitution.
143 * src/Makefile.am (sigsegv.h.msvc): Update.
145 2008-05-27 Bruno Haible <bruno@clisp.org>
147 * configure.ac: Bump version number to 2.6.
148 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
150 2008-05-27 Bruno Haible <bruno@clisp.org>
152 Support for 64-bit mode on MacOS X 10.5.
153 * src/handler-macos.c (catch_exception_raise): Align the stack pointer
154 also on x86_64. Needed for MMX instructions.
155 * src/machfault-macos-i386.h: Choose among 64-bit and 32-bit flavours.
156 Use new names for the 32-bit flavour when possible.
157 * src/machfault-macos-powerpc.h: Choose among 64-bit and 32-bit
159 * configure.ac (FAULT_CONTEXT, FAULT_CONTEXT_INCLUDE2): Choose
160 right flavour (ppc_thread_state_t/ppc_thread_state64_t or
161 i386_thread_state_t/x86_thread_state32_t/x86_thread_state64_t) at
164 2008-05-18 Bruno Haible <bruno@clisp.org>
166 * m4/libtool.m4: Update from libtool-2.2.4.
167 * m4/ltoptions.m4: Likewise.
168 * m4/ltversion.m4: Likewise.
169 * m4/lt~obsolete.m4: Likewise.
170 * build-aux/ltmain.sh: Likewise.
172 2008-04-06 Bruno Haible <bruno@clisp.org>
174 * m4/libtool.m4: Update from libtool-2.2.2.
175 * m4/ltoptions.m4: New file, from libtool-2.2.2.
176 * m4/ltsugar.m4: New file, from libtool-2.2.2.
177 * m4/ltversion.m4: New file, from libtool-2.2.2.
178 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
179 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
180 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
182 2007-11-16 Bruno Haible <bruno@clisp.org>
184 * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Use sc_rsp
185 also on x86_64-freebsd platform.
186 Reported by Dmitri Hrapof <hrapof@common-lisp.ru> and
187 Petr Salinger <Petr.Salinger@seznam.cz>.
189 2007-11-15 Bruno Haible <bruno@clisp.org>
191 * configure.ac (CFG_SIGNALS, CFG_FAULT): Port to i586-kfreebsd-gnu
192 and x86_64-kfreebsd-gnu.
193 * src/fault-freebsd-i386.h (SIGSEGV_FAULT_STACKPOINTER): Likewise.
194 Based on patch by Petr Salinger <Petr.Salinger@seznam.cz>.
196 2007-11-11 Bruno Haible <bruno@clisp.org>
198 * Version 2.5 released.
200 2007-11-11 Bruno Haible <bruno@clisp.org>
202 * configure.ac: Bump version number to 2.5.
203 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
205 2007-10-28 Bruno Haible <bruno@clisp.org>
207 * src/handler-macos.c (catch_exception_raise): Align the new stack
208 pointer on a 16-byte boundary.
209 * src/handler-win32.c (main_exception_filter): Correct alignment:
210 %esp must be aligned to == -4 mod 16 upon function entry.
212 2007-10-28 Bruno Haible <bruno@clisp.org>
214 * src/sigsegv.h.in (stackoverflow_install_handler): Avoid comment
216 Reported by Chris Willmore <willmc@rpi.edu>.
218 2007-10-28 Bruno Haible <bruno@clisp.org>
220 * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS,
221 SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Add __DARWIN_UNIX03
223 * src/machfault-macos-i386.h (SIGSEGV_FAULT_ADDRESS,
224 SIGSEGV_STACK_POINTER, SIGSEGV_PROGRAM_COUNTER): Likewise.
225 * src/fault-macosdarwin7-powerpc.h (SIGSEGV_FAULT_STACKPOINTER):
227 * src/fault-macosdarwin7-powerpc.c (get_fault_addr): Likewise.
228 Reported by Chris Willmore <willmc@rpi.edu>.
230 2007-01-12 Bruno Haible <bruno@clisp.org>
232 * Makefile.am (check-next): Don't ask for reports from x86_64-*-linux*
235 2006-07-14 Bruno Haible <bruno@clisp.org>
237 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Use SIGSTKSZ instead of
239 * m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
240 * m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
242 * tests/stackoverflow1.c (main): Likewise.
243 * tests/stackoverflow2.c (main): Likewise.
244 * src/sigsegv.h.in (stackoverflow_install_handler): Update
245 recommendation for extra_stack_size.
247 Reported by Peter Van Eynde <pvaneynd@users.sourceforge.net>.
249 2006-06-23 Bruno Haible <bruno@clisp.org>
251 * Version 2.4 released.
253 2006-06-23 Bruno Haible <bruno@clisp.org>
255 * configure.ac: Bump version number to 2.4.
256 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
258 2006-06-17 Bruno Haible <bruno@clisp.org>
260 * src/Makefile.am (noinst_HEADERS): Add fault-netbsd.h.
262 2006-06-17 Bruno Haible <bruno@clisp.org>
264 * m4/sigaltstack.m4: Insert 'volatile' and pass a pointer, to defeat
266 * m4/sigaltstack-longjmp.m4: Likewise.
267 * m4/sigaltstack-siglongjmp.m4: Likewise.
269 2006-06-17 Bruno Haible <bruno@clisp.org>
271 * tests/stackoverflow1.c (recurse): Remove useless cast.
272 * tests/stackoverflow2.c (recurse): Likewise.
274 2006-06-17 Bruno Haible <bruno@clisp.org>
276 * src/stackvma-freebsd.c (sigsegv_get_vma): Test whether mincore()
277 works as expected before using it.
279 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
281 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
282 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
284 2006-06-13 Bruno Haible <bruno@clisp.org>
286 Make NetBSD/i386 stack overflow detection work even without mincore.
287 * src/fault-netbsd.h: New file.
288 * configure.ac (CFG_FAULT): Choose it when appropriate.
290 2006-05-16 Bruno Haible <bruno@clisp.org>
292 Don't allow the compiler to reorder instructions in the tests.
293 * tests/sigsegv1.c (crashes): Use volatile in pointer access.
294 * tests/sigsegv2.c (main): Likewise.
295 * tests/stackoverflow2.c (main): Likewise.
297 2006-05-14 Bruno Haible <bruno@clisp.org>
299 Exploit the mincore() system call where available.
300 * src/stackvma-mincore.c: New file.
301 * src/Makefile.am (EXTRA_DIST): Add it.
302 * src/stackvma.h: Add double-inclusion guard.
303 * src/stackvma-freebsd.c: If mincore() is available, include also
305 (sigsegv_get_vma): If mincore() is available, use it as fallback.
306 * src/stackvma-linux.c: If mincore() is available, include also
308 (sigsegv_get_vma): If mincore() is available, use it as fallback.
309 * src/stackvma-procfs.c: If mincore() is available, include also
311 (sigsegv_get_vma): If mincore() is available, use it as fallback.
312 * configure.ac: Test for mincore.
313 (CFG_STACKVMA): Set to stackvma-mincore.c if nothing else is available.
315 2006-05-14 Bruno Haible <bruno@clisp.org>
317 * src/stackvma-simple.c: New file, extracted from handler-unix.c.
318 * src/Makefile.am (EXTRA_DIST): Add it.
319 * src/stackvma-beos.c: Include stackvma-simple.c.
320 (sigsegv_get_vma): Fill the vma's is_near_this field.
321 * src/stackvma-freebsd.c: Include stackvma-simple.c.
322 (sigsegv_get_vma): Fill the vma's is_near_this field.
323 * src/stackvma-linux.c: Include stackvma-simple.c.
324 (sigsegv_get_vma): Fill the vma's is_near_this field.
325 * src/stackvma-mach.c: Include stackvma-simple.c.
326 (sigsegv_get_vma): Fill the vma's is_near_this field.
327 * src/stackvma-procfs.c: Include stackvma-simple.c.
328 (sigsegv_get_vma): Fill the vma's is_near_this field.
329 * src/stackvma.h (vma_struct): Add is_near_this field.
330 * src/handler-unix.c (sigsegv_handler): Use the vma's is_near_this
333 2006-04-28 Bruno Haible <bruno@clisp.org>
335 * Version 2.3 released.
337 2006-04-28 Bruno Haible <bruno@clisp.org>
339 * configure.ac: Bump version number to 2.3.
340 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
342 * build-aux/config.guess, build-aux/config.sub: Update to GNU version
345 * build-aux/install-sh: Update from automake-1.9.6.
346 * build-aux/missing: Likewise.
348 * build-aux/ltmain.sh: Update from libtool-1.5.22.
349 * m4/libtool.m4: Likewise.
351 2006-04-28 Bruno Haible <bruno@clisp.org>
353 * build-aux: Renamed from autoconf.
354 * configure.ac (AC_CONFIG_AUX_DIR): Set to build-aux.
356 2006-04-22 Bruno Haible <bruno@clisp.org>
358 * configure.ac: Renamed from configure.in.
360 2006-04-21 Bruno Haible <bruno@clisp.org>
362 * src/machfault-macos-i386.h: Rewritten for Darwin 8.6.1.
363 * configure.in: Change FAULT_CONTEXT for i?86-darwin.
365 2005-06-21 Paolo Bonzini <bonzini@gnu.org>
367 * configure.in: For handler-macos.c, include mach/thread_status.h.
368 * configure: Regenerate.
370 2005-06-21 Paolo Bonzini <bonzini@gnu.org>
372 * tests/stackoverflow1.c (recurse): Make more resilient to compiler
375 * tests/stackoverflow2.c: Likewise.
377 2005-05-24 Bruno Haible <bruno@clisp.org>
379 * src/handler-win32.c (main_exception_filter): Copy CONTEXT structure
380 to safe area on the stack.
381 Based on patch by Doug Currie <e@flavors.com>.
383 * src/handler-win32.c (main_exception_filter): Swap arguments passed
384 to stack_overflow_handler.
385 Patch by Doug Currie <e@flavors.com>.
387 * src/handler-win32.c (main_exception_filter): Align %esp on a 16-byte
390 2005-03-02 Bruno Haible <bruno@clisp.org>
392 * Version 2.2 released.
394 2005-03-02 Bruno Haible <bruno@clisp.org>
396 * autoconf/config.guess: Update.
397 * autoconf/config.sub: Update.
398 * autoconf/missing: Update from automake-1.9.5.
400 * m4/libtool.m4: Upgrade to libtool-1.5.14 with gettext modifications.
401 * autoconf/ltmain.sh: Likewise.
403 2005-03-02 Bruno Haible <bruno@clisp.org>
405 * src/fault-aix5.h: New file.
406 * src/fault-aix5-powerpc.h: New file.
407 * src/Makefile.am (noinst_HEADERS): Add them.
408 * configure.in: Choose them when the POSIX test succeeds on AIX.
410 * src/fault-aix3-powerpc.h: Renamed from src/fault-aix-powerpc.h.
411 * src/fault-aix3.h: Renamed from src/fault-aix.h.
412 * src/Makefile.am (noinst_HEADERS): Update.
413 * configure.in: Update. When cross-compiling, assume the AIX test
414 succeeds only on AIX 3 and AIX 4.
416 2005-03-01 Bruno Haible <bruno@clisp.org>
418 * configure.in: Fix test of CFG_MACHFAULT.
420 2005-02-27 Bruno Haible <bruno@clisp.org>
422 * configure.in: Skip tests that are not needed on MacOS X >= 10.2.
423 * m4/sigaltstack.m4 (SV_SIGALTSTACK): Don't perform the test on
426 2005-02-18 Bruno Haible <bruno@clisp.org>
428 * tests/sigsegv1.c (handler_called): Declare as volatile.
429 * tests/sigsegv2.c (logcount, logdata): Likewise.
430 * tests/stackoverflow1.c (pass): Likewise.
431 * tests/stackoverflow2.c (pass): Likewise.
433 2005-01-29 Bruno Haible <bruno@clisp.org>
435 * src/sigsegv.h.in (LIBSIGSEGV_VERSION): New macro.
436 (libsigsegv_version): New declaration.
437 * src/version.c: New file.
438 * src/Makefile.am (libsigsegv_la_SOURCES): Add version.c.
439 * Makefile.msvc (OBJECTS): Add version.obj.
440 (version.obj): New rule.
441 Suggested by Sam Steingold.
443 2004-08-25 Bruno Haible <bruno@clisp.org>
445 * m4/libtool.m4: Upgrade to libtool-1.5.6.
446 * autoconf/ltmain.sh: Upgrade to libtool-1.5.6.
448 2004-08-18 Bruno Haible <bruno@clisp.org>
450 * configure.in: Bump version number to 2.2.
452 2004-08-17 Bruno Haible <bruno@clisp.org>
454 Finish the Mach-based MacOS X support.
455 * src/handler-macos.c: Don't include mach/vm_map.h.
456 Include machfault.h instead of fault.h.
457 (save_exc_state): Remove variable.
458 (save_thread_state): New variable.
459 (terminating_handler): New function.
460 (altstack_handler): Pass the save_thread_state, not the save_exc_state,
461 to the user's handler.
462 (catch_exception_raise): Make it work also for platforms which don't
463 have an exc_state type. Call SIGSEGV_FAULT_ADDRESS with 2 arguments.
464 Don't clobber the exc_state; instead set the thread's program counter
465 to terminating_handler or altstack_handler, depending on the case.
466 Return KERN_SUCCESS at the end.
467 * src/machfault.h: New file.
468 * src/machfault-macos-powerpc.h (SIGSEGV_FAULT_ADDRESS): Add a second
470 * src/machfault-macos-i386.h: New file.
471 * src/Makefile.am (EXTRA_DIST): Add handler-macos.c.
472 (NOINST_HEADERS): Add machfault.h, machfault-macos-i386.h,
473 machfault-macos-powerpc.h.
474 * configure.in (CFG_HANDLER): Initialize to empty.
475 (CFG_MACHFAULT): New substituted variable.
476 On MacOS X PowerPC+i386, use CFG_HANDLER=handler-macos.c
478 (sv_cv_fault_include, sv_cv_have_stack_overflow_recovery): Set
479 correctly also in the handler-macos.c case.
481 2004-08-16 Bruno Haible <bruno@clisp.org>
483 Support for MacOS X 10.3 on PowerPC.
484 * src/fault-macosdarwin5-powerpc.h: Renamed from
485 src/fault-macos-powerpc.h.
486 * src/fault-macosdarwin5-powerpc.c: Renamed from
487 src/fault-macos-powerpc.c.
488 * src/fault-macosdarwin7-powerpc.h: New file.
489 * src/fault-macosdarwin7-powerpc.c: New file.
490 * src/Makefile.am (noinst_HEADERS): Update.
491 * configure.in: Test the method for MacOSX/Darwin5 PowerPC only after
492 the method for MacOSX/Darwin7 PowerPC failed.
493 Substitute FAULT_CONTEXT_INCLUDE2.
494 * src/sigsegv.h.in: Insert @FAULT_CONTEXT_INCLUDE2@.
495 * src/Makefile.am (sigsegv.h.msvc): Replace @FAULT_CONTEXT_INCLUDE2@.
497 2003-12-09 Paolo Bonzini <bonzini@gnu.org>
499 * src/handler-macos.c: Completed; removed dependency on
501 * src/machfault-macos-powerpc.h: Reorganized.
503 2003-12-08 Paolo Bonzini <bonzini@gnu.org>
504 Bruno Haible <bruno@clisp.org>
506 * src/handler-macos.c: New file.
507 * src/machfault.h: New file.
508 * src/machfault-macos-powerpc.h: New file.
510 2003-12-05 Bruno Haible <bruno@clisp.org>
512 * m4/fault.m4: Tweak indentation. Bump serial number.
513 * m4/getpagesize.m4: Likewise.
514 * m4/mmap-anon.m4: Likewise.
515 * m4/sigaltstack.m4: Likewise.
516 * m4/sigaltstack-longjmp.m4: Likewise.
517 * m4/sigaltstack-siglongjmp.m4: Likewise.
519 2003-12-05 Paolo Bonzini <bonzini@gnu.org>
521 * aclocal.m4: Regenerate with Automake 1.7h.
522 * configure.in: Drop m4/Makefile from list of generated files.
523 * configure: Regenerate.
524 * Makefile.am (install-data-hook): New name of the install-am
525 target, for Automake 1.8 compatibility. Other -am targets
526 are not affected because Automake does not have anything to
528 (AUTOMAKE_OPTIONS): Bump minimum Automake requirement to 1.7h.
529 (SUBDIRS): Remove m4.
530 ($(srcdir)/config.h.msvc): New target for config.h.msvc.
531 * Makefile.in: Regenerate with Automake 1.7h.
532 * m4/Makefile.am: Delete, Automake 1.7h takes care of it.
533 * m4/Makefile.in: Delete.
534 * src/Makefile.am (installdirs): Delete, Automake 1.7h adds it.
535 * src/Makefile.in: Regenerate with Automake 1.7h.
536 * tests/Makefile.in: Regenerate with Automake 1.7h.
538 * autoconf/config.guess: Update from automake-1.7h.
539 * autoconf/config.sub: Likewise.
540 * autoconf/install.sh: Likewise.
541 * autoconf/missing: Likewise.
542 * autoconf/mkinstalldirs: Delete.
543 * m4/fault.m4: autoupdate and manually tweak.
544 * m4/sigaltstack.m4: Likewise.
545 * m4/sigaltstack-longjmp.m4: Likewise.
546 * m4/sigaltstack-siglongjmp.m4: Likewise.
547 * m4/mmap-anon.m4: Likewise.
548 * m4/getpagesize.m4: Likewise.
550 2003-10-29 Bruno Haible <bruno@clisp.org>
552 * tests/sigsegv1.c (main): Add a check whether mprotect with
553 PROT_READ_WRITE really works.
554 * tests/sigsegv2.c (main): Likewise.
555 Reported by Ullal Devappa Kini <wmbfqj@vsnl.net>.
557 2003-08-21 Bruno Haible <bruno@clisp.org>
559 * Version 2.1 released.
561 2003-06-24 Paolo Bonzini <bonzini@gnu.org>
563 * m4/fault.m4: Exit if we detect an infinite loop.
564 * aclocal.m4: Regenerate.
565 * configure: Regenerate.
567 2003-06-18 Bruno Haible <bruno@clisp.org>
569 * autoconf/install-sh: Update from automake-1.7.5.
571 2003-05-14 Paolo Bonzini <bonzini@gnu.org>
573 * configure.in: Use signals-bsd.h for OpenBSD and NetBSD too.
574 Support instruction decoding to get fault address for Alphas.
575 * src/fault-netbsd-alpha.h: New file.
576 * src/fault-netbsd-alpha.c: New file.
577 * src/Makefile.am (noinst_HEADERS): Add them.
579 2003-05-14 Paolo Bonzini <bonzini@gnu.org>
581 * src/dispatcher.c (insert): Fix lossage in 64-bit environments
582 (cast from void* to unsigned int).
584 2003-05-10 Bruno Haible <bruno@clisp.org>
586 * tests/Makefile.am (../src/libsigsegv.la): New rule.
588 * Makefile.msvc (handler.obj): Complete the dependencies.
589 (stackoverflow2.exe): New rule.
590 (check): Depend on it.
593 2003-05-10 Paolo Bonzini <bonzini@gnu.org>
594 Bruno Haible <bruno@clisp.org>
596 * configure.in: AC_SUBST of CFG_STACKVMA, CFG_LEAVE, CFG_HANDLER.
597 * src/Makefile.am: Add dependencies for the object files.
599 2003-05-08 Paolo Bonzini <bonzini@gnu.org>
601 * configure.in: Add $srcdir/ to #include statements. Needed when
604 * src/signals-macos.h (SIGSEGV_FOR_ALL_SIGNALS): Add SIGSEGV.
606 2003-05-03 Paolo Bonzini <bonzini@gnu.org>
608 * configure.in: Tweak 2003-04-26 patch so that it works on mingw32 and
611 2003-05-02 Bruno Haible <bruno@clisp.org>
613 * src/handler-unix.c: Add special case for stack handling on IA-64.
614 * src/fault-linux-ia64.h: Complete the port.
615 * configure.in: Improve Linux/IA-64 support.
617 2003-05-01 Bruno Haible <bruno@clisp.org>
619 * configure.in: Don't use fault-hurd.h on NetBSD/alpha. It does not
622 2003-05-01 Bruno Haible <bruno@clisp.org>
624 Support for Linux/HPPA.
625 * fault-linux-hppa.h: Don't include <siginfo.h>.
626 (SIGSEGV_FAULT_ADDRESS): Change.
627 (SIGSEGV_FAULT_ADDRESS_FROM_SIGINFO): Define it, otherwise the value
629 (SIGSEGV_FAULT_CONTEXT, SIGSEGV_FAULT_STACKPOINTER): Remove macros.
630 * configure.in: Improve Linux/HPPA support.
632 2003-05-01 Bruno Haible <bruno@clisp.org>
634 Support for OpenBSD/i386.
635 * src/fault-openbsd.h: New file.
636 * src/fault-openbsd-i386.h: New file.
637 * src/Makefile.am (noinst_HEADERS): Add them.
638 * configure.in: If the POSIX test works and the OS is OpenBSD, use
639 fault-openbsd.h instead of fault-posix.h.
641 2003-05-01 Bruno Haible <bruno@clisp.org>
643 * src/fault-hpux-hppa.h: Make it work on machines with 64-bit registers
645 * configure.in: Likewise.
647 2003-04-29 Bruno Haible <bruno@clisp.org>
649 * configure.in: Define HAVE_STACKVMA if CFG_STACKVMA is nontrivial.
650 * src/handler-unix.c: Test HAVE_STACKVMA instead of CFG_STACKVMA.
652 * m4/fault.m4 (SV_TRY_FAULT): On HP-UX, always pass 0 as first argument
654 * tests/mmaputil.h (mmap_zeromap): Likewise.
656 2003-04-28 Bruno Haible <bruno@clisp.org>
658 * src/stackvma-freebsd.c (sigsegv_get_vma): Fix logic error.
660 2002-04-17 Paolo Bonzini <bonzini@gnu.org>
663 * configure.in: Treat cygwin* like mingw*.
664 * src/handler-win32.c [CYGWIN] (exception_list, _except_list,
665 debug_get_except_list, cygwin_exception_handler,
666 libsigsegv_exception_handler, do_install_main_exception_filter): New
668 (install_main_exception_filter): New function.
669 (sigsegv_install_handler, stackoverflow_install_handler): Call it.
671 2003-04-26 Bruno Haible <bruno@clisp.org>
673 * configure.in: Don't set sv_cv_have_stack_overflow_recovery=yes if
674 not all of the fault-*.h and stackvma-*.h premises are fulfilled.
675 Reported by Paolo Bonzini <bonzini@gnu.org> for NetBSD/Alpha.
677 2003-04-03 Bruno Haible <bruno@clisp.org>
679 * configure.in: Add --enable-relocatable option.
680 * m4/relocatable.m4: New file, from GNU gettext.
681 * m4/Makefile.am (EXTRA_DIST): Add it.
683 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.4.3.
684 * autoconf/ltmain.sh: Likewise.
686 2003-04-02 Bruno Haible <bruno@clisp.org>
688 * configure.in: Bump version number to 2.1.
690 * tests/stackoverflow2.c: New file, based on code by Paolo Bonzini.
691 * tests/Makefile.am (TESTS, noinst_PROGRAMS): Add stackoverflow2.
693 2003-04-02 Paolo Bonzini <bonzini@gnu.org>
694 Bruno Haible <bruno@clisp.org>
696 Complete the port to MacOS X (Darwin).
697 * m4/fault.m4: Include sys/signal.h. Have an exit status of 3 instead
698 of 1 if fault_address is misdetected.
699 * m4/sigaltstack.m4: Define stack_t to struct sigaltstack if absent.
700 Include <sys/signal.h>.
701 * configure.in: Add check for sys/signal.h.
702 Add support for catching stack overflow on MacOSX.
703 Add support for MacOSX on i386.
704 Provide a fallback for SS_ONSTACK before using it.
705 * src/fault-macos-i386.h: New file.
706 * src/stackvma-mach.c: New file.
707 * src/fault-macos-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Change.
708 * src/handler-unix.c: Include <sys/signal.h>.
709 (SS_DISABLE): Provide a fallback.
710 * src/leave-sigaltstack.c: Include sys/signal.h.
711 (SS_ONSTACK): Provide a fallback.
712 * src/Makefile.am (noinst_HEADERS): Add fault-macos-i386.h.
713 (EXTRA_DIST): Add stackvma-mach.c.
714 * tests/sigsegv1.c: Abort after 10 handler invocations.
715 (main): Drop SKIP message, now emitted by automake 1.7.x.
716 * tests/sigsegv2.c: Abort after 10 handler invocations.
717 (main): Drop SKIP message, now emitted by automake 1.7.x.
718 * tests/stackoverflow1.c (main): Drop SKIP message, now emitted by
721 2002-10-14 Bruno Haible <bruno@clisp.org>
723 * src/fault-none.h: New file.
724 * src/fault.h: Include CFG_FAULT unconditionally.
725 * src/leave-none.c: New file.
726 * src/leave.c: Include CFG_LEAVE unconditionally.
727 * src/stackvma.c: Include CFG_STACKVMA unconditionally.
728 * configure.in (CFG_LEAVE, CFG_STACKVMA): Define always.
729 * src/Makefile.am (noinst_HEADERS): Add fault-none.h.
730 (EXTRA_DIST): Add leave-none.c.
731 Reported by Paolo Bonzini <bonzini@gnu.org>.
733 2002-09-30 Bruno Haible <bruno@clisp.org>
735 * src/Makefile.am (noinst_HEADERS): Add fault-hurd.h,
736 fault-linux-m68k.c, fault-macos-powerpc.h, fault-macos-powerpc.c,
737 signals-hurd.h, signals-macos.h.
739 2002-09-30 Bruno Haible <bruno@clisp.org>
741 * Makefile.am (check-next): Don't ask for reports from i?86-*-linux*
744 2002-09-30 Bruno Haible <bruno@clisp.org>
746 Better Linux/PowerPC support.
747 * configure.in: Change Linux/PowerPC support.
748 * src/fault-linux-powerpc.h (SIGSEGV_FAULT_ADDRESS): New macro.
750 2002-09-30 Bruno Haible <bruno@clisp.org>
752 Better Linux/m68k support.
753 * configure.in: Change Linux/m68k support.
754 * src/fault-linux-m68k.c: New file.
755 * src/fault-linux-m68k.h: Use it.
757 2002-09-30 Bruno Haible <bruno@clisp.org>
759 Tentative Hurd support.
760 * configure.in: Add Hurd support.
761 * src/signals-hurd.h: New file.
762 * src/fault-hurd.h: New file.
764 2002-09-30 Bruno Haible <bruno@clisp.org>
766 MacOSX/PowerPC support.
767 * configure.in: Add MacOSX/PowerPC support.
768 * src/signals-macos.h: New file.
769 * src/fault-macos-powerpc.c: New file.
770 * src/fault-macos-powerpc.h: New file.
772 2002-09-16 Bruno Haible <bruno@clisp.org>
774 * src/fault-posix.h: Don't include <siginfo.h>. Needed for hppa-linux.
775 Reported by Will Newton <will@misconception.org.uk>.
777 2002-08-28 Bruno Haible <bruno@clisp.org>
779 * Version 2.0 released.
781 2002-07-28 Bruno Haible <bruno@clisp.org>
783 Big reorganization and rewrite. Every file changed.