Re: segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well well well.

Thanks for the answers, i will do the following things:

1) To read and learn how to use the GDB :D !!
2) Compile -g3 RGPVISAServer
3) Attach gdb to a runnig RGPVISAServer process to see what is doing wrong.

Well, after finish i will publish my error, thanks for support me !!!!

Yours
Leonardo

2008/12/9 John (Eljay) Love-Jensen <eljay@xxxxxxxxx>:
> Hi Leonardo,
>
>> So, i must review the entire code to view where the error is ?
>
> You can use a debugger, such as gdb.  From there you should be able to get some interesting information either using gdb with the running RGPVISAServer application, or by using gdb on the core dump (if there was a core dump).
>
>> RGPVISAServer[4299] general protection rip:4082f2 rsp:413fca08 error:0
>
> RGPVISAServer is the application that crashed.
> 4299 is the PID of the application that crashed.
> general protection is why the application crashed.
> rip:4082f2 is the instruction pointer when the crash happened.
> rsp:413fca08 is the stack pointer when the crash happened.
> error:0 is the errno value when the crash happened.
>
> Sincerely,
> -Eljay
>
> On 12/9/08 8:35 AM, "Leonardo Santagostini" <lsantagostini@xxxxxxxxx> wrote:
>
> Hello John (Eljay):
>
> So, i must review the entire code to view where the error is ?
> I was viewing my messages and i found this:
>
> RGPVISAServer[4299] general protection rip:4082f2 rsp:413fca08 error:0
>
> Its very dificult to me to understang this error codes, mmmm i think
> im needing some king of enlightenment.
>
> Thanks for the response,
> Yours Leonardo
>
> 2008/12/9 John (Eljay) Love-Jensen <eljay@xxxxxxxxx>:
>> Hi Leonardo,
>>
>>> Anybody can give me a clue about this ?
>>
>> It appears that your RGPVISAServer application has a NULL pointer somewhere, and it is dereferencing that NULL pointer, causing a segfault (and program termination).
>>
>>> Maybe i must compile without optimization ??
>>
>> Maybe.
>>
>> But more efficacious would be to remove the bug from the code.
>>
>> Sincerely,
>> -Eljay
>>
>
>
>
> --
> Saludos.-
> Leonardo Santagostini
>
>



-- 
Saludos.-
Leonardo Santagostini

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux