Segmentation fault on compile without makefile

Oct 31, 2014 at 12:14 PM
Edited Oct 31, 2014 at 7:53 PM
upd: The sample in ~/casablanca/Release/build.release/Binaries works fine, but if I try compile it from source from ~/casablanca/Release/samples/BingRequest -> Segmentation fault.
where an error?
  1. g++ -std=c++11 -I/home/berkut/casablanca/Release/include -c bingrequest.cpp
    result: bingrequest.o
  2. g++ -o bingrequest bingrequest.o -Wl,-rpath,/home/berkut/casablanca/Release/build.release/Binaries/ /home/berkut/casablanca/Release/build.release/Binaries/ /home/berkut/casablanca/Release/build.release/Binaries/ -lboost_system
  3. ./bingrequest office res.txt
    Segmentation fault.

ldd bingrequest: (0xb7765000) => /home/berkut/casablanca/Release/build.release/Binaries/ (0xb7541000) => /home/berkut/casablanca/Release/build.release/Binaries/ (0xb753f000) => /usr/lib/i386-linux-gnu/ (0xb752f000) => /usr/lib/i386-linux-gnu/ (0xb743d000) => /lib/i386-linux-gnu/ (0xb73f8000) => /lib/i386-linux-gnu/ (0xb73db000) => /lib/i386-linux-gnu/ (0xb7269000) => /lib/i386-linux-gnu/ (0xb724d000) => /usr/lib/i386-linux-gnu/ (0xb7235000) => /usr/lib/i386-linux-gnu/ (0xb722d000) => /usr/lib/i386-linux-gnu/ (0xb7153000) => /usr/lib/i386-linux-gnu/ (0xb714f000) => /usr/lib/i386-linux-gnu/i686/cmov/ (0xb70f0000) => /usr/lib/i386-linux-gnu/i686/cmov/ (0xb6f25000)
    /lib/ (0xb7766000) => /home/berkut/casablanca/Release/build.release/Binaries/ (0xb6f11000) => /lib/i386-linux-gnu/ (0xb6f08000) => /usr/lib/i386-linux-gnu/ (0xb6d85000) => /usr/lib/i386-linux-gnu/ (0xb6b60000) => /usr/lib/i386-linux-gnu/ (0xb54f3000) => /lib/i386-linux-gnu/ (0xb54ee000)


berkut@Debian-70-wheezy-32-minimal:~/casablanca/Release/samples/BingRequest$ strace
Nov 4, 2014 at 5:15 AM
Does this also crash when you link against the debug version?

Nov 4, 2014 at 4:21 PM
Hmm... Under debug version i have no crash... I change "build.release" to "build.debug".
Why "release" don't work?
Nov 5, 2014 at 1:26 AM
I suspect it is because you've omitted several critical macros in your compilation of bingrequest.cpp. For the full list of compile flags, pass in VERBOSE=1 when you execute make on the Release build tree.