I'm not really sure what is wrong, the code looks ok to me. Can you turn on message tracing with DEBUG_MSG_ENABLE(); before you open the connection, then send me the output (assuming you can't figure it out from that :).
-corey Dejan Muhamedagic wrote: > Hi, > > On Thu, Jan 17, 2008 at 05:23:15PM -0600, Corey Minyard wrote: > >> I know why you are getting the segfault, which I will fix, but I do not >> know why the initialization is failing and causing this. >> >> Can you step through ipmi_init() with the debugger and see which exact >> function is failing to initialize? >> > > Sorry for the delay. Did some changes in the meantime and now I > can't reproduce the coredumps anymore. I think that they were > caused by calling ipmi_init twice. If you want to pursue that > issue, I can retrieve an old version and try to reproduce the > segfault. > > But I still can't make the thing work. This is the output from > ipmilan: > > INFO: ipmi_lan.c(connection_up): Connection 0 to the BMC is up > INFO: ipmi_lan.c(connection_up): Connection to the BMC restored > 0f 07 00 01 ff > ** INFO: IPMI request 4 failed: ff > > The openipmicmd with same parameters returns good status. What's > funny is that the stuff on the wire seems to be very similar in > both cases---I can see the very same response as with ipmicmd > when running ipmilan. > > Looked for a long time at the source of ipmicmd and ipmilan, but > can't find any problems. Walked through both with gdb, still > didn't get any wiser. If you could take a look at the code and > tell me what's wrong with it, I'd appreciate very much. It has > been done around openipmi release 1.0 by a guy from Intel, but > he's not maintaining it any more. > > Cheers, > > Dejan > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
