Re: libelf question



Angus Barrow <angus@xxxxxxxxx> writes:
30 time_t timet=arh->ar_date;
(gdb) n
31 strftime(timestring, sizeof(timestring), "%b %e %H:%M %Y",
gmtime(&timet));
(gdb) n
...
(gdb) print timet
$1 = -1515870811

(gdb) p/x -1515870811
$1 = 0xa5a5a5a5

from malloc(3):

J Each byte of new memory allocated by malloc(), realloc() or
reallocf() will be initialized to 0xa5. All memory returned by
free(), realloc() or reallocf() will be initialized to 0x5a.
This is intended for debugging and will impact performance nega-
tively.

DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: git
    ... The image that gets dumped is git-fetch, if that helps, and I was ... GDB is free software, covered by the GNU General Public License, and you are ... : Loaded symbols for /lib/libcrypto.so.5 ... realloc() or reallocfwill be initialized to 0x5a. ...
    (freebsd-questions)
  • [MailServer Notification]Attachment Blocking Notification
    ... Subject: gdb in realloc(): error: junk pointer, too high to make senseon FreeBSD 5.2+ ...
    (freebsd-questions)
  • Re: Why does this segfault?
    ... > apparently, freewas placing data of some ... > had allocated with realloc(). ... The first time through the main loop in ... the heap (where malloc() and reallocget their memory). ...
    (comp.unix.programmer)
  • Re: malloc/free question
    ... I'd like to be able to malloc a block of memory, ... For example, malloc 100 ... Use realloc. ... guaranteed that a reallocrequesting a smaller size will succeed; ...
    (comp.lang.c)
  • Re: realloc equivalent for new
    ... > however what are those allocators and unitialised memory facilities about. ... if you implememt your own malloc like library. ... >> heaps (the libc malloc vs the special realloc implementation). ... sorting a vectorwould have comparable performance to sorting a ...
    (comp.lang.cpp)