https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Bug ID: 1316206 Summary: erl_interface: regression in erl_decode for LLONG_MIN longlong value Product: Fedora Version: rawhide Component: erlang Assignee: lemenkov@gmail.com Reporter: ptoscano@redhat.com QA Contact: extras-qa@fedoraproject.org CC: erlang@lists.fedoraproject.org, jeckersb@redhat.com, lemenkov@gmail.com, rhbugs@n-dimensional.de, s@shk.io Blocks: 910269 (TRACKER-bugs-affecting-libguestfs)
Created attachment 1134565 --> https://bugzilla.redhat.com/attachment.cgi?id=1134565&action=edit simple reproducer
Description of problem: In libguestfs we have erlang bindings using OTP, and one of the tests involves passing limit values and checking that they are read as expected in the C API.
It seems erl_decode fails to decode -9223372036854775808 (which is LLONG_MIN) as ERL_LONGLONG value, giving a ERL_INTEGER with value -1.
The attached test case contains the dump of a message (the libguestfs add_drive_scratch call) whose second item in the tuple is a longlong.
Version-Release number of selected component (if applicable): erlang-erl_interface-18.2.4-2.fc25.x86_64
How reproducible: 100% with the attached test case.
Steps to Reproduce: 1. build the testcase 2. run it
Actual results: - f23: TYPE is 137 TYPE is 17 - f24/rawhide: TYPE is 137 TYPE is 1
17 = ERL_LONGLONG 1 = ERL_INTEGER
Expected results: Same decoding result in f24/rawhide (i.e. as ERL_LONGLONG).
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=910269 [Bug 910269] Tracker: Bugs in other packages that stop libguestfs working
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
--- Comment #1 from Fedora Update System updates@fedoraproject.org --- erlang-18.3.3-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9ded469f1b
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Peter Lemenkov lemenkov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ptoscano@redhat.com Flags| |needinfo?(ptoscano@redhat.c | |om)
--- Comment #2 from Peter Lemenkov lemenkov@gmail.com --- Sorry for the delay. Could you please test the latest build and report if it works for you?
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
--- Comment #3 from Richard W.M. Jones rjones@redhat.com --- Yes it seems to be fixed. I tested erlang-18.3.3-2.fc25.x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Richard W.M. Jones rjones@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ptoscano@redhat.c | |om) |
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- erlang-18.3.3-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9ded469f1b
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
--- Comment #5 from Pino Toscano ptoscano@redhat.com --- (In reply to Peter Lemenkov from comment #2)
Sorry for the delay. Could you please test the latest build and report if it works for you?
Tested the latest version, erlang-erl_interface-18.3.3-2.fc25.x86_64, from rawhide, and indeed it works now.
Thanks!
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- erlang-18.3.4-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-70995ddd01
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- erlang-18.3.4-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-70995ddd01
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- erlang-18.3.4-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1316206
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |erlang-18.3.4-1.fc24 Resolution|--- |ERRATA Last Closed| |2016-06-23 13:54:50
erlang@lists.fedoraproject.org