-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangeLog
2232 lines (1654 loc) · 74.7 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2024-11-22 Bruno Haible <[email protected]>
Switch to libtool 2.5.4.
* m4/libtool.m4: Update from libtool-2.5.4.
* m4/ltversion.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2024-11-07 Bruno Haible <[email protected]>
Update the GPL text.
* COPYING: Update from <https://ftp.gnu.org/gnu/Licenses/gpl-2.0.txt>.
2024-09-26 Bruno Haible <[email protected]>
Switch to libtool 2.5.3.
* m4/libtool.m4: Update from libtool-2.5.3.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2024-09-21 Bruno Haible <[email protected]>
Avoid test failure with gcc 14.
Patch by Paul Eggert.
* tests/test-catch-stackoverflow2.c (null_pointer): Make it a
volatile pointer, not a pointer to volatile. Also, rename from
null_pointer_to_volatile_int.
(main): Update.
2024-08-30 Bruno Haible <[email protected]>
Clarify license of the *.m4 files.
* m4/*.m4: In the license notice, clarify which version of the GPL
is meant.
2024-08-24 Bruno Haible <[email protected]>
Fix shared library support in 32-bit mode on FreeBSD/powerpc64.
Patch from <https://savannah.gnu.org/patch/index.php?10469>.
* m4/libtool.m4: On FreeBSD, fix shlibpath_var.
2024-07-12 Bruno Haible <[email protected]>
Switch to autoconf 2.72, automake 1.17.
* autogen.sh: Update comment.
2024-06-20 Paul Eggert <[email protected]>
avoid unlikely undefined behavior
Problem found by Coverity for diffutils and reported by Wasser Mai in:
https://bugs.gnu.org/71535
* src/stackvma-rofile.c (rof_open) [__linux__ || __FreeBSD__ || etc]:
Don’t assume result of ‘read’ fits in int.
Avoid undefined behavior if ‘n + MIN_LEFTOVER’ would overflow.
Also, move a test to be after an (n == 0) test, to help the compiler.
2024-06-12 Bruno Haible <[email protected]>
Update HACKING.
* HACKING: Mention the multi-platform continuous integration.
2024-05-08 Bruno Haible <[email protected]>
Avoid test failures with ASAN.
* tests/test-catch-stackoverflow1.c (HAVE_STACK_OVERFLOW_RECOVERY):
Undefine if ASAN is enabled.
* tests/test-catch-stackoverflow2.c (HAVE_STACK_OVERFLOW_RECOVERY):
Likewise.
2024-04-04 Bruno Haible <[email protected]>
Fix macro file 'serial' numbers for 'aclocal --install'.
* m4/bold.m4: Make 'serial' effective.
* m4/efault.m4: Likewise.
* m4/fault.m4: Likewise.
* m4/getpagesize.m4: Likewise.
* m4/mmap-anon.m4: Likewise.
* m4/sigaltstack-longjmp.m4: Likewise.
* m4/sigaltstack-siglongjmp.m4: Likewise.
2023-11-09 Bruno Haible <[email protected]>
Port to CHERI.
* m4/fault.m4 (SV_TRY_FAULT): Use 'uintptr_t' instead of
'unsigned long'.
* src/signals-bsd.h (SIGSEGV_FOR_ALL_SIGNALS): On CheriBSD, treat
SIGPROT like SIGSEGV and SIGBUS.
* src/fault-freebsd-arm.h (SIGSEGV_FAULT_STACKPOINTER): Define
differently on CheriBSD.
2023-10-15 Bruno Haible <[email protected]>
Fix compilation error on FreeBSD 5.2.1.
* src/stackvma-freebsd.c: Include <sys/param.h>.
2023-09-18 Bruno Haible <[email protected]>
Fix shared library support on Android.
Patch from <https://savannah.gnu.org/patch/index.php?10393>.
* m4/libtool.m4: On Android, fix library_names_spec and
hardcode_libdir_flag_spec.
2023-08-30 Bruno Haible <[email protected]>
Recognize the *-*-windows* config triplets introduced on 2023-06-26.
* configure.ac: Treat windows* as equivalent to mingw*.
* m4/efault.m4 (SV_SYSCALLS_EFAULT): Likewise.
2023-06-29 Bruno Haible <[email protected]>
Update the installation instructions for Windows.
* INSTALL.windows: Add a note about MSYS2.
2023-06-29 Bruno Haible <[email protected]>
Make the autoconf tests more robust.
Triggered by
https://gitlab.com/redhat/centos-stream/rpms/libsigsegv/-/blob/c9s/configure.patch
from Petr Šabata <[email protected]>.
* m4/fault.m4 (SV_TRY_FAULT): Mark the variables that are accessed by
the signal handler as 'volatile'.
2023-05-21 Bruno Haible <[email protected]>
Support creating shared libraries on Hurd/x86_64.
Patch from
<https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.
* m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
Linux/x86_64.
2023-05-15 Bruno Haible <[email protected]>
Add support for Hurd through the POSIX API.
Suggested by Sergey Bugaev <[email protected]>.
* src/fault-hurd-i386-old.h: Renamed from src/fault-hurd-i386.h.
* src/fault-hurd-i386.h: New file, based on src/fault-hurd-i386-old.h.
* src/Makefile.am (noinst_HEADERS): Add fault-hurd-i386-old.h.
* configure.ac (CFG_FAULT): Use fault-hurd-i386.h or
fault-posix-ucontext.h when the POSIX API works on Hurd.
2023-05-14 Bruno Haible <[email protected]>
Tentative support for Hurd/x86_64.
Reported by Sergey Bugaev <[email protected]>.
* src/fault-hurd.h (SIGSEGV_FAULT_HANDLER_ARGLIST): Change type of
second parameter.
2023-05-14 Bruno Haible <[email protected]>
Fix comments.
* src/fault-hurd-i386.h: Fix comments, based on info by Sergey Bugaev in
<https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00210.html>.
2023-05-12 Bruno Haible <[email protected]>
Tentative support for Hurd/x86_64.
Reported by Samuel Thibault <[email protected]>.
* src/fault-hurd-i386.h: Add support for x86_64 CPU.
* configure.ac (CFG_FAULT): Use fault-hurd-i386.h also on x86_64.
2023-02-26 Bruno Haible <[email protected]>
Modernize handling of m4 macro dirs.
* configure.ac (AC_CONFIG_MACRO_DIRS): Specify the m4 macro dirs here.
* Makefile.am (ACLOCAL_AMFLAGS): ... not here.
* autogen.sh: Update comments.
2023-02-11 Bruno Haible <[email protected]>
Don't let configure tests fail due to the picky clang 16 compiler.
clang 16 will report an error for -Wincompatible-function-pointer-types
by default.
Reported by Sam James <[email protected]> in
<https://savannah.gnu.org/bugs/index.php?63788>.
* configure.ac (MacOSX/Darwin7 PowerPC): Add a cast when assigning to
action.sa_sigaction.
2023-02-11 Bruno Haible <[email protected]>
Add support for clang 16 on OpenBSD and Mac OS X 10/PowerPC.
clang 16 will report an error for -Wincompatible-function-pointer-types
by default.
* src/handler-unix.c (install_for): Add a cast when assigning to
action.sa_sigaction.
2023-01-04 Bruno Haible <[email protected]>
Add support for macOS/x86_64 with clang 15.
Reported at <https://savannah.gnu.org/bugs/?63617>.
* src/handler-macos.c (sigsegv_leave_handler): Add a cast, to silence a
warning that became an error in clang 15.
* NEWS: Mention it.
2022-07-18 Bruno Haible <[email protected]>
Make autopull.sh more suited for continuous integration.
* autopull.sh: Support option --one-time.
2022-07-18 Bruno Haible <[email protected]>
Move gnulib-tool invocation back from autopull.sh to autogen.sh.
* autogen.sh: Revert last change. Improve comments.
* autopull.sh: Only call 'gitsub.sh pull'.
2022-07-17 Bruno Haible <[email protected]>
Split autogen.sh into autopull.sh and autogen.sh.
* autopull.sh: New file, based on autogen.sh.
* autogen.sh: Remove code that was moved to autopull.sh. Remove
--skip-gnulib option.
* HACKING: Mention autopull.sh.
* Makefile.am (EXTRA_DIST): Add HACKING, autogen.sh.
2022-07-10 Bruno Haible <[email protected]>
Optimize stackvma implementation for AIX 7.
Reported by Neha Jain <[email protected]> in
<https://lists.gnu.org/archive/html/bug-m4/2022-06/msg00005.html>
via Eric Blake.
* src/stackvma-aix.c: Add implementation that uses /proc/$pid/map,
based on src/stackvma-procfs.h and gnulib/lib/vma-iter.c.
(sigsegv_get_vma): Use it on AIX 7 or higher.
* configure.ac (CFG_STACKVMA): On AIX, use stackvma-aix.c always.
* NEWS: Mention the improvement.
2022-05-22 Bruno Haible <[email protected]>
Add GNU Project notice.
* JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
on the gnu-prog-discuss mailing list.
* README: Refer to it.
* Makefile.am (EXTRA_DIST): Add it.
2022-05-15 Bruno Haible <[email protected]>
Switch to libtool 2.4.7.
* m4/libtool.m4: Update from libtool-2.4.7.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2022-03-13 Bruno Haible <[email protected]>
Add support for Linux/PowerPC (32-bit) with musl libc.
Reported by Khem Raj <[email protected]> in
<https://lists.gnu.org/archive/html/m4-patches/2022-03/msg00000.html>.
* autogen.sh: Copy also musl.m4.
* configure.ac: Invoke gl_MUSL_LIBC.
* src/fault-linux-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): In the 32-bit
case, handle musl libc differently.
* NEWS: Mention it.
2022-01-07 Bruno Haible <[email protected]>
Prepare for version 2.14.
* configure.ac (AC_INIT): Bump version to 2.14.
* src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
* README: Likewise.
* src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:7:0.
2022-01-07 Bruno Haible <[email protected]>
Improve support for Linux/LoongArch64.
* src/fault-linux-loongarch.h: New file.
* src/Makefile.am (noinst_HEADERS): Add it.
* configure.ac (CFG_FAULT): Use this file on Linux/LoongArch64.
* NEWS: Mention it.
2021-09-13 Bruno Haible <[email protected]>
Improve support for OpenBSD/PowerPC64.
Based on a patch by Christian Weisgerber <[email protected]> at
<https://lists.gnu.org/archive/html/bug-gnulib/2021-09/msg00045.html>.
* src/fault-openbsd-powerpc.h (SIGSEGV_FAULT_STACKPOINTER): Define
differently in 64-bit mode.
* NEWS: Mention it.
2021-08-07 Bruno Haible <[email protected]>
tests: Silence some GCC warnings.
Patch by Paul Eggert.
* tests/test-catch-segv1.c, tests/test-catch-stackoverflow1.c,
tests/test-catch-stackoverflow2.c: Declare some functions and variables
static, to pacify GCC when warning about external functions missing
declarations.
2021-06-09 Bruno Haible <[email protected]>
tests: Hide a null pointer from the compiler's optimizations.
Patch by Paul Eggert.
* tests/test-catch-stackoverflow2.c (null_pointer_to_volatile_int): New
variable.
(main): Use it.
2021-06-06 Bruno Haible <[email protected]>
Avoid a gcc warning "declaration of 'sig' shadows a parameter".
Reported by Dmitry V. Levin <[email protected]> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-06/msg00018.html>.
* src/handler-unix.c (sigsegv_handler): Use a different local variable
name than 'sig'.
2021-05-29 Bruno Haible <[email protected]>
Fix typo in comment.
* src/stackvma-procfs.c: Fix typo in comment, found by Paul Eggert.
* src/stackvma-vma-iter.c: Likewise.
* src/stackvma-beos.c: Likewise.
2021-05-16 Bruno Haible <[email protected]>
Avoid compilation error with glibc >= 2.34.
* lib/sigsegv.h.in (SIGSTKSZ): On glibc systems, redefine to a suitable
constant.
* m4/sigaltstack-longjmp.m4 (SV_TRY_LEAVE_HANDLER_LONGJMP): Likewise.
* m4/sigaltstack-siglongjmp.m4 (SV_TRY_LEAVE_HANDLER_SIGLONGJMP):
Likewise.
2021-05-16 Bruno Haible <[email protected]>
On Cygwin, use the sigaltstack-based approach by default.
* src/fault-cygwin.h: New file.
* src/fault-cygwin-i386.h: New file.
* src/stackvma-cygwin.c: New file, based on src/stackvma-netbsd.c.
* src/stackvma-vma-iter.c: Enable /proc-reading code also on Cygwin.
* src/Makefile.am (noinst_HEADERS): Add fault-cygwin.h,
fault-cygwin-i386.h.
(EXTRA_DIST): Add stackvma-cygwin.c.
* configure.ac: Use fault-cygwin-i386.h instead of
fault-posix-ucontext.h. Add --enable-support-old-cygwin option. When it
is not specified, use handler-unix.c and stackvma-cygwin.c
* NEWS: Mention that 64-bit Cygwin is now supported.
2021-05-16 Bruno Haible <[email protected]>
Simplify: Use the POSIX API instead of Mach API on newer macOS versions.
* src/fault-macos.h: New file.
* src/fault-macos-arm64.h: New file.
* src/fault-macos-i386.h: New file.
* src/fault-macos-powerpc.h: New file.
* src/Makefile.am (noinst_HEADERS): Add them.
* configure.ac (CFG_FAULT): On macOS 10.13 or newer, use fault-macos*.h
and handler-unix.c, instead of handler-macos.c.
2021-05-16 Bruno Haible <[email protected]>
Rename fault-macos-i386.h to fault-macos-i386-old.h.
* src/fault-macos-i386-old.h: Renamed from src/fault-macos-i386.h.
* configure.ac (CFG_FAULT): Update.
* src/Makefile.am (noinst_HEADERS): Likewise.
2021-05-16 Bruno Haible <[email protected]>
Simplify inclusion of stackvma-mincore.c.
* src/stackvma-mincore.c (mincore_get_vma): Renamed from
sigsegv_get_vma.
* src/stackvma-linux.c: No need to define 'sigsegv_get_vma' and 'STATIC'
macros before including stackvma-mincore.c.
* src/stackvma-freebsd.c: Likewise.
* src/stackvma-netbsd.c: Likewise.
* src/stackvma-mquery.c: Likewise.
* src/stackvma-procfs.c: Likewise.
* src/stackvma-aix.c: New file.
* src/Makefile.am (EXTRA_DIST): Add it.
* configure.ac (CFG_STACKVMA): Set to stackvma-aix.c instead of
stackvma-mincore.c.
2021-05-16 Bruno Haible <[email protected]>
Drop supporting outdated way of building on native Windows.
* autogen.sh: Don't create config.h.msvc, src/sigsegv.h.msvc.
* Makefile.msvc: Remove file.
* Makefile.am (EXTRA_DIST): Remove Makefile.msvc, config.h.msvc.
(config.h.msvc): Remove rule.
* src/Makefile.am (EXTRA_DIST): Remove sigsegv.h.msvc.
(sigsegv.h.msvc): Remove rule.
2021-05-16 Bruno Haible <[email protected]>
Moved sigaltstack.m4 and stack-direction.m4 to gnulib.
* m4/sigaltstack.m4: Remove file.
* m4/stack-direction.m4: Remove file.
* autogen.sh: Copy the two files from gnulib.
2021-05-16 Bruno Haible <[email protected]>
Avoid compiler warning.
* src/stackvma-netbsd.c (sigsegv_get_vma): Avoid unreachable statement.
2021-05-15 Bruno Haible <[email protected]>
Avoid warning on systems with musl libc.
* src/stackvma-mincore.c (pageinfo_t): Treat all libcs on Linux like
glibc.
2021-05-15 Bruno Haible <[email protected]>
Rename test files.
* tests/test-catch-segv1.c: Renamed from tests/sigsegv1.c.
* tests/test-catch-segv2.c: Renamed from tests/sigsegv3.c.
* tests/test-catch-stackoverflow1.c: Renamed from
tests/stackoverflow1.c.
* tests/test-catch-stackoverflow2.c: Renamed from
tests/stackoverflow2.c.
* tests/test-segv-dispatcher1.c: Renamed from tests/sigsegv2.c.
* tests/altstack-util.h: Renamed from tests/altstack.h.
* tests/mmap-anon-util.h: Renamed from tests/mmaputil.h.
2021-05-15 Bruno Haible <[email protected]>
Improve comments.
* src/handler-unix.c: Mention Solaris 11 stack_violation().
* src/fault.h: SIGSEGV_FAULT_ADDRESS is not mandatory.
* src/stackvma-mquery.c: Update.
2021-05-15 Bruno Haible <[email protected]>
Fix possible warnings on AIX.
* src/stackvma-mincore.c (MINCORE_ADDR_T): Test _AIX, not UNIX_AIX.
2021-05-15 Bruno Haible <[email protected]>
Improve support for Solaris OpenIndiana.
* configure.ac: Make the test for <sys/procfs.h> succeed on Solaris
OpenIndiana even with -D_XOPEN_SOURCE=700.
* src/stackvma-procfs.c: Define __EXTENSIONS__, for Solaris OpenIndiana.
* NEWS: Mention the change.
2021-02-28 Bruno Haible <[email protected]>
Update DEPENDENCIES.
* DEPENDENCIES: List the normal dependencies of a package with an
Autoconf-generated configure file.
2021-02-20 Bruno Haible <[email protected]>
Support creating shared libraries on MidnightBSD.
Patch from <https://savannah.gnu.org/patch/?10007>.
* m4/libtool.m4: Treat MidnightBSD like FreeBSD.
* build-aux/ltmain.sh: Likewise.
* configure.ac (CFG_SIGNALS): Likewise.
* NEWS: Mention it.
2021-02-20 Bruno Haible <[email protected]>
Switch to autoconf 2.71.
* autogen.sh: Update comment.
2021-01-16 Bruno Haible <[email protected]>
Prepare for version 2.13.
* configure.ac (AC_INIT): Bump version to 2.13.
* src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
* README: Likewise.
* src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:6:0.
* NEWS: Add entries.
2021-01-16 Bruno Haible <[email protected]>
Add support for catching stack overflow on 64-bit Haiku.
* src/stackvma-beos.c (vma_iterate): Adapt to changed signature of
get_next_area_info.
2021-01-16 Bruno Haible <[email protected]>
Fix compilation errors and warnings on Solaris OpenIndiana.
* src/handler-unix.c: Define __EXTENSIONS__.
* src/stackvma-mincore.c: Likewise.
2021-01-16 Bruno Haible <[email protected]>
Override value of SIGSTKSZ on 64-bit Solaris/x86_64.
* src/sigsegv.h.in: On 64-bit Solaris/x86_64, set SIGSTKSZ to 16 KB.
2021-01-16 Bruno Haible <[email protected]>
Add support for catching stack overflow on Solaris 11/SPARC.
* src/fault-solaris11-sparc.h: New file.
* src/Makefile.am (noinst_HEADERS): Add it.
* configure.ac (CFG_FAULT): Choose it on Solaris 11/SPARC.
2021-01-11 Bruno Haible <[email protected]>
Find stack detection reliably, even with GCC >= 10.
Reported by Andreas Schwab <[email protected]> in
<https://savannah.gnu.org/bugs/?59714>.
* m4/stack-direction.m4 (SV_STACK_DIRECTION): In the test program, use
the find_stack_direction function from Autoconf 2.70 (with parameters
that depend on argc, and with a recursion depth 20 instead of 2).
2021-01-11 Bruno Haible <[email protected]>
Switch to automake 1.16.3.
* autogen.sh: Update comment.
2020-12-08 Bruno Haible <[email protected]>
Switch to autoconf 2.70.
* autogen.sh: Update comment.
2020-12-04 Bruno Haible <[email protected]>
Improve support for FreeBSD/arm and FreeBSD/arm64.
* src/fault-freebsd-arm.h: New file.
* src/Makefile.am (noinst_HEADERS): Add it.
* configure.ac (CFG_FAULT): Use this file on FreeBSD/arm and
FreeBSD/arm64.
2020-12-04 Bruno Haible <[email protected]>
Improve support for FreeBSD/x86 and FreeBSD/x86_64.
* src/fault-freebsd-i386.h: Add alternative code that uses SA_SIGINFO.
2020-12-04 Bruno Haible <[email protected]>
Add support for macOS on arm64.
Helped by Hill Ma <[email protected]> in
<https://savannah.gnu.org/bugs/?59539>.
* src/handler-macos.c (catch_exception_raise): Align the stack also on
arm64 CPUs.
2020-12-02 Bruno Haible <[email protected]>
Improve porting documentation.
* PORTING: Add some more porting tips.
2020-12-01 Bruno Haible <[email protected]>
Add configure option --disable-stackvma, for testing the fault-* files.
* configure.ac: Add option --enable/disable-stackvma. Set CFG_STACKVMA
to 'stackvma-none.c' if --disable-stackvma was specified.
2020-12-01 Bruno Haible <[email protected]>
Use canonical test for arm64 CPU.
This is for consistency with gnulib and with predef.sourceforge.net.
* configure.ac: Test __aarch64__, not __arm64__.
* src/handler-macos.c: Likewise.
* src/machfault-macos.h: Likewise.
* src/stackvma-mach.c: Likewise.
2020-11-29 Hill Ma <[email protected]>
mach: macos: preliminary support for darwin arm64.
* configure.ac: Treat macos/arm64 like the other macos platforms.
* src/handler-macos.c (sigsegv_leave_handler): On arm64, pass arguments
in registers.
* src/machfault-macos.h (SIGSEGV_*): Define appropriately for arm64.
* src/stackvma-mach.c (sigsegv_get_vma): On arm64, use 64-bit type
definitions.
2020-10-04 Bruno Haible <[email protected]>
build: Fix warnings from Autoconf 2.69c.
* configure.ac: Move AM_INIT_AUTOMAKE arguments to AC_INIT. Use
AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_LINK_IFELSE.
Update AC_OUTPUT invocation.
2020-09-06 Bruno Haible <[email protected]>
build: Update after gnulib changed.
* configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
2019-09-01 Bruno Haible <[email protected]>
build: Add support for shallow-cloning of subdirectories.
* gitsub.sh (func_usage): Document allowed git options with 'git pull'.
(func_pull): Accept GIT_OPTIONS argument.
(pull): Parse git options before complaining about too many arguments.
Pass the git options to func_pull.
2019-08-07 Nylon Chen <[email protected]>
Improve support for Linux/NDS32.
* src/fault-linux-nds32.h: New file.
* src/Makefile.am (noinst_HEADERS): Add it.
* configure.ac (CFG_FAULT): Use this file on Linux/NDS32.
* m4/stack-direction.m4: Add stack direction for NDS32.
2019-05-11 Bruno Haible <[email protected]>
Update bug reporting instructions.
* README: Tell users to report bugs in the bug tracker or by email.
2019-04-01 Bruno Haible <[email protected]>
build: Separate git operations from build operations.
* gitsub.sh: New file, from gnulib.
* .gitmodules: New file.
* autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
environment variable. Ignore the GNULIB_TOOL environment variable.
* HACKING: New file.
* DEPENDENCIES: New file.
2019-01-28 Bruno Haible <[email protected]>
Improve support for Android.
* src/stackvma-mincore.c (pageinfo_t): Set to 'unsigned char' on
Android.
* src/stackvma-rofile.c: Treat Android like Linux.
* src/stackvma-vma-iter.c: Likewise.
2018-11-13 Thomas Petazzoni <[email protected]>
Fix cross-compilation for RISC-V.
* m4/stack-direction.m4: Add stack direction for RISC-V.
2018-10-24 Bruno Haible <[email protected]>
Update after gnulib changed.
* configure.ac (AC_PREREQ): Require Autoconf >= 2.63.
2018-03-15 Bruno Haible <[email protected]>
Improve support for Linux/RISC-V.
* src/fault-linux-riscv64.h: New file.
* src/Makefile.am (noinst_HEADERS): Add it.
* configure.ac (CFG_FAULT): Use this file on Linux/riscv64.
2018-02-18 Bruno Haible <[email protected]>
Avoid "warning: command substitution: ignored null byte in input".
Reported by Nelson Beebe.
* m4/bold.m4 (RSE_BOLD): For vt100, remove trailing NUL bytes. Only
physical terminals need these NULs; physical terminals are not in use
any more nowadays.
2018-02-03 Bruno Haible <[email protected]>
Fix compilation error on Solaris 11 Dyson in 64-bit mode.
* src/fault-solaris-i386.h (SIGSEGV_FAULT_STACKPOINTER): In 64-bit mode,
use the 64-bit stack pointer.
2018-01-27 Bruno Haible <[email protected]>
Rename some file.
* INSTALL.windows: Renamed from README.windows.
* Makefile.am (EXTRA_DIST): Update.
2018-01-16 Bruno Haible <[email protected]>
Prepare for new release.
* configure.ac: Bump version number to 2.12.
* src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
* README: Likewise.
* src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:5:0.
* NEWS: Mention some more improvements.
2018-01-16 Bruno Haible <[email protected]>
Correct distinction between stack overflow and other fault on AIX.
* src/stackvma-mincore.c (MINCORE_ADDR_T): New type.
(is_mapped, mapped_range_start, mapped_range_end): Use it.
* configure.ac: Don't use stackvma-procfs.c on AIX.
* NEWS: Mention the improvement.
2017-10-29 Bruno Haible <[email protected]>
Improve Haiku support.
* src/fault-haiku.h: New file.
* src/fault-haiku-i386.h: New file.
* src/Makefile.am (noinst_HEADERS): Add them.
* configure.ac: On Haiku, use fault-haiku-i386.h instead of just
fault-posix.h, and use stackvma-beos.c instead of stackvma-none.c.
* NEWS: Mention the improvement.
2017-10-09 Bruno Haible <[email protected]>
Avoid build failures caused by parallel make.
* Makefile.am (GNUMAKEFLAGS): New variable.
2017-10-08 Bruno Haible <[email protected]>
Make VMA detection more reliable on FreeBSD.
* src/stackvma-vma-iter.c (vma_iterate_proc): Extracted from vma_iterate.
(vma_iterate_bsd): New function.
(vma_iterate): Call both, in the appropriate order.
* src/stackvma-freebsd.c: Include <sys/user.h> and <sys/sysctl.h>.
2017-10-08 Bruno Haible <[email protected]>
Fix broken VMA detection on NetBSD (regression from 2017-10-07).
* src/stackvma-rofile.c (MIN_LEFTOVER): Define to 1, not 0.
2017-10-07 Bruno Haible <[email protected]>
Fix broken VMA detection on Linux (regression from 2017-09-28).
* src/stackvma-rofile.c (MIN_LEFTOVER): New macro.
(STACK_ALLOCATED_BUFFER_SIZE): New macro.
(rof_open): On Linux, do multiple read() calls and make sure
MIN_LEFTOVER bytes are left when read() returns.
2017-10-06 Bruno Haible <[email protected]>
Fix definition of SIGSEGV_FAULT_ADDRESS_ALIGNMENT: don't break clisp.
Existing versions of clisp expect that SIGSEGV_FAULT_ADDRESS_ALIGNMENT
is a constant expression. We cannot include a variable reference or
a function call in it.
* src/sigsegv.h.in (SIGSEGV_FAULT_ADDRESS_ALIGNMENT): Define as a
constant expression.
* tests/sigsegv1.c (SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS): Define based
on SIGSEGV_FAULT_ADDRESS_ALIGNMENT.
(handler): Use it.
* tests/sigsegv3.c: Likewise.
2017-10-05 Bruno Haible <[email protected]>
Fix support for NetBSD/sparc on SPARC64 machines.
* src/sigsegv.h.in (SIGSEGV_FAULT_ADDRESS_ALIGNMENT) [NetBSD/sparc]:
Use getpagesize().
* m4/fault.m4 (SV_TRY_FAULT): On NetBSD/sparc, use getpagesize().
2017-10-03 Bruno Haible <[email protected]>
Add support for NetBSD/sparc.
* src/sigsegv.h.in (SIGSEGV_FAULT_ADDRESS_ALIGNMENT) [NetBSD/sparc]:
Define to 0x1000.
* m4/fault.m4 (SV_TRY_FAULT): On NetBSD/sparc, set
SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS like on Linux/s390.
2017-10-03 Bruno Haible <[email protected]>
Fix a message.
* tests/sigsegv3.c (handler): Fix message.
2017-10-01 Bruno Haible <[email protected]>
Comment.
* configure.ac: Add a comment about GNU/Hurd.
2017-09-29 Bruno Haible <[email protected]>
Make stack VMA detection work on GNU/kFreeBSD even without mincore.
It needs to use the vma_iterate for Linux combined with the callback
for FreeBSD.
* src/stackvma-vma-iter.c: New file, extracted from
src/stackvma-linux.c, src/stackvma-freebsd.c, src/stackvma-netbsd.c.
* src/stackvma-linux.c: Include stackvma-vma-iter.c.
(vma_iterate): Moved to src/stackvma-vma-iter.c.
* src/stackvma-freebsd.c: Likewise.
* src/stackvma-netbsd.c: Likewise.
* src/Makefile.am (EXTRA_DIST): Add stackvma-vma-iter.c.
* configure.ac (CFG_STACKVMA): Treat GNU/kFreeBSD like FreeBSD.
2017-09-28 Bruno Haible <[email protected]>
Make stack VMA detection code more maintainable.
* src/stackvma-linux.c (struct callback_locals): New type.
(callback): New function.
(vma_iterate): New function, extracted from gnulib's lib/vma-iter.c.
(sigsegv_get_vma): Use vma_iterate.
* src/stackvma-freebsd.c: Likewise.
* src/stackvma-netbsd.c: Likewise.
* src/stackvma-beos.c: Likewise.
* src/stackvma-procfs.c: Likewise.
(sigsegv_get_vma_fallback): Inline and remove function.
2017-09-28 Bruno Haible <[email protected]>
Make stack VMA detection more reliable on Linux, FreeBSD, NetBSD.
* src/stackvma-rofile.c (struct rofile, rof_open, rof_peekchar,
rof_close): Read the entire file into memory in a single system call.
* src/stackvma-linux.c (sigsegv_get_vma): Update.
* src/stackvma-freebsd.c (sigsegv_get_vma): Likewise.
* src/stackvma-netbsd.c (sigsegv_get_vma): Likewise.
2017-07-15 Bruno Haible <[email protected]>
Get rid of autom4te.cache directory (left over from autoconf, automake).
* autogen.sh: Remove autom4te.cache directory.
2017-03-10 Bruno Haible <[email protected]>
Fix a comment.
* src/stackvma-mincore.c: Update comment regarding Mac OS X.
2017-03-04 Bruno Haible <[email protected]>
Avoid use of glibc-internal macros.
* src/fault-linux-arm.h: Use compiler-defined preprocessor macros,
rather than __WORDSIZE.
* src/fault-linux-powerpc.h: Likewise.
* src/fault-linux-sparc.h: Likewise.
* src/fault-linux-sparc-old.h: Likewise.
Reported by Andreas Schwab <[email protected]>.
2017-02-21 Bruno Haible <[email protected]>
Improve Hurd/i386 support.
* src/fault-hurd-i386.h: New file.
* src/Makefile.am (noinst_HEADERS): Add it.
* configure.ac: Use it on Hurd/i386.
* NEWS: Document the improvement.
2017-02-18 Bruno Haible <[email protected]>
Prepare for new release.
* configure.ac: Bump version number to 2.11.
* src/sigsegv.h.in (LIBSIGSEGV_VERSION): Likewise.
* README: Likewise.
* src/Makefile.am (LIBSIGSEGV_VERSION_INFO): Bump to 2:4:0.
* NEWS: Mention the <stdint.h> requirement.
2017-02-18 Bruno Haible <[email protected]>
Improve cross-compilation guesses.
* configure.ac: Include results on kFreeBSD9.0.
Treat FreeBSD >= 10 like FreeBSD 4 to 9.
2017-02-18 Bruno Haible <[email protected]>
On Solaris, prefer the newer /proc fs API to the older (deprecated) one.
Reported by Roger Faulkner in
https://savannah.gnu.org/bugs/?42187 .
* configure.ac: Accept <sys/procfs.h> even if it does no longer define
PIOCNMAP and PIOCMAP.
* src/stackvma-procfs.c: Define _STRUCTURED_PROC before including
<sys/procfs.h>.
(sigsegv_get_vma_fallback): New function.
(sigsegv_get_vma): If PIOCNMAP and PIOCMAP are no longer defined, use
the newer /proc interface.
2017-02-18 Bruno Haible <[email protected]>
Override value of SIGSTKSZ on 64-bit AIX and on HP-UX.
* src/sigsegv.h.in: On 64-bit AIX, set SIGSTKSZ to 8 KB.
On HP-UX, set SIGSTKSZ to 16 KB.
* NEWS: Document the improvement.
2017-02-18 Bruno Haible <[email protected]>
Improve Linux/aarch64 support.
* src/fault-linux-arm.h: Add code for aarch64.
* configure.ac: For aarch64 platforms, use fault-linux-arm.h.
2017-02-18 Bruno Haible <[email protected]>
Make stack overflow detection work on Linux/sparc.
* src/fault-linux-sparc.h (SIGSEGV_FAULT_STACKPOINTER): Fix: ucp is a
'struct sigcontext *', not an 'ucontext_t *'.
(BOGUS_FAULT_ADDRESS_UPON_STACK_OVERFLOW): New macro.
* src/handler-unix.c (sigsegv_handler): Handle the
BOGUS_FAULT_ADDRESS_UPON_STACK_OVERFLOW case.
Handle errno consistently.
* NEWS: Document the improvement.
2017-02-18 Bruno Haible <[email protected]>
Fix glibc version determination.
* configure.ac (glibcversion): Use postprocessing that works also with
gcc 5 or newer.
2017-02-18 Bruno Haible <[email protected]>
Update comments.
* src/fault-linux-*.h: Update references to the glibc sources.
2017-01-10 Bruno Haible <[email protected]>
Update README.
* README: Prefer https URLs over http or ftp URLs.
2016-12-04 Bruno Haible <[email protected]>
Always use the newest released copies of files brought in from Automake.
* autogen.sh: Make sure to get new versions of files brought in by
automake.
2016-11-27 Bruno Haible <[email protected]>
Fix compilation error on Cygwin, regression from 2016-10-22.
* src/sigsegv.h.in: Include <stddef.h>.
2016-11-23 Bruno Haible <[email protected]>
Update installation instructions for Windows.
* README.windows: Assume a 64-bit Windows. Explain both 32-bit and
64-bit builds. Revamp instructions for the MS Visual C/C++ tool chain
and for Cygwin.
2016-11-23 Bruno Haible <[email protected]>
Drop the nickname "woe32".
* README.windows: Renamed from README.woe32.
* README: Update.
* Makefile.am (EXTRA_DIST): Update.
2016-10-22 Bruno Haible <[email protected]>
Support for platforms with 32-bit 'long' and 64-bit pointers.
* src/sigsegv.h.in: Use 'size_t' instead of 'unsigned long'.
* src/stackvma.h: Include <stdint.h>. Use 'uintptr_t' instead of
'unsigned long'.
* src/stackvma-*.c: Use 'uintptr_t' instead of 'unsigned long'.
* src/dispatcher.c: Include <stdint.h>. Use 'uintptr_t' or 'size_t'
instead of 'unsigned long'.
* src/handler-*.c: Likewise.
* tests/mmaputil.h: Use 'uintptr_t' or 'size_t' instead of
'unsigned long'.
* tests/sigsegv1.c: Include <stdint.h>. Use 'uintptr_t' instead of
'unsigned long'.
* tests/sigsegv2.c: Likewise.
* tests/sigsegv3.c: Likewise.
* tests/stackoverflow2.c: Likewise.
Reported by Nate Sigrist in <https://savannah.gnu.org/bugs/?37604>.
2016-10-22 Bruno Haible <[email protected]>
Switch to libtool 2.4.6.
* m4/libtool.m4: Update from libtool-2.4.6.
* m4/ltoptions.m4: Likewise.
* m4/ltversion.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2016-10-22 Bruno Haible <[email protected]>
Switch to automake 1.15.
* autogen.sh: Update comment.
* src/Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
* tests/Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
* build-aux/.gitignore: Ignore more files.
2015-12-03 Waldemar Brodkorb <[email protected]>
* src/fault-linux-sparc.h (SIGSEGV_FAULT_STACKPOINTER)
<__WORDSIZE == 64>: New macro.
2014-12-30 Simon Dawson <[email protected]> (tiny change)
Will Newton <[email protected]> (tiny change)
Spenser Gilliland <[email protected]> (tiny change)
Thomas Petazzoni <[email protected]> (tiny change)
* m4/stack-direction.m4: Add stack direction info for various
processors.
2012-09-09 Bruno Haible <[email protected]>
Support for OpenBSD 5.2 on m88k and sh processors.
* src/fault-openbsd-m88k.h: Update for OpenBSD 5.2.
* src/fault-openbsd-sh.h: Likewise.
Reported by Brad Smith <[email protected]>
at <https://savannah.gnu.org/bugs/?37288>.
2012-04-28 Bruno Haible <[email protected]>
Allow use of autoconf-2.69 and automake-1.12.
* autogen.sh: Update comments.
2011-10-18 Bruno Haible <[email protected]>
* m4/libtool.m4: Update from libtool-2.4.2.
* m4/ltoptions.m4: Likewise.
* m4/ltversion.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
2011-09-30 Bruno Haible <[email protected]>
Update known platforms list.
* configure.ac (POSIX): Add Linux/SPARC to the known platforms.
2011-09-30 Bruno Haible <[email protected]>
Work around an mprotect(...,PROT_READ) bug on Linux 2.6.26/SPARC64.
* m4/fault.m4 (SV_TRY_FAULT): On Linux/SPARC, use PROT_NONE instead of
PROT_READ.
* tests/sigsegv1.c (main): Likewise.
* tests/sigsegv2.c (main): Likewise.
* tests/sigsegv3.c (main): Likewise.
* tests/stackoverflow2.c (main): Likewise.
2011-09-10 Bruno Haible <[email protected]>
Adhere to Win32 API.
* src/handler-win32.c (main_exception_filter): Use
EXCEPTION_STACK_OVERFLOW, not STATUS_STACK_OVERFLOW.
2011-05-03 Eric Blake <[email protected]>
Avoid polluting cygwin namespace.
* configure.ac (FAULT_CONTEXT_INCLUDE): Avoid including
<windows.h> on cygwin.
Reported by Corinna Vinschen, via Aharon Robbins.
2011-04-03 Bruno Haible <[email protected]>
* Version 2.10 released.
2011-04-03 Bruno Haible <[email protected]>
Don't ask for success reports on MacOS X any more.
* Makefile.am (check-next): No longer ask for success reports on
MacOS X.
2011-04-03 Bruno Haible <[email protected]>
Bump version number.