Re: [Rd] RGtk2 on linux: "stack smashing detected"

2008-08-06 Thread Prof Brian Ripley
Note that this is happening in R_GetTraceback. Running under gdb told me where (deparse2buff, but I guessed that) and on my system that the problem was in sprintf. Eh voila: case EXTPTRSXP: { char tpb[12+sizeof(void *)]; d->sourceable = FALSE; sprintf(tpb, "",

Re: [Rd] RGtk2 on linux: "stack smashing detected"

2008-08-06 Thread Michael Lawrence
Yea I am aware of this. This is because the Ubuntu binary has stack smashing detection enabled. It's possible to build R without this checking: export CFLAGS="-fno-stack-protector" I have not been able to figure out why stack smashing is detected. I'm cc'ing this to r-devel in case anyone else h