bug-hurd
[Top][All Lists]
Advanced

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

Buffer freed too early in serverboot


From: Peter Bruin
Subject: Buffer freed too early in serverboot
Date: Sat, 4 Jan 2003 16:32:30 +0100

Hi,

In serverboot/bootstrap.c, the buffer allocated for the configuration
file is freed after the file is parsed.  However, the parsing code in
boot/boot_script.c puts pointers to the buffer in the `cmds'
variables, which are used during execution of the script.  So either
boot.c should make its own copies of the lines in the config file or
the buffer should be kept allocated until the boot script is executed.

Thanks,
Peter

(PS: I found this problem while working again on the PowerPC port,
which I haven't looked at for the past year or so due to lack of time.
Currently, serverboot works but the programs it starts hang for some
reason that may have to do with libc startup code.  I have a couple of
free days left, and I'll try to get it working again as much as
possible before I'll get too many other things to do. :( )





reply via email to

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