Re: libCrun symbol "zero_ints"



On Feb 24, 3:08 pm, "ThanksButNo" <no.no.tha...@xxxxxxxxx> wrote:
On Feb 24, 9:58 am, clarkb...@xxxxxxxxxxxxx wrote:





On Feb 23, 8:50 pm, clarkb...@xxxxxxxxxxxxx wrote:

I am debugging a core dump on Solaris 2.6 and I have fount this PLT
symbol "zero_ints". It is located in libCrun.so.1 Does anybody know
what this function does?

Thanks

I got a response to this question in alt.solaris.x86 that ventured a
somewhat obvious answer that "zero_ints" simply initializes integer
variables to zero. I posted a second question to that group that asked
why such a function would exist (what advantage does it offer to
simply initializing your applications variables to zero yourself), and
if there was a reason, why this function would appear in the C++
runtime library instead of the (for example) C runtime library? I'm
still very confused.

Thanks

I think at this point, the important question becomes:

Why do you care?

I'm sure the C and C++ libraries are chock full of functions with
mysterious purposes. So long as a function works and doesn't cause a
problem, who cares what it does or why they put it there or why they
didn't use some other method instead?

If the application cored *in* that function, perhaps the calling
function is the source of the problem from having called it
incorrectly. I get cores in "printf" all the time, and generally it's
because *my* code screwed up, not "printf". So who knows?- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: libCrun symbol "zero_ints"
    ... somewhat obvious answer that "zero_ints" simply initializes integer ... variables to zero. ... I guess the problem is I don't know if I care. ... values of SPARC registers at the time of the crash, ...
    (comp.unix.solaris)
  • Re: libCrun symbol "zero_ints"
    ... somewhat obvious answer that "zero_ints" simply initializes integer ... variables to zero. ... Why do you care? ...
    (comp.unix.solaris)
  • Re: libCrun symbol "zero_ints"
    ... somewhat obvious answer that "zero_ints" simply initializes integer ... variables to zero. ... I posted a second question to that group that asked ...
    (comp.unix.solaris)
  • Re: Mosque at "Ground Zero"?
    ... zero) on First Amendment grounds. ... They are using your tax dollars and I wouldn't care accept that it is ... cared if they built a Mosque 2 blocks away from Ground Zero. ...
    (alt.autos.toyota)
  • Re: Take away the fat kids?
    ... 60 they'll tell you they did all the same games other kids did. ... care about gloomy, grownups care. ... allowed to play outside if it was below zero. ... change to a dry set and let the others dry off. ...
    (rec.food.cooking)