Mail Archives: djgpp-workers/2001/07/27/23:46:14
> > One possibility would be to turn on malloc debugging in Make (see
> > "info libc alpha malloc_debug" in the CVS version of the library), and
> > set the debug level to the highest possible value. If this is a
> > genuine memory allocation bug, the malloc debugging code might catch
> > it.
Interesting as the problem changed when I added the malloc_debug(x)
function call in make.c. The test was to delete all the *.o and make.exe
before running make. The exe with the malloc_debug(x) took considerably
longer to start to do anything and as the value moved from 1 to 4 the longer
it took. The results were, I sprinkled malloc_verify() in a number of
functions in job.c with malloc_debug(4) , but there was no new lines or
info in the output from make.
Any other ideas or hunches or clues? I have
malloc_debug(1) results:
================
d:/dj204/gnu/make-3.791/make.exe all-recursive
make.exe[1]: Entering directory `d:/dj204/gnu/make-3.791'
Extended Error 183
Making all in glob
d:/dj204/gnu/make-3.791/make.exe -C glob -f ../Makefile
INCLUDES='-I. -I./glob'
DEFS='-I.. -I.' VPATH=./glob libglob.a
make.exe[2]: Entering directory `d:/dj204/gnu/make-3.791/glob'
gcc -I.. -I. -I. -I./glob -DHAVE_CONFIG_H -O2 -g -c fnmatch.c
gcc -I.. -I. -I. -I./glob -DHAVE_CONFIG_H -O2 -g -c glob.c
command.com /c if exist libglob.a del libglob.a
ar cru libglob.a fnmatch.o glob.o
ranlib libglob.a
make.exe[2]: Leaving directory `d:/dj204/gnu/make-3.791/glob'
make.exe[1]: Leaving directory `d:/dj204/gnu/make-3.791'
gcc -I. -I. -I. -I./glob -DLIBDIR=\"c:/djgpp/lib\" -DINCLUDEDIR=\"c:/djgpp/i
nclu
de\" -DLOCALEDIR=\"/share/locale\" -DHAVE_CONFIG_H -O2 -g -c ar.c
Exiting due to signal SIGSEGV
General Protection Fault at eip=0001af48
eax=ff970000 ebx=ff970000 ecx=000001e9 edx=ff980000 esi=ff971210
edi=00001200
ebp=000b63f4 esp=000b63cc program=d:\dj204\lib\gcc-lib\djgpp\2.953\cpp0.exe
cs: sel=0427 base=01e90000 limit=7e15ffff
ds: sel=042f base=01e90000 limit=7e15ffff
es: sel=042f base=01e90000 limit=7e15ffff
fs: sel=03ff base=0000ee80 limit=0000ffff
gs: sel=043f base=00000000 limit=0010ffff
ss: sel=042f base=01e90000 limit=7e15ffff
App stack: [000b69ec..000369ec] Exceptn stack: [000368dc..0003499c]
Call frame traceback EIPs:
0x0001af48 _build_vpath_lists+128, line 104 of vpath.c
0x000127e6 _read_makefile+5494, line 1023 of read.c
0x0000a3e1 _pattern_search+1853, line 416 of implicit.c
0x00009a28 _try_implicit_rule+36, line 40 of implicit.c
0x000086c1 _handle_function+253, line 1773 of function.c
0x00006823 _find_next_argument+55, line 296 of function.c
0x0000a536 _pattern_search+2194, line 476 of implicit.c
0x00009a28 _try_implicit_rule+36, line 40 of implicit.c
0x000086c1 _handle_function+253, line 1773 of function.c
0x00006823 _find_next_argument+55, line 296 of function.c
0x0000594a _file_timestamp_sprintf+778, line 657 of file.c
0x00017e7f _convert_suffix_rule+327, line 231 of rule.c
make.exe: *** [ar.o] Error 1
malloc_debug(2) results:
================
same as malloc_debug(1) results.
malloc_debug(3) results:
================
same as malloc_debug(1) results.
malloc_debug(4) results:
================
same as malloc_debug(1) results.
malloc_debug(0) results:
================
Back to the "standard" crash message in malloc.
DJGPP_204 D:\dj204\gnu\make-3.791>make
d:/dj204/gnu/make-3.791/make.exe all-recursive
make.exe[1]: Entering directory `d:/dj204/gnu/make-3.791'
Extended Error 183
Exiting due to signal SIGSEGV
General Protection Fault at eip=00020858
eax=ffa90000 ebx=ffa90000 ecx=000001d7 edx=ffaa0000 esi=ffa94010
edi=00004000
ebp=000c052c esp=000c0504 program=d:\dj204\gnu\make-3.791\make.exe
cs: sel=01f7 base=01d70000 limit=7e27ffff
ds: sel=01ff base=01d70000 limit=7e27ffff
es: sel=01ff base=01d70000 limit=7e27ffff
fs: sel=01cf base=0000a4c0 limit=0000ffff
gs: sel=020f base=00000000 limit=0010ffff
ss: sel=01ff base=01d70000 limit=7e27ffff
App stack: [000c56b4..000456b4] Exceptn stack: [000450c0..00043180]
Call frame traceback EIPs:
0x00020858 _malloc+620
0x0003417c __flsbuf+92
0x00022151 _fputs+257
0x00025c9f __shell_command+1179
0x00026ad1 _system+649
0x0000b58f _start_job_command+751, line 1176 of job.c
0x0000afc3 _reap_children+899, line 710 of job.c
0x0000ba4c _new_job+600, line 1525 of job.c
0x00002b30 _execute_file_commands+152, line 363 of commands.c
0x00017057 _remake_file+255, line 1009 of remake.c
0x00016743 _update_file_1+2731, line 661 of remake.c
0x0001564a _update_file+186, line 309 of remake.c
0x00015351 _update_goal_chain+285, line 156 of remake.c
0x0000eb76 _main+4806, line 1914 of main.c
0x0002018f ___crt1_startup+203
make.exe: *** [all-recursive-am] Error -1
DJGPP_204 D:\dj204\gnu\make-3.791>symify make.exe
- Raw text -