Comments (3)
or 3) instrumenting all noreturn calls with __tsan_unpoison_stack or some such.
I'll give it a try.
(and thanks for the repro)
Original comment by [email protected]
on 8 Feb 2012 at 3:42
from address-sanitizer.
shorter repro:
#include <sched.h>
#include <stdio.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
int Child(void *arg) {
char x[32] = {0};
fprintf(stderr, "Child: %p\n", x);
volatile char *ch = x + 32;
_exit(1);
}
int main(int argc, char **argv) {
const int kStackSize = 1 << 20;
char child_stack[kStackSize + 1];
char *sp = child_stack + kStackSize; // Stack grows down.
fprintf(stderr, "Parent: %p\n", sp);
pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL, 0, 0, 0);
waitpid(clone_pid, NULL, 0);
for (int i = 0; i < kStackSize; i++)
child_stack[i] = i;
return child_stack[argc - 1];
}
Original comment by [email protected]
on 8 Feb 2012 at 6:45
from address-sanitizer.
This particular test is fixed by r150101 / r150102.
Will see if it fixes more complicated cases.
Original comment by [email protected]
on 8 Feb 2012 at 9:41
- Changed state: Fixed
from address-sanitizer.
Related Issues (20)
- CHECK fails on linux and program doesn't launch HOT 14
- clang and clang++ behave differently on a small OOB test HOT 4
- Deal with ASLR on Mac OS HOT 8
- can't static link against gflags HOT 13
- Debugging breakpoints needed HOT 2
- Doesn't compile on OSX Lion (10.7) HOT 9
- ASan doesn't instrument the +load methods HOT 12
- ASan incorrectly wraps memmove on OS X Lion HOT 3
- GCD tests are broken on Mac OS 10.6 HOT 4
- ASan allows incorrect reordering of memory accesses HOT 4
- crash on programs that link SenTestingKit (Apple's bundled unit testing framework) HOT 19
- Need to check that the shadow memory does not overlap with existing mappings HOT 1
- Use portable macros for printing sizes, offsets, and addresses HOT 13
- debug info problems HOT 12
- __asan_handle_no_return undefined in lib for i386 HOT 4
- ASan requires /MTd linking on Windows HOT 4
- AsanStackTrace::FastUnwindStack reads wild addresses HOT 3
- compilation hangs with -faddress-sanitizer HOT 5
- asan fails to unwind from memcmp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from address-sanitizer.