* Strange zero block size, wic fails
@ 2017-07-03 12:36 Jan Kiszka
2017-07-05 12:05 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2017-07-03 12:36 UTC (permalink / raw)
To: isar-users
Hi all,
any spontaneous idea what could cause such a bug?
INFO: Creating image(s)...
Traceback (most recent call last):
File "/isar/scripts/wic", line 303, in <module>
sys.exit(main(sys.argv[1:]))
File "/isar/scripts/wic", line 298, in main
return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
File "/isar/scripts/lib/wic/help.py", line 97, in invoke_subcommand
subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
File "/isar/scripts/wic", line 236, in wic_create_subcommand
engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, options)
File "/isar/scripts/lib/wic/engine.py", line 191, in wic_create
plugin.do_create()
File "/isar/scripts/lib/wic/plugins/imager/direct.py", line 94, in do_create
self.assemble()
File "/isar/scripts/lib/wic/plugins/imager/direct.py", line 185, in assemble
self._image.assemble()
File "/isar/scripts/lib/wic/plugins/imager/direct.py", line 544, in assemble
sparse_copy(source, self.path, part.start * self.sector_size)
File "/isar/scripts/lib/wic/filemap.py", line 537, in sparse_copy
fmap = api(src_fname)
File "/isar/scripts/lib/wic/filemap.py", line 529, in filemap
return FilemapFiemap(image, log)
File "/isar/scripts/lib/wic/filemap.py", line 347, in __init__
_FilemapBase.__init__(self, image, log)
File "/isar/scripts/lib/wic/filemap.py", line 98, in __init__
self.blocks_cnt //= self.block_size
ZeroDivisionError: integer division or modulo by zero
We confirmed via instrumentation that there is actually 0 returned by
get_block_size, more precisely when requesting the info for the
temporary boot.img.
Base system was a Debian 8.8 with latest Docker release, and the run
took place inside that container (kasproject/kas-isar:latest). I'm
currently trying to reproduce locally.
Jan
--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Strange zero block size, wic fails
2017-07-03 12:36 Strange zero block size, wic fails Jan Kiszka
@ 2017-07-05 12:05 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2017-07-05 12:05 UTC (permalink / raw)
To: isar-users
On 2017-07-03 14:36, [ext] Jan Kiszka wrote:
> Hi all,
>
> any spontaneous idea what could cause such a bug?
>
> INFO: Creating image(s)...
>
> Traceback (most recent call last):
> File "/isar/scripts/wic", line 303, in <module>
> sys.exit(main(sys.argv[1:]))
> File "/isar/scripts/wic", line 298, in main
> return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
> File "/isar/scripts/lib/wic/help.py", line 97, in invoke_subcommand
> subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
> File "/isar/scripts/wic", line 236, in wic_create_subcommand
> engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, options)
> File "/isar/scripts/lib/wic/engine.py", line 191, in wic_create
> plugin.do_create()
> File "/isar/scripts/lib/wic/plugins/imager/direct.py", line 94, in do_create
> self.assemble()
> File "/isar/scripts/lib/wic/plugins/imager/direct.py", line 185, in assemble
> self._image.assemble()
> File "/isar/scripts/lib/wic/plugins/imager/direct.py", line 544, in assemble
> sparse_copy(source, self.path, part.start * self.sector_size)
> File "/isar/scripts/lib/wic/filemap.py", line 537, in sparse_copy
> fmap = api(src_fname)
> File "/isar/scripts/lib/wic/filemap.py", line 529, in filemap
> return FilemapFiemap(image, log)
> File "/isar/scripts/lib/wic/filemap.py", line 347, in __init__
> _FilemapBase.__init__(self, image, log)
> File "/isar/scripts/lib/wic/filemap.py", line 98, in __init__
> self.blocks_cnt //= self.block_size
> ZeroDivisionError: integer division or modulo by zero
>
>
> We confirmed via instrumentation that there is actually 0 returned by
> get_block_size, more precisely when requesting the info for the
> temporary boot.img.
>
> Base system was a Debian 8.8 with latest Docker release, and the run
> took place inside that container (kasproject/kas-isar:latest). I'm
> currently trying to reproduce locally.
>
> Jan
>
Problem widely understood, see
https://groups.google.com/forum/#!topic/kas-devel/UwhdbBiEz8U
Jan
--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-05 12:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-03 12:36 Strange zero block size, wic fails Jan Kiszka
2017-07-05 12:05 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox