Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEMP: debug segmentation faults on msys2 mingw64 #3057

Conversation

masatake
Copy link
Member

@masatake masatake commented Jun 7, 2021

Don't merge this.

@masatake masatake force-pushed the TEMP-debug-segmentation-faults-on-MSYS2-MINGW64 branch 7 times, most recently from bf971f7 to 6d7e768 Compare June 7, 2021 17:38
hirooih and others added 7 commits June 8, 2021 03:14
commit f3553bdefc9202e81996c73686e3ca53cd827417 (HEAD -> master, origin/master, origin/HEAD)
Date:   Fri Jun 4 22:27:10 2021 +0200

$ gnulib-tool --source-base=gnulib --no-vc-files --import regex
gnulib-tool: *** minimum supported autoconf version is 2.64. Try adding AC_PREREQ([2.64]) to your configure.ac.
gnulib-tool: *** Stop.

edit AC_PREREQ version in configure.ac

$ gnulib-tool --source-base=gnulib --no-vc-files --import regex
basically followed the output of gnulib-tool;

$ gnulib-tool --source-base=gnulib --no-vc-files --import regex
Module list with included dependencies (indented):
...
You may need to add #include directives for the following .h files.
  #include <regex.h>

You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
  $(LIBTHREAD)
  $(LIB_HARD_LOCALE)
  $(LIB_MBRTOWC)
  $(LIB_SETLOCALE_NULL)
  $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise

Don't forget to
  - add "gnulib/Makefile" to AC_CONFIG_FILES in ./configure.ac,
  - mention "gnulib" in SUBDIRS in Makefile.am,
  - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am,
  - mention "m4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
  - replace AC_PROG_CC_C99 with AC_PROG_CC in ./configure.ac,
  - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC_C99,
  - invoke gl_INIT in ./configure.ac.
$
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the TEMP-debug-segmentation-faults-on-MSYS2-MINGW64 branch from 6d7e768 to e2d5946 Compare June 7, 2021 18:16
@masatake masatake force-pushed the TEMP-debug-segmentation-faults-on-MSYS2-MINGW64 branch from cafa769 to 30de12b Compare June 7, 2021 18:47
@masatake masatake force-pushed the TEMP-debug-segmentation-faults-on-MSYS2-MINGW64 branch 2 times, most recently from ba70240 to 31bd571 Compare June 7, 2021 19:38
@masatake masatake force-pushed the TEMP-debug-segmentation-faults-on-MSYS2-MINGW64 branch from 31bd571 to 34cc13a Compare June 7, 2021 19:48
@masatake
Copy link
Member Author

masatake commented Jun 8, 2021

The segment violation occurs in regcomp.
The stack is corrupted. Therefore backtrace of gdb doesn't work. I must put more debug-prints to regcomp.

@masatake
Copy link
Member Author

masatake commented Jun 8, 2021

This pull request illustrated how to debug a failure on a CI/CD environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants