The Following Code Causes Segfault in Clang
1–10 of 40 posts
Re: The Following Code Causes Segfault in Clang
#2Re: The Following Code Causes Segfault in Clang
#3Is there some legitimate reason to want to have A's destructor called twice on a single instance?
Re: The Following Code Causes Segfault in Clang
#4 python -S -c 'print("void f(){} int main(){return (" + "*"*10**7 + "f)();}")' | gcc -xc -
(This is legal C -- look it up. Don't argue with me over the practical relevance of this please)Re: The Following Code Causes Segfault in Clang
#5Is there some legitimate reason to want to have A's destructor called twice on a single instance?
Re: The Following Code Causes Segfault in Clang
#6Is there some legitimate reason to want to have A's destructor called twice on a single instance?
Re: The Following Code Causes Segfault in Clang
#7While we're at segfaulting compiler's, here's what I found just a few days ago: python -S -c 'print("void f(){} int main(){return (" + "*"*10**7 + "f)();}")' | gcc -xc - (This is legal C -- look it up. Don't argue with me over the practical relevance of this please)
Re: The Following Code Causes Segfault in Clang
#8While we're at segfaulting compiler's, here's what I found just a few days ago: python -S -c 'print("void f(){} int main(){return (" + "*"*10**7 + "f)();}")' | gcc -xc - (This is legal C -- look it up. Don't argue with me over the practical relevance of this please)
What were you doing that lead to you finding this?
Re: The Following Code Causes Segfault in Clang
#9Re: The Following Code Causes Segfault in Clang
#10Earlier quoted context omitted.
What were you doing that lead to you finding this?
printing lots of stars?