-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xcvrd crashes when MediaInterfaceIDApp is not defined #489
Comments
@prgeor @mihirpat1 @tshalvi |
PR #457 did slightly modify the functionality of accessing the application advertisement list data, but the way 'Undefined' values are treated was not changed at all by this PR. Before the changes in this PR were merged, if a module had any application with missing data in its EEPROM, the application lookup would terminate at that application, without proceeding to the next one (which might have had the complete data required for this function). With my changes applied, in such a scenario, applications with missing data would be skipped, allowing the application lookup process to proceed to the next application in order to obtain a complete list of applications that have full data in the module's EEPROM. Therefore, I don't think this issue is related to my changes. However, if you'd like @prgeor @mihirpat1 @AnoopKamath, I can investigate further to find a proper solution. Could you please provide the PN of the module where you observed this issue? |
|
We currently don't have this module in our lab. However, we can order it, but it might take some time. I suspect the issue is because of this line
The value 'Undefined' is not handled here or in one of the other if statements that follow within the get_application_advertisement() function. Seems like the 'Undefined' value should be treated like it is here:
Please try changing the code as suggested and let me know if it resolves the issue. |
Thanks. Will try and get back. |
@AnoopKamath @rajann , |
The xcvrd crashes when MediaInterfaceIDApp is not defined.
There should be an error message, but xcvrd should not crash.
As a result, all other valid modules are not initialized because xcvrd crashing.
This issue was introduced after #457.
The issue is seen with Passive Copper ELB modules
Please check eeprom of module byte 0x72 - HostInterfaceIDApp8, where MediaInterfaceIDApp8 is "00h Undefined"
The text was updated successfully, but these errors were encountered: