bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault in objdump?


From: Alan Modra
Subject: Re: Segfault in objdump?
Date: Mon, 3 Jun 2013 10:29:09 +0930
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Jun 02, 2013 at 04:29:55PM -0700, Barret Rhoden wrote:
> > If I run make with your Makefile, it runs for varying amounts of time
> > before invoking objdump.  make -dm shows make re-execing itself many
> > times.  Quite clearly make is touching both olderfile and newerfile
> > many times.  I think you really do have an infinite loop, which for
> > some unknown reason terminates.  My hypothesis was some sort of
> > resource starvation, which then also causes the objdump problem.
> 
> make -dm also seemed to take forever for me, and would re-run make for
> a while.
> 
> Can you try again with these two lines in the makefile?
> 
> olderfile: ;
> Makefile: ;
> 
> I noticed most of my make -d output was searching for implicit rules
> for those two targets.  When I run make -dm with that modification,
> make only runs twice, updating 'newerfile the first time, and then
> segfaults:

I still see random numbers of make re-exec.  Here's the tail from one
run

Re-executing[945]: make -dm
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `newerfile' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `newerfile'.
   Considering target file `olderfile'.
    Finished prerequisites of target file `olderfile'.
   No need to remake target `olderfile'.
  Finished prerequisites of target file `newerfile'.
  Prerequisite `olderfile' is newer than target `newerfile'.
 Must remake target `newerfile'.
Putting child 0x00e1a100 (newerfile) PID 23692 on the chain.
Live child 0x00e1a100 (newerfile) PID 23692 
Reaping winning child 0x00e1a100 PID 23692 
Removing child 0x00e1a100 PID 23692 from chain.
 Successfully remade target file `newerfile'.
 Considering target file `Makefile'.
  Finished prerequisites of target file `Makefile'.
 No need to remake target `Makefile'.
Re-executing[946]: make -dm
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `newerfile' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `newerfile'.
   Considering target file `olderfile'.
    Finished prerequisites of target file `olderfile'.
   No need to remake target `olderfile'.
  Finished prerequisites of target file `newerfile'.
  Prerequisite `olderfile' is older than target `newerfile'.
 No need to remake target `newerfile'.
 Considering target file `Makefile'.
  Finished prerequisites of target file `Makefile'.
 No need to remake target `Makefile'.
Updating goal targets....
Considering target file `source'.
 File `source' does not exist.
 Finished prerequisites of target file `source'.
Must remake target `source'.
objdump -S akaros-kernel > akaros-kernel.asm
Putting child 0x011480e0 (source) PID 23694 on the chain.
Live child 0x011480e0 (source) PID 23694 
Segmentation fault (core dumped)
Reaping losing child 0x011480e0 PID 23694 
make: *** [source] Error 139
Removing child 0x011480e0 PID 23694 from chain.

-- 
Alan Modra
Australia Development Lab, IBM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]