The title says it mostly. I'm auditing the security of a terminal-based application on AIX, and the way you use it is to connect to it remotely through telnet, where the ".profile" of the telnet user used to log in contains a "trap 1 2 3" command, and then immediately after that executes the terminal application in question.
My question is therefore: Since this trap command apparently does not trap SIGSEGV (contrary to SIGHUP, SIGINT and SIGQUIT, corresponding to the "1 2 3"), would it be possible for me to break out to the shell prompt if I can just somehow cause a segmentation fault from inside the program?
(oh, and for extra points, are there any other signals than 1,2,3 (and now possibly SIGSEGV) that must be trapped in order to prevent successful break-out to the shell prompt?)