Bugzilla – Full Text Bug Listing |
Summary: | When loading binary not compiled with the correct options, dce crashes | ||
---|---|---|---|
Product: | dce | Reporter: | Matthieu Coudron <mattator> |
Component: | other | Assignee: | Hajime Tazaki <tazaki> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | mattator, ns-bugs |
Priority: | P5 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Linux |
Description
Matthieu Coudron
2015-04-18 15:20:07 EDT
it's indeed unhelpful just crash without any message even though the reason is obvious. I added messages (like below) when DCE detects such an error. *** unable to open non-shared object file=/source/ns-3-dce/build/bin_dce/no-pic-bin *** dlerror() = Unable to load: "/source/ns-3-dce/build/bin_dce/no-pic-bin" assert failed. cond="false", msg="make it sure that DCE binrary file /source/ns-3-dce/build/bin_dce/no-pic-bin was built with correct options: (CFLAGS=-fPIC, LDFLAGS=-pie -rdynamic)", file=../model/dlm-loader-factory.cc, line=99 terminate called without an active exception both CoojaLoaderFactory and DlmLoaderFactory should detect this error. the followings are the changesets of this fix. http://code.nsnam.org/ns-3-dce/rev/cb779a3844be http://code.nsnam.org/thehajime/elf-loader/rev/213835f32c54 |