[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting screen to dump the core?



i decided to dig on the subject, but right now i'm unable to get it :-(
it prints core dumped but it's just words... even when i do ``sysctl -w 
kern.nosuidcoredump=0'' it doesn't dump core for me (simple user) and for 
root it doesn't get SIGSEGV... 

how do i create a core from the same process without kill()? 

BTW, SIGSEGV handling subrotine (screen.c, line 1955, CoreDump()) has 
call to ``unlink("core");'' and it's not patched with ports patches. As 
far as I understand this is at least senceless (i guess it very 
dangerous) under OpenBSD, since core  files are named progname.core and 
screen  attempts here to delete my file (after setuid/setgid, dunno 
about groups) named "core"! very bad thingie...

--
CYXOB



Visit your host, monkey.org