[openib-general] Segmentation fault when calling osmv_get_query_svc_rec()

Steven Wooding steve.apo at googlemail.com
Wed Nov 22 03:22:16 PST 2006


Hi Hal,

The debugger reveals that the pointer p_sa_mad is equal to 0xffffffff. When
the osmv_get_query_result() returns it tries to use p_sa_mad->data and
that's what causes the seg fault.

I also noticed that mad_size=0 in the osm_madw_t structure.

What could have caused this to only happen in my user code?

Cheers,

Steve.


On 21 Nov 2006 12:38:11 -0500, Hal Rosenstock <halr at voltaire.com> wrote:
>
> On Tue, 2006-11-21 at 12:09, Steven Wooding wrote:
> > Hi,
> >
> > I've come across a problem with my code when doing a Service Record
> > lookup. It's all fine until I call osmv_get_query_svc_rec(), which
> > then calls osmv_get_query_result(). The segmentation fault then occurs
> > on the return line.
> >
> > I'm using OFED release 1.0 (I tried upgrading to 1.1, but that fails
> > to build, complaining about the C++ preprocessor "/lib/cpp" failing
> > it's sanity check).
> >
> > A run of "osmtest -f s" works fine, so it is something in my code.
> >
> > Can anybody suggest what I can do next to solve this problem?
>
> Look at it with the debugger to see why it is seg faulting. That might
> provide a clue as to what is going wrong.
>
> -- Hal
>
> >
> > Thanks a lot.
> >
> > Cheers,
> >
> > Steve.
> >
> > PS. System is RHEL4, with Intel Compiler.
> >
> > ______________________________________________________________________
> >
> > _______________________________________________
> > openib-general mailing list
> > openib-general at openib.org
> > http://openib.org/mailman/listinfo/openib-general
> >
> > To unsubscribe, please visit
> http://openib.org/mailman/listinfo/openib-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20061122/d37c2981/attachment.html>


More information about the general mailing list