https://bugs.kde.org/show_bug.cgi?id=395682

--- Comment #11 from H.J. Lu <hjl.to...@gmail.com> ---
Created attachment 113899
  --> https://bugs.kde.org/attachment.cgi?id=113899&action=edit
A test

With the proposed fix:

[hjl@gnu-cfl-1 build-x86_64-linux]$   ./.in_place/memcheck-amd64-linux   
/export/gnu/import/git/github/simple-linux/test 
==30545== Memcheck, a memory error detector
==30545== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==30545== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright
info
==30545== Command: /export/gnu/import/git/github/simple-linux/test
==30545== 
a
==30545== 
==30545== Process terminating with default action of signal 8 (SIGFPE)
==30545==  Integer divide by zero at address 0x100387C52A
==30545==    at 0x40015E: ??? (in /export/ssd/git/github/simple-linux/test)
==30545==    by 0x4001A8: ??? (in /export/ssd/git/github/simple-linux/test)
==30545== 
==30545== HEAP SUMMARY:
==30545==     in use at exit: 0 bytes in 0 blocks
==30545==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==30545== 
==30545== All heap blocks were freed -- no leaks are possible
==30545== 
==30545== For counts of detected and suppressed errors, rerun with: -v
==30545== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Floating point exception

With my fixes:

[hjl@gnu-cfl-1 build-x86_64-linux]$   ./.in_place/memcheck-amd64-linux   
/export/gnu/import/git/github/simple-linux/test 
==31384== Memcheck, a memory error detector
==31384== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==31384== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright
info
==31384== Command: /export/gnu/import/git/github/simple-linux/test
==31384== 
a
==31384== 
==31384== Process terminating with default action of signal 8 (SIGFPE)
==31384==  Integer divide by zero at address 0x100388C52A
==31384==    at 0x40015E: main (test.c:22)
==31384== 
==31384== HEAP SUMMARY:
==31384==     in use at exit: 0 bytes in 0 blocks
==31384==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==31384== 
==31384== All heap blocks were freed -- no leaks are possible
==31384== 
==31384== For counts of detected and suppressed errors, rerun with: -v
==31384== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Floating point exception
[hjl@gnu-cfl-1 build-x86_64-linux]$

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to