From stdcxx-dev-return-5895-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Oct 31 01:15:14 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 83300 invoked from network); 31 Oct 2007 01:15:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 01:15:12 -0000 Received: (qmail 81671 invoked by uid 500); 31 Oct 2007 01:14:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 81660 invoked by uid 500); 31 Oct 2007 01:14:59 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 81649 invoked by uid 99); 31 Oct 2007 01:14:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 18:14:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 01:15:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54B0271423E for ; Tue, 30 Oct 2007 18:14:51 -0700 (PDT) Message-ID: <30171221.1193793291344.JavaMail.jira@brutus> Date: Tue, 30 Oct 2007 18:14:51 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-625) 0.process test fails with SEGV due to stack overflow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 0.process test fails with SEGV due to stack overflow ---------------------------------------------------- Key: STDCXX-625 URL: https://issues.apache.org/jira/browse/STDCXX-625 Project: C++ Standard Library Issue Type: Bug Components: Tests Affects Versions: 4.2 Environment: HP-UX or AIX platforms Reporter: Travis Vitek Assignee: Travis Vitek Priority: Minor Fix For: 4.2.1 It appears that when we re-register for the signal from within the user signal handler the user signal handler is immediately invoked again. This recursion causes a stack overflow and a crash. Here is the stack on AIX.... sig_handler(int)( = 20), line 528 in "process.cpp" sigaction(??, ??, ??) at 0xd01fa358 signal(??, ??) at 0xd02759a8 sig_handler(int)( = 20), line 528 in "process.cpp" sigaction(??, ??, ??) at 0xd01fa358 signal(??, ??) at 0xd02759a8 sig_handler(int)( = 20), line 528 in "process.cpp" nsleep(??, ??) at 0xd01fa1d4 sleep(??) at 0xd02051d4 unnamed block $b656, line 553 in "process.cpp" rw_waitpid(long,int*,int)(pid = 782442, result = 0x2ff226a0, timeout = 5), line 553 in "process.cpp" join_test(long,bool)(pid = 782442, should_hang = false), line 51 in "0.process.cpp" test_process_create1()(), line 109 in "0.process.cpp" run_test(int,char**)(argc = 1, argv = 0x2ff22a60), line 276 in "0.process.cpp" rw_vtest(int,char**,const char*,const char*,const char*,int(*)(int,char**),const char*,char*)(argc = 1, argv = 0x2ff22a60, file_name = "/amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp", clause = "0.process", comment = "", fun = 0x2000b85c, optstr = "|-child#0 |-timeout#", va = " "), line 1030 in "driver.cpp" rw_test(int,char**,const char*,const char*,const char*,int(*)(int,char**),const char*,...)(argc = 1, argv = 0x2ff22a60, fname = "/amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp", clause = "0.process", comment = "", testfun = 0x2000b85c, optstr = "|-child#0 |-timeout#", ... = 0x20009608), line 1128 in "driver.cpp" main(argc = 1, argv = 0x2ff22a60), line 299 in "0.process.cpp" Here is the stack on HP-UX #0 sig_handler (No.Identifier=18) at /amd/devco/vitek/stdcxx-trunk/tests/src/process.cpp:529 #1 #2 0x7b0086c0 in _sigvector+0x10 () from /usr/lib/libc.2 #3 0x7b00f114 in signalvector+0xac () from /usr/lib/libc.2 #4 0x7b00f020 in signal+0xa0 () from /usr/lib/libc.2 #5 0x187fc in sig_handler (No.Identifier=18) at /amd/devco/vitek/stdcxx-trunk/tests/src/process.cpp:529 #6 #7 0x7b0086c0 in _sigvector+0x10 () from /usr/lib/libc.2 #8 0x7b00f114 in signalvector+0xac () from /usr/lib/libc.2 #9 0x7b00f020 in signal+0xa0 () from /usr/lib/libc.2 #10 0x187fc in sig_handler (No.Identifier=18) at /amd/devco/vitek/stdcxx-trunk/tests/src/process.cpp:529 #11 #12 0x7b0086c0 in _sigvector+0x10 () from /usr/lib/libc.2 #13 0x7b00f114 in signalvector+0xac () from /usr/lib/libc.2 #14 0x7b00f020 in signal+0xa0 () from /usr/lib/libc.2 #15 0x187fc in sig_handler (No.Identifier=18) at /amd/devco/vitek/stdcxx-trunk/tests/src/process.cpp:529 #16 #17 0x7b0086c0 in _sigvector+0x10 () from /usr/lib/libc.2 #18 0x7b00f114 in signalvector+0xac () from /usr/lib/libc.2 #19 0x7b00f020 in signal+0xa0 () from /usr/lib/libc.2 #20 0x187fc in sig_handler (No.Identifier=18) at /amd/devco/vitek/stdcxx-trunk/tests/src/process.cpp:529 #21 #22 0x7b00a160 in __sigtimedwait_sys+0x10 () from /usr/lib/libc.2 #23 0x7b013c84 in sigtimedwait+0x6c () from /usr/lib/libc.2 #24 0x7afa2a50 in sleep+0xe8 () from /usr/lib/libc.2 #25 0x188f0 in rw_waitpid (pid=13825, result=0x7f7f0db0, timeout=5) at /amd/devco/vitek/stdcxx-trunk/tests/src/process.cpp:555 #26 0x15250 in join_test (pid=13825, should_hang=false) at /amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp:51 #27 0x15424 in test_process_create1 () at /amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp:109 #28 0x159b4 in run_test (argc=1, argv=0x7f7f08d4) at /amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp:276 #29 0x16d1c in rw_vtest (argc=1, argv=0x7f7f08d4, file_name=0x8e090 "/amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp", clause=0x8e528 "0.process", comment=0x8e08f "", fun=0x4001ed52 , optstr=0x8e534 "|-child#0 |-timeout#", va=0x7f7f0a34) at /amd/devco/vitek/stdcxx-trunk/tests/src/driver.cpp:1030 #30 0x171ec in rw_test (argc=1, argv=0x7f7f08d4, fname=0x8e090 "/amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp", clause=0x8e528 "0.process", comment=0x8e08f "", testfun=0x4001ed52 , optstr=0x8e534 "|-child#0 |-timeout#") at /amd/devco/vitek/stdcxx-trunk/tests/src/driver.cpp:1127 #31 0x15ad4 in main (argc=1, argv=0x7f7f08d4) at /amd/devco/vitek/stdcxx-trunk/tests/self/0.process.cpp:299 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.