Re: [DynInst_API:] Fwd: Dyninst 8 compile problem


Date: Fri, 26 Oct 2012 08:14:29 -0500
From: Andrew Bernat <bernat@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] Fwd: Dyninst 8 compile problem
That should not be happening. Can you get me a stack trace at the point where your mutator crashes? Or, better yet, are the mutator and mutatee sufficiently simple you could email them to me and I could reproduce the problem locally? 

Drew

On Oct 26, 2012, at 2:25 AM, Pooya Salehi <pxsalehi@xxxxxxxxx> wrote:

Thanks Andrew. The problem is solved. but now when running the mutator, I get this error that I didn't get before. I haven't changed the mutatee or the mutator!
I have only switched to the new dyninst.

cannot find <INVALID_REG>
dyn_memtrace_proc: ../../dataflowAPI/src/ABI.C:59: int ABI::getIndex(Dyninst::MachRegister): Assertion `0' failed.

On Thu, Oct 25, 2012 at 8:11 PM, Andrew Bernat <bernat@xxxxxxxxxxx> wrote:
Thanks. I think I've got this fixed; can you do a git pull to update, rerun configure, and try building again? 

Drew

On Oct 25, 2012, at 12:51 PM, Pooya Salehi <pxsalehi@xxxxxxxxx> wrote:

Hello Drew,

here is the verbose compilation output:

Linking testdriver_wrapper
Compiling DatabaseOutputDriver.o
g++ -Darch_x86_64_test -Darch_64bit_test -Dos_linux_test -Dcap_ptrace_test -Dcap_stripped_binaries_test -Dcap_async_events_test -Dcap_threads_test -Dcap_dynamic_heap_test -Dcap_relocation_test -Dcap_dwarf_test -Dcap_32_64_test -Dcap_liveness_test -Dcap_fixpoint_gen_test -Dcap_noaddr_gen_test -Dcap_mutatee_traps_test -Dcap_binary_rewriter_test -Dcap_registers_test -Dcap_instruction_api_test -Dcap_serialization_test -Dcap_instruction_replacement_test -Dcap_tramp_liveness_test -Dcap_thread_db_test -Dcap_gnu_demangler_test -Ddwarf_has_setframe_test -Dbug_syscall_changepc_rewind_test -Dbug_force_terminate_failure_test -Dx86_64_unknown_linux2_4_test -DPACKAGE_NAME=\"Dyninst\" -DPACKAGE_TARNAME=\"dyninst\" -DPACKAGE_VERSION=\"8.0\" -DPACKAGE_STRING=\"Dyninst\ 8.0\" -DPACKAGE_BUGREPORT=\"bugs@xxxxxxxxxxx\" -DHAVE_BOOST=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBELF=1 -DHAVE_LIBTHREAD_DB=1 -I../../dyninstAPI/h -I../../symtabAPI/h -I../../dynutil/h -I../../instructionAPI/h -I../../proccontrol/h -I../../patchAPI/h -I../../stackwalk/h -I../../dataflowAPI/h -I../../external -I../src -g -o runTests runTests.o runTests-utils.o test_driver_templates.o -L.
g++ -o testdriver_wrapper connection.o testdriver_wrapper.o
g++ -c -o DatabaseOutputDriver.o -fPIC -Darch_x86_64_test -Darch_64bit_test -Dos_linux_test -Dcap_ptrace_test -Dcap_stripped_binaries_test -Dcap_async_events_test -Dcap_threads_test -Dcap_dynamic_heap_test -Dcap_relocation_test -Dcap_dwarf_test -Dcap_32_64_test -Dcap_liveness_test -Dcap_fixpoint_gen_test -Dcap_noaddr_gen_test -Dcap_mutatee_traps_test -Dcap_binary_rewriter_test -Dcap_registers_test -Dcap_instruction_api_test -Dcap_serialization_test -Dcap_instruction_replacement_test -Dcap_tramp_liveness_test -Dcap_thread_db_test -Dcap_gnu_demangler_test -Ddwarf_has_setframe_test -Dbug_syscall_changepc_rewind_test -Dbug_force_terminate_failure_test -Dx86_64_unknown_linux2_4_test -DPACKAGE_NAME=\"Dyninst\" -DPACKAGE_TARNAME=\"dyninst\" -DPACKAGE_VERSION=\"8.0\" -DPACKAGE_STRING=\"Dyninst\ 8.0\" -DPACKAGE_BUGREPORT=\"bugs@xxxxxxxxxxx\" -DHAVE_BOOST=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBELF=1 -DHAVE_LIBTHREAD_DB=1 -I../../dyninstAPI/h -I../../symtabAPI/h -I../../dynutil/h -I../../instructionAPI/h -I../../proccontrol/h -I../../patchAPI/h -I../../stackwalk/h -I../../dataflowAPI/h -I../../external -I../src -g -I../src/ ../src/DatabaseOutputDriver.C
./libtestSuite.so: undefined reference to `dlsym'
./libtestSuite.so: undefined reference to `dlerror'
./libtestSuite.so: undefined reference to `dlopen'
./libtestSuite.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[1]: *** [test_driver] Error 1
make[1]: *** Waiting for unfinished jobs....
../src/DatabaseOutputDriver.C: In member function ‘void DatabaseOutputDriver::writeSQLLog()’:
../src/DatabaseOutputDriver.C:314:32: warning: format not a string literal and no format arguments [-Wformat-security]
make[1]: Leaving directory `/home/p00ya/software/dyninst8/testsuite/x86_64-unknown-linux2.4'
make: *** [testsuite_install] Error 2


On Thu, Oct 25, 2012 at 6:36 PM, Andrew Bernat <bernat@xxxxxxxxxxx> wrote:
I believe I have a fix, but this problem should not have happened in the first place. I think. 

Can you set the environment variable VERBOSE_COMPILATION to 1, try building again, and send me the output? I want to verify the compile line. 

Drew

On Oct 24, 2012, at 9:35 AM, Pooya Salehi <pxsalehi@xxxxxxxxx> wrote:

I am trying to complie dyninst 8 and get a correct installation, but I get the following error:
...
Linking test_driver
./libtestSuite.so: undefined reference to `dlsym'
./libtestSuite.so: undefined reference to `dlerror'
./libtestSuite.so: undefined reference to `dlopen'
./libtestSuite.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[1]: *** [test_driver] Error 1
make[1]: Leaving directory `/home/p00ya/software/dyninst8/testsuite/x86_64-unknown-linux2.4'
make: *** [testsuite_install] Error 2

and when I try to add -ld to LIBS then ./configure gives error:

checking for a BSD-compatible install... /usr/bin/install -c
checking for g++... g++
checking for C++ compiler default output file name...
configure: error: in `/home/p00ya/software/dyninst8':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

can someone help please? I am using Ubuntu 12.04 x64

_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

--
Andrew Bernat
Paradyn Project





_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

--
Andrew Bernat
Paradyn Project






_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api




[← Prev in Thread] Current Thread [Next in Thread→]