[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-05-27 Thread Rhys Kidd via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

Rhys Kidd  changed:

   What|Removed |Added

 CC||u...@mit.edu

--- Comment #16 from Rhys Kidd  ---
*** Bug 362920 has been marked as a duplicate of this bug. ***

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-04-26 Thread Ralph Katieb via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

Ralph Katieb  changed:

   What|Removed |Added

 CC||ralph.kat...@me.com

--- Comment #15 from Ralph Katieb  ---
Same problem here, same crash as reported, changing the magic number (i.e.
applying the patch) works great, thank you.

valgrind: m_syswrap/syswrap-amd64-darwin.c:507 (void wqthread_hijack(Addr,
Addr, Addr, Addr, Int, Addr)): Assertion 'tst->os_state.pthread - magic_delta
== self' failed.

Applying the patch resolved the issue.

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-04-23 Thread René Schwaiger via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

René Schwaiger  changed:

   What|Removed |Added

 CC||sansseco...@f-m.fm

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

[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-04-09 Thread cpon via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

cpon  changed:

   What|Removed |Added

 CC||cpigat...@gmail.com

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-04-05 Thread Rhys Kidd via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

Rhys Kidd  changed:

   What|Removed |Added

 CC||wwa...@gmail.com

--- Comment #14 from Rhys Kidd  ---
*** Bug 361351 has been marked as a duplicate of this bug. ***

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-26 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

werick...@gmail.com changed:

   What|Removed |Added

 CC||werick...@gmail.com

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-23 Thread Stephen Kelly via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

--- Comment #13 from Stephen Kelly  ---
Hi Rhys,

Ok, thanks for the response. So in terms of realistic expections, I shouldn't
expect valgrind with Qt5 to work on OSX for now.

Thanks for the update.

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-23 Thread Rhys Kidd via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

--- Comment #12 from Rhys Kidd  ---
Hello Stephen Kelly,

Thank you for the testing and report.

However, given you are seeing a hang with valgrind on your OS X environment
regardless of the patch on this bug report I would believe you are hitting one
of the other currently known or unknown bugs within valgrind on OS X.

As you can see from the bug tracker here, whilst support for OS X in valgrind
has improved, a number of further refinements are required. This is
particularly the case for more complex programs or those programs that use
larger external libraries (greater surface area for valgrind to interact with).

Unfortunately I haven't had as much opportunity to work on OS X valgrind
improvements in the last two quarters, although I hope to remedy that soon.

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-23 Thread Stephen Kelly via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

--- Comment #11 from Stephen Kelly  ---
(In reply to Stephen Kelly from comment #10)
> Hi am trying to run valgrind on OSX and I think I am hitting the same
> problem.
> 
> I have this embarrassingly simple Qt 5 program:
> 
> cat main.cpp
> 
> #include 
> 
> int main(int argc, char** argv)
> {
> QCoreApplication app(argc, argv);
> 
> return app.exec();
> }

Oops, I pasted a bad testcase. I get the hang even without the 

 return app.exec();

line. 

My testcase is 


#include 

int main(int argc, char** argv)
{
QCoreApplication app(argc, argv);
}

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-23 Thread Stephen Kelly via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

Stephen Kelly  changed:

   What|Removed |Added

 CC||steve...@gmail.com

--- Comment #10 from Stephen Kelly  ---
Hi am trying to run valgrind on OSX and I think I am hitting the same problem.

I have this embarrassingly simple Qt 5 program:

cat main.cpp

#include 

int main(int argc, char** argv)
{
QCoreApplication app(argc, argv);

return app.exec();
}

and I build it with Qt 5.7 alpha which I built from source.

When I run valgrind on it, I get this:

valgrind qt.app/Contents/MacOS/qt
==75971== Memcheck, a memory error detector
==75971== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==75971== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==75971== Command: qt.app/Contents/MacOS/qt
==75971==
==75971== Conditional jump or move depends on uninitialised value(s)
==75971==at 0x7FFF5FC24A27: bcmp (in /usr/lib/dyld)
==75971==by 0x7FFF5FC11914:
ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int,
unsigned char const*, unsigned long, long long, ImageLoader::LinkContext
const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC16B8A:
ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char
const*, unsigned long, unsigned long long, unsigned long long, stat const&,
unsigned int, unsigned int, linkedit_data_command const*,
encryption_info_command const*, ImageLoader::LinkContext const&) (in
/usr/lib/dyld)
==75971==by 0x7FFF5FC10A7E: ImageLoaderMachO::instantiateFromFile(char
const*, int, unsigned char const*, unsigned long long, unsigned long long, stat
const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC038C2: dyld::loadPhase6(int, stat const&, char const*,
dyld::LoadContext const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0846D: dyld::loadPhase5(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0818D: dyld::loadPhase4(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC07EF2: dyld::loadPhase3(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC07647: dyld::loadPhase1(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0347A: dyld::loadPhase0(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0315E: dyld::load(char const*, dyld::LoadContext
const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0870A: dyld::libraryLocator(char const*, bool, char
const*, ImageLoader::RPathChain const*) (in /usr/lib/dyld)
==75971==
==75971== Use of uninitialised value of size 8
==75971==at 0x7FFF5FC24A3F: bcmp (in /usr/lib/dyld)
==75971==by 0x7FFF5FC11914:
ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int,
unsigned char const*, unsigned long, long long, ImageLoader::LinkContext
const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC16B8A:
ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char
const*, unsigned long, unsigned long long, unsigned long long, stat const&,
unsigned int, unsigned int, linkedit_data_command const*,
encryption_info_command const*, ImageLoader::LinkContext const&) (in
/usr/lib/dyld)
==75971==by 0x7FFF5FC10A7E: ImageLoaderMachO::instantiateFromFile(char
const*, int, unsigned char const*, unsigned long long, unsigned long long, stat
const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC038C2: dyld::loadPhase6(int, stat const&, char const*,
dyld::LoadContext const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0846D: dyld::loadPhase5(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0818D: dyld::loadPhase4(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC07EF2: dyld::loadPhase3(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC07647: dyld::loadPhase1(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0347A: dyld::loadPhase0(char const*, char const*,
dyld::LoadContext const&, std::__1::vector >*) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0315E: dyld::load(char const*, dyld::LoadContext
const&) (in /usr/lib/dyld)
==75971==by 0x7FFF5FC0870A: dyld::libraryLocator(char const*, bool, char
const*, ImageLoader::RPathChain const*) (in /usr/lib/dyld)
==75971==
==75971== Use of uninitialised value of size 8
==75971==at 0x7FFF5FC24A44: bcmp (in /usr/lib/dyld)
==75971==by 0x7FFF5FC11914:
ImageLoaderMachO::validateFirstPages

[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-08 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

--- Comment #9 from phirestal...@gmail.com ---
ok I can confirm the patch works here too.

For others using homebrew that find this page here are the steps to add the
patch.

brew edit valgrind
find the "stable do" section and before the "end" put "patch :DATA"

then paste this at the end of the file (NOTE: if there is already an __END__
DON"T put in another one!!)

__END__
diff --git a/coregrind/m_syswrap/syswrap-amd64-darwin.c
b/coregrind/m_syswrap/syswrap-amd64-darwin.c
index 8f13e71..7fb8b2c 100644
--- a/coregrind/m_syswrap/syswrap-amd64-darwin.c
+++ b/coregrind/m_syswrap/syswrap-amd64-darwin.c
@@ -479,10 +479,8 @@ void wqthread_hijack(Addr self, Addr kport, Addr
stackaddr, Addr workitem,
UWord magic_delta = 0;
 #  elif DARWIN_VERS == DARWIN_10_7 || DARWIN_VERS == DARWIN_10_8
UWord magic_delta = 0x60;
-#  elif DARWIN_VERS == DARWIN_10_9 || DARWIN_VERS == DARWIN_10_10
+#  elif DARWIN_VERS == DARWIN_10_9 || DARWIN_VERS == DARWIN_10_10 ||
DARWIN_VERS == DARWIN_10_11
UWord magic_delta = 0xE0;
-#  elif DARWIN_VERS == DARWIN_10_11
-   UWord magic_delta = 0x100;
 #  else
 #error "magic_delta: to be computed on new OS version"
  // magic_delta = tst->os_state.pthread - self

save and close then to force brew to compile instead of install binaries from
"bottle"
brew install --build-from-source valgrind

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-07 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

--- Comment #8 from phirestal...@gmail.com ---
ok I added the patch to the brew formula and it gives me:

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|Index: coregrind/m_syswrap/syswrap-amd64-darwin.c
|===
|--- coregrind/m_syswrap/syswrap-amd64-darwin.c(revision 15721)
|+++ coregrind/m_syswrap/syswrap-amd64-darwin.c(working copy)
--
No file to patch.  Skipping patch.

Does homebrew want a different format of patch? or is downloading it directly
from the attachment link adding extra stuff to the file?

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-03-07 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

phirestal...@gmail.com changed:

   What|Removed |Added

 CC||phirestal...@gmail.com

--- Comment #7 from phirestal...@gmail.com ---
I am also experiencing this error with a program I am writing. I am also on osx
10.11, and using valgrind version 3.11.  I am not sure how to try the patch
since I am using homebrew. I will look at the ruby script and see if it is
obvious how to patch from there. If not can someone tell me how to patch with
homebrew?

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


[valgrind] [Bug 354883] Valgrind-3.11.0 assertion failure on OSX 10.11 El Capitan

2016-01-02 Thread anomaly256 via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=354883

anomaly256  changed:

   What|Removed |Added

 CC||anomaly...@gmail.com

--- Comment #6 from anomaly256  ---
I'm experiencing this issue on OSX 10.11 as well using Valgrind 3.11.0, trying
to analyse a relatively simple Qt5 application.  Will checkout the valgrind
sources and try the patch

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