[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segmentation fault - can someone give me a workaround?
From: |
Mark Galeck |
Subject: |
segmentation fault - can someone give me a workaround? |
Date: |
Fri, 18 Jan 2013 10:49:06 -0800 (PST) |
Hello,
we are using GNU Make 3.82, and I just asked the admin to reinstall it, just in
case the installation went south. But still, I am getting a segmentation
fault.
I will show you below a smallest possible sample case, but, the fault happens a
lot in similar cases. So I am hoping someone (Paul?) can look and give me a
workaround. Tell what kind of thing to avoid, so the bug does not bite me.
Here is the smallest makefile that reproduces the problem for me:
I do
>make clean; make bin/sw/libfoobar.a
.SUFFIXES:
.SECONDEXPANSION:
sw/OBJS := bin/sw/foobar.o
bin/%.a: $(sw/OBJS) Makefile | $$(@D)/.
touch $@
bin/%.o: %.cpp Makefile | $$(@D)/.
touch $@
################################################################################
# make a directory
# directory targets are recognized with suffix /.
################################################################################
%/.:
mkdir -p $@
clean:
rm -rf bin
I don't know if this is of any use to you, but here is the seg fault message:
$ make clean; make bin/sw/libfoobar.a
rm -rf bin
*** glibc detected *** make: free(): invalid next size (fast):
0x0000000001c69650 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3c8347da76]
/lib64/libc.so.6[0x3c8347ed5e]
make[0x40e24e]
make[0x40e49f]
make[0x419fd6]
make[0x41a5a7]
make[0x403a9b]
/lib64/libc.so.6(__libc_start_main+0xed)[0x3c8342169d]
make[0x404205]
======= Memory map: ========
00400000-00429000 r-xp 00000000 fd:01 658278
/usr/bin/make
00628000-00629000 r--p 00028000 fd:01 658278
/usr/bin/make
00629000-0062b000 rw-p 00029000 fd:01 658278
/usr/bin/make
0062b000-0062c000 rw-p 00000000 00:00 0
01c46000-01c88000 rw-p 00000000 00:00 0 [heap]
3c82c00000-3c82c22000 r-xp 00000000 fd:01 2883642
/lib64/ld-2.14.90.so
3c82e21000-3c82e22000 r--p 00021000 fd:01 2883642
/lib64/ld-2.14.90.so
3c82e22000-3c82e23000 rw-p 00022000 fd:01 2883642
/lib64/ld-2.14.90.so
3c82e23000-3c82e24000 rw-p 00000000 00:00 0
3c83400000-3c835ad000 r-xp 00000000 fd:01 2883661
/lib64/libc-2.14.90.so
3c835ad000-3c837ad000 ---p 001ad000 fd:01 2883661
/lib64/libc-2.14.90.so
3c837ad000-3c837b1000 r--p 001ad000 fd:01 2883661
/lib64/libc-2.14.90.so
3c837b1000-3c837b3000 rw-p 001b1000 fd:01 2883661
/lib64/libc-2.14.90.so
3c837b3000-3c837b8000 rw-p 00000000 00:00 0
3c84c00000-3c84c15000 r-xp 00000000 fd:01 2886553
/lib64/libgcc_s-4.6.3-20120306.so.1
3c84c15000-3c84e14000 ---p 00015000 fd:01 2886553
/lib64/libgcc_s-4.6.3-20120306.so.1
3c84e14000-3c84e15000 rw-p 00014000 fd:01 2886553
/lib64/libgcc_s-4.6.3-20120306.so.1
7fe075a53000-7fe07be76000 r--p 00000000 fd:01 675985
/usr/lib/locale/locale-archive
7fe07be76000-7fe07be79000 rw-p 00000000 00:00 0
7fe07be9f000-7fe07bea1000 rw-p 00000000 00:00 0
7ffffa0d2000-7ffffa0f3000 rw-p 00000000 00:00 0 [stack]
7ffffa1ff000-7ffffa200000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
Aborted (core dumped)
- segmentation fault - can someone give me a workaround?,
Mark Galeck <=