https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #15 from jonne ---
I ran the below command to check memory usage. After an initial quick increase
it doesn't seem to grow much.
$ while true; sleep 1; do ps -p $(pgrep -fl ./a.out | awk '{ print $1 }') -o
pmem,rss,vsize,pid; done
%ME
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #13 from jonne ---
Thanks for all your help, Martin, I really appreciate.
I re-ran with ASAN_OPTIONS as you suggested. The program seems to get killed
after about 44 seconds.
I already tried with clang before, seems to work ok over
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #11 from jonne ---
Doesn't seem to work, it cannot find the symbol.
(gdb) break __asan_init
Function "__asan_init" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
(I tried with three underscores too.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #9 from jonne ---
Ok, I've done that now. Thanks again.
$ gdb ./a.out
GNU gdb (GDB) 7.12.1
... snip ...
Reading symbols from ./a.out...Reading symbols from
/private/tmp/a.out.dSYM/Contents/Resources/DWARF/a.out...done.
done.
(gdb) r
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #7 from jonne ---
I compiled with -S and looked at m.s.
I'm not sure, but my main function could be this (I found this code in m.s, by
searching for 'main', lines 4058 - 4095):
lC6:
.ascii "foo test 123\0"
.space 51
.text
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #6 from jonne ---
I installed gdb with homebrew. I think it was compiled with debugging symbols,
because of:
$ otool -Iv /usr/local/opt/gdb/bin/gdb | head -5
/usr/local/opt/gdb/bin/gdb:
Indirect symbols for (__TEXT,__stubs) 452 entri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #4 from jonne ---
I managed to code-sign gdb by following
https://sourceware.org/gdb/wiki/BuildingOnDarwin.
Not that I expect it to matter much related to this ticket, but I also noticed
the stacktrace looks a little different when I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #3 from jonne ---
Read somewhere that I need to do this to make gdb work on Sierra. Not sure what
it all means...
$ cat ~/.gdbinit
set startup-with-shell off
After doing that, I get a different result running gdb.
$ sudo /usr/local
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #2 from jonne ---
Thanks Martin. I tried to run it with gdb.
With gdb, I seem to get an unknown signal immediately.
(running gdb as root at the moment, because of an issue with code-signing)
# gdb ./a.out
GNU gdb (GDB) 7.12.1
Copyri
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at zutt dot org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
If I compile the below two
10 matches
Mail list logo