Bug 353384

Summary: unhandled instruction bytes: 0x66 0xF 0x3A 0x62 0xD1 0x62 0x41 0x3B __intel_sse4_strpbrk
Product: [Developer tools] valgrind Reporter: Mark Lakata <mark>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark Lakata 2015-10-01 01:27:18 UTC
vex amd64->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0x62 0xD1 0x62 0x41 0x3B
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=0F3A
vex amd64->IR:   PFX.66=1 PFX.F2=0 PFX.F3=0
==16917== valgrind: Unrecognised instruction at address 0xbc59df.
==16917==    at 0xBC59DF: __intel_sse4_strpbrk (in /home/UNIXHOME/mlakata/p4/acq/Sequel/basecaller/build/x86_64/Debug/application/basecaller-console-app)
==16917==    by 0x95BB1C: Json::valueToQuotedString(char const*) (string.h:306)
==16917==    by 0x963A33: Json::BuiltStyledStreamWriter::writeValue(Json::Value const&) (json_writer.cpp:790)
==16917==    by 0x962606: Json::BuiltStyledStreamWriter::write(Json::Value const&, std::ostream*) (json_writer.cpp:749)
==16917==    by 0x965CDF: Json::operator<<(std::ostream&, Json::Value const&) (json_writer.cpp:1045)
==16917==    by 0x90F9AD: PacBio::Postprimary::Baz::FileHeaderBuilder::CreateJSON() (FileHeaderBuilder.cpp:119)
==16917==    by 0x8FE2DE: PacBio::Postprimary::Bazwriter::BazWriter::BazWriter(std::string const&, PacBio::Postprimary::Baz::FileHeaderBuilder&, bool) (BazWriter.cpp:79)
==16917==    by 0x780500: BasecallerConsole::OpenBazFile() (ConsoleApp.cpp:255)
==16917==    by 0x77EBFD: BasecallerConsole::RunWriter() (ConsoleApp.cpp:282)
==16917==    by 0x9C96F2: PacBio::Process::ThreadedProcessBase::WrapThread(std::string const&, std::function<void ()>) (functional:2471)
==16917==    by 0x9D97EE: std::thread::_Impl<std::_Bind_simple<PacBio::Process::ThreadedProcessBase::CreateThread(char const*, std::function<void ()>)::{lambda()#1} ()> >::_M_run() (ProcessBase.cpp:252)
==16917==    by 0x6C981DF: ??? (in /usr/lib64/libstdc++.so.6.0.19)


Reproducible: Always

Steps to Reproduce:
1. used a program built by Intel 2015 icc compiler
2.  valgrind application/basecaller-console-app my application arguments


Actual Results:  
See details. Causes SIGILL

Expected Results:  
valgring shouldn't SIGILL
Comment 1 Julian Seward 2016-07-24 11:42:29 UTC
Fixed, vex r3230, test cases valgrind r15913.