Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: "Bus Error" while running OCI programs
In article <EJuDK1.6qn.0.debian_at_sirena.rinet.ru>, Konstantin Kivi
<konst_at_sirena.rinet.ru> writes
>Matthias Gresz <GreMa_at_t-online.de> wrote:
>> rohit_at_techapp.com wrote:
>> >
>> > Hi,
>> >
>> > I am facing a strange problem ..I'm trying to compile an OCI program using
>> > gcc. When I try to run it ..is executes all the calls (at least appears
>> > to ..) but exits with a 'Bus Error' message ..
>> >
bus errors are often caused by trying to dereference a null pointer.
instead of (if *p) say if (p && *p) (for example).
Steve
![]() |
![]() |