Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

“Segmentation fault” when i call setPolicy() with out-of-band mode without initial Lib and Device #13

Open
yilongx opened this issue Aug 30, 2012 · 4 comments
Labels

Comments

@yilongx
Copy link

yilongx commented Aug 30, 2012

“Segmentation fault” when i call setPolicy() with out-of-band mode without initial Lib and Device

The gdb trace info as follow:

(gdb) n
299 ret = nmprk::translation::setPolicy(d, policy);
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x000000000041c4fe in nmprk::ipmi::modules::nm_dcmi::nm_dcmi_remote_runIpmiCommand (d=0x7fffffffe270, req=0x7fffffffde80, rsp=0x7fffffffde60)
at src/modules/nm_dcmi/linux/nm_dcmi_linux.cpp:295
295 lun = intf->target_lun;
(gdb)

@yilongx
Copy link
Author

yilongx commented Aug 30, 2012

Calling setPolicyStatus() and getPolicy() have the same Phenomenon

@jrmassoni
Copy link
Contributor

Thank you for entering the issue. Unfortunately the current design will do this if the calls are not done in the right order, this is because the structures have not been set up. Agreed there should be some protection and it should not cause a segmentation fault.

@jrmassoni jrmassoni reopened this Aug 30, 2012
@jrmassoni
Copy link
Contributor

Sorry, didn't mean to close the issue. It will remain open until it is resolved.

@ghost ghost assigned jrmassoni Aug 30, 2012
@yilongx
Copy link
Author

yilongx commented Sep 25, 2012

The issue still exists in the new version. although we should do test in order, when we do other test without initial LIB &
device, we think that it should tell us "it can't connect to Device".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants