Re: libCrun symbol "zero_ints"



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?


.



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. ... I posted a second question to that group that asked ... 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: More number theory tidbits, paper?
    ... On Sun, 1 Aug 2004, James Harris wrote: ... >> How many odd composites less than N are divisible by 3? ... Why would I care, unless someone told me to derive it, as you did? ... close to zero in all cases. ...
    (sci.math)
  • Re: quad
    ... After the news was broadcast by local radio the incidence of burgulary ... dropped to zero. ... I do not accept that a person has a duty of care to people who enter private ...
    (uk.business.agriculture)

Loading