bugmake - Bugs: bug #26593, Assertion failure when building...

 
 

bug #26593: Assertion failure when building glibc with CVS make

Submitted by:  None
Submitted on:  Sat 16 May 2009 02:19:19 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 4.0Operating System: POSIX-Based
Fixed Release: 3.82Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 04 Jun 2009 05:25:54 AM UTC, comment #3:

Yes, this is bad. The fix is simple as you suggest.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Tue 19 May 2009 06:06:40 PM UTC, comment #2:

Here's a smaller test case:

$ cat test.make

all: foo.suffix1 foo.suffix2 prefix1.foo prefix2.foo

prefix1.% prefix2.%: %.original
@echo $@
%.suffix1 %.suffix2: %.original
@echo $@

.PHONY: foo.original

# Expected output
$ make -f test.make
foo.suffix1
prefix1.foo

# Actual output
$ ./make -f test.make
foo.suffix1
foo.suffix2
make: file.c:147: enter_file: Assertion `*name != '\0'' failed.
Aborted

Mark Seaborn <markseaborn>
Sat 16 May 2009 02:41:24 PM UTC, comment #1:

I notice that this bug was reported previously but without a fix being proposed:
http://www.mail-archive.com/bug-make@gnu.org/msg04620.html
"Make fails on glibc build"

By the way, the previous message was posted by me (mrs@mythic-beasts.com) but I wasn't logged in to Savannah at the time.

Mark

Mark Seaborn <markseaborn>
Sat 16 May 2009 02:19:19 PM UTC, original submission:

I got the following assertion failure when building GNU libc with the current CVS version of make:

make[1]: Leaving directory `/work/nacl/2/googleclient/native_client/glibc-2.9/elf'
make: file.c:147: enter_file: Assertion `*name != '\0'' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xf7e516b0 (LWP 21888)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xf7e96085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xf7e97a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xf7e8f10e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0x0804eba2 in enter_file (name=0x807205f "") at file.c:147
#5 0x080532c7 in pattern_search (file=0x8219f78,
archive=<value optimized out>, depth=7, recursions=0) at implicit.c:933
#6 0x08053ab0 in try_implicit_rule (file=0x8219f78, depth=7) at implicit.c:47
#7 0x08060734 in update_file (file=0x8219f78, depth=6) at remake.c:454
#8 0x080610c7 in check_dep (file=0x8219f78, depth=6,
this_mtime=1332272353123500035, must_make_ptr=0xffb8c4e0) at remake.c:945
#9 0x0805fefa in update_file (file=0x81a8d90, depth=4) at remake.c:509
#10 0x080610c7 in check_dep (file=0x81a8d90, depth=4, this_mtime=1,
must_make_ptr=0xffb8c5d0) at remake.c:945
#11 0x0805fefa in update_file (file=0x81ade28, depth=2) at remake.c:509
#12 0x080610c7 in check_dep (file=0x81ade28, depth=2, this_mtime=1,
must_make_ptr=0xffb8c6c0) at remake.c:945
#13 0x0805fefa in update_file (file=0x807a440, depth=0) at remake.c:509
#14 0x0806155b in update_goal_chain (goals=0x81c4160) at remake.c:155
#15 0x08058f22 in main (argc=8, argv=0xffb8e144, envp=Cannot access memory at address 0x5588
) at main.c:2219

The problem is in this change:
http://cvs.savannah.gnu.org/viewvc/make/implicit.c?root=make&r1=1.64&r2=1.65
This assignment is using the wrong string:
new->name = strcache_add (p);

I'll attach a patch that fixes this.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #18147:  gnu-make-fix.patch added by None (727B - text/x-diff - Fix bug in pattern_search())

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by markseaborn (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Jul 2010 06:15:36 AM UTCpsmithFixed Release4.0=>3.82
    Thu 04 Jun 2009 05:25:54 AM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
    Sat 16 May 2009 02:19:19 PM UTCNoneAttached File-=>Added gnu-make-fix.patch, #18147

    Back to the top


    Powered by Savane 3.1-cleanup1