Re: [Valgrind-users] massif & counts per type

2020-09-11 Thread folkert
1db10 002a427 74a6c1b1 007f1da Going from 0041db10 to a symbol works fine, the shared library (74a6c1b1) is a bit troublesome though (disabled randomize_va_space and using eu-addr2line). Folkert van Heusden -- ___ Valg

Re: [Valgrind-users] massif & counts per type

2020-09-12 Thread folkert
> Anyhow, it sounds like you are starting to reinvent heaptrack - it does > exactly the above and then some. Indeed it does: I looked at and it is perfectly for my use-case. Thank you! ___ Valgrind-users mailing list

[Valgrind-users] massif & counts per type

2020-09-10 Thread folkert
Hi, How can I obtain the number of mallocs per type in a time-frame using massif? I'm NOT interested in the total in use, I would like to know how often type x is allocated between t+1 and t+2. regards ___ Valgrind-users mailing list

Re: [Valgrind-users] unhandled instruction bytes

2023-04-18 Thread folkert
3== Illegal opcode at address 0x40274E > > ==77043== at 0x40274E: ??? (in /home/folkert/Projects/bf-compiler/test) > > ==77043==by 0x4020EE: ??? (in /home/folkert/Projects/bf-compiler/test) ... > > If you're curious what is going wrong here, the source assembly and th

[Valgrind-users] unhandled instruction bytes

2023-04-18 Thread folkert
Hi, I wrote a compiler for brainfuck to x86. The result is quite fast but I was curious if I could tune it even more. So I ran it in callgrind but this resulted in: folkert@snsv ~/Projects/bf-compiler (master)$ valgrind --tool=callgrind ./test ==77043== Callgrind, a call-graph generating cache

Re: [Valgrind-users] unhandled instruction bytes

2023-04-19 Thread folkert
> > The 2 calls it does are: > > > > print_char: > > movb (%esi), %al > > movb %al, buffer > > movl $4, %eax > > movl $1, %ebx > > movl $buffer, %ecx > > movl $1, %edx > > int $0x80 > > ret > > > > exit: > > movl $1, %eax > > movl $0, %ebx > >

[Valgrind-users] system crash

2012-04-15 Thread Folkert van Heusden
Hi, I'm trying to debug this (opengl) application I'm writing. Now something odd happens: when I run it in gdb, it occasionally sigsegvs which is not ok but expected, but when ran under valgrind the whole system crashes. I think it starts swapping like hell, but far more than the usual out of

Re: [Valgrind-users] system crash

2012-04-15 Thread Folkert van Heusden
I'm trying to debug this (opengl) application I'm writing. Now something odd happens: when I run it in gdb, it occasionally sigsegvs which is not ok but expected, but when ran under valgrind the whole system crashes. I think it starts swapping like hell, but far more than the usual out

Re: [Valgrind-users] system crash

2012-04-17 Thread Folkert van Heusden
I'm also not entirely sure if it indeed is a leak in my program as I have a routine in it which constantly (20 times/sec) checks the memory usage (via /proc) of my program and does an exit() when it reaches 500MB (normally it should not use more than 120MB). If it is something in Xorg,

Re: [Valgrind-users] system crash

2012-04-17 Thread Folkert van Heusden
So when this happens, my program would allocate gigabytes of ram. And since I used --malloc-fill=, valgrind would then initialize this ram (I'm speculating here) causing big time swapping. I found this out by disabling swap memory. To verify that this is the problem, you might use

Re: [Valgrind-users] system crash

2012-04-17 Thread Folkert van Heusden
: ??? ==21521==by 0x12FEFFFD67: ??? ==21521==by 0x1FEFFFD5F: ??? ==21521==by 0x103BB88F: ??? ==21521==by 0x7FEFFFD8F: ??? ==21521==by 0x59EF7D: ??? (in /home/folkert/Projects/sysopview/trunk/sysopview) ==21521==by 0x109B088F: ??? ==21521==by 0xEC398BA: ??? (in /usr/lib/x86_64

Re: [Valgrind-users] system crash

2012-04-17 Thread Folkert van Heusden
Hi Philippe, hmmm ok. it seems it can't handle corruptions that nicely: Not too sure I understand. The below msgs from Valgrind are indicating (probable/possible) bugs. Apart of reporting the error, the behaviour is (usually) not influenced too much (compared to a native execution).