tags 279900 upstream
thanks

The following Makefile crashes `make -t` (but only the first time,
when it runs `touch foo`):

        ----------------
        Makefile
        ----------------
        all: foo

        foo:
                touch foo
        -----------------

Crashes on:

790               for (i = file->cmds->ncommand_lines; i > 0; --i)

Backtrace follows.

(gdb) bt full
#0  0x0805d0c3 in notice_finished_file (file=0x806d278) at
remake.c:790
        f = (struct file *) 0x0
        i = 0
        d = (struct dep *) 0x0
        ran = 0
        touched = 1
#1  0x0805c586 in update_file_1 (file=0x806d278, depth=0) at
remake.c:690
        fmt = 0x1 <Address 0x1 out of bounds>
        d_mtime = 18446744069414584321
        this_mtime = 1188773881577546517
        noexist = 0
        must_make = 1
        deps_changed = 1
        dep_status = 0
        d = (struct dep *) 0x0
        lastd = (struct dep *) 0x1
        running = 0
#2  0x0805bee0 in update_file (file=0x806d278, depth=0) at
remake.c:310
        status = 0
        f = (struct file *) 0x806d278
#3  0x0805bb9b in update_goal_chain (goals=0x8074868, makefiles=0)
    at remake.c:157
        ocommands_started = 0
---Type <return> to continue, or q <return> to quit---
        x = 0
        file = (struct file *) 0x806d278
        stop = 0
        any_not_updated = 0
        g = (struct dep *) 0x8074868
        lastgoal = (struct dep *) 0x0
        t = 1
        q = 0
        n = 0
        j = 1
        status = -1
#4  0x08054d8e in main (argc=5, argv=0xbfffe294, envp=0x80707d8) at
main.c:1946
        status = 1
        stdin_nm = 0x0
        f = (struct file *) 0x0
        i = 0
        p = (char **) 0x1
        read_makefiles = (struct dep *) 0x80707d8
        current_directory = "/home/pryzbyj/src/iraf/2/iraf-2.12.2a", '\0' 
<repeats...

On Sun, Jan 30, 2005 at 12:49:00PM -0500, pryzbyj wrote:
> I can confirm that make -t segfaults (make -f debian/rules -t build).
> Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to