error disclosure

Stefan Reinauer stepan at openbios.org
Wed Dec 1 11:20:01 CET 2004


Hi there,

the error disclosure of the config tool is a little bit mystic.
Building the sandpoint configuration says the following:

Creating directory motorola_sandpoint/only
Creating motorola_sandpoint/only/static.c
Traceback (most recent call last):
  File "motorola_sandpoint/config.py", line 2732, in ?
    writecode(image)
  File "motorola_sandpoint/config.py", line 2649, in writecode
    gencode(image.getroot(), file, 1)
  File "motorola_sandpoint/config.py", line 2654, in gencode
    part.gencode(file, pass_num)
  File "motorola_sandpoint/config.py", line 804, in gencode
    file.write("struct device **last_dev_p = &%s.next;\n" %
(self.image.last_dev
ice.instance_name))
AttributeError: 'int' object has no attribute 'instance_name'

This looks like an error in the config tool, while it is a mistake in the
config file. Is there any easy way to point the user/developer to the
place in the config file that is wrong (rather than printing a python
traceback)?  This could make it a lot easier for newbies to create fresh
linuxbios ports to motherboards whose hardware is basically already
supported and it could safe the regulars quite some time comparing
config files between the ports...

Stefan






More information about the coreboot mailing list