flux-sched icon indicating copy to clipboard operation
flux-sched copied to clipboard

Integer overflow in jobspec parsing

Open jameshcorbett opened this issue 3 years ago • 2 comments

@dongahn and I found that when a jobspec has an integer field with a value too large, it causes an error:

2021-12-13T22:10:44.607004Z sched-fluxion-qmanager.err[0]: jobmanager_alloc_cb: ENOSYS: yaml-cpp: error at line 1, column 197: bad conversion: Function not implemented

I ran into the error by specifying Rabbit storage sizes in bytes. An easy-enough workaround is to specify storage sizes in some larger unit instead.

jameshcorbett avatar Dec 13 '21 22:12 jameshcorbett

Thanks. We should add an range check into our jobspec parser

dongahn avatar Dec 14 '21 04:12 dongahn

At least how qmanager handles the parse error from Jobspec has been improved by PR #652

dongahn avatar May 19 '22 03:05 dongahn