From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70844 invoked by alias); 25 Jan 2017 10:54:28 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 70058 invoked by uid 89); 25 Jan 2017 10:54:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=2.1 required=5.0 tests=BAYES_00,BODY_8BITS,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=8:=bf=c3, 780, 3608, 8:01?= X-HELO: mail-yb0-f177.google.com Received: from mail-yb0-f177.google.com (HELO mail-yb0-f177.google.com) (209.85.213.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jan 2017 10:54:26 +0000 Received: by mail-yb0-f177.google.com with SMTP id 123so6285491ybe.3 for ; Wed, 25 Jan 2017 02:54:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=DWgessZB8EM1piK1CAd9+wfJ7zNGcqJIC4IDldIU9k0=; b=sqjn1BT8oi1xYBKk2gupRWOI4cU5uqSvZJJN7U1GeM4DAVnoZ4Gu/xkStXkjXoaNk5 eyqnYlBrcMXthr20kXBoQDTFcbtR2xt0OtADhqMtRvPqRXuuh/WrJbcspLNPq6vvZLzg kSSxcJ7Sru7uFHXJHyf6edYvnPJdbbm3FXtU56eplbgJV25lGIaYlgH/EEHYf9Sk9Lse Fc4nxlw8H32WlPdHxz3g1G0bA/X2NjugFHUCzHN4qBIVKtOhL84mFkANmvVVdS0vFwOv jstKxjuM8sTzNkDJd3+X8q/G2zhFl0K4C/vt6bpzaLg0+198hWIeuAbaZAPjdSmEunYI LfHQ== X-Gm-Message-State: AIkVDXLf0IGgu2U+gYhwrEpzlSRu56nsfDdKQdVNafGcR0KsE9YLmVTJwYAZKDj+3sFMadTjxtiU5fjZVCFGhA== X-Received: by 10.129.48.2 with SMTP id w2mr29178577yww.295.1485341664226; Wed, 25 Jan 2017 02:54:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.164.199 with HTTP; Wed, 25 Jan 2017 02:54:23 -0800 (PST) From: Nitish Kumar Mishra Date: Wed, 25 Jan 2017 10:54:00 -0000 Message-ID: Subject: Issue with Latest GDB on AIX with GCC-6.12 To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00044.txt.bz2 Hi, The latest community gdb is not working with gcc 6.12, however, it works expectedly fine with GCC-4.8.5 on AIX platform. Running any non-existing command from the shell is aborting the process. Breaking at "throw_exception_cxx()" is giving us the following back trace. I am copying backtrace for both 6.12 and 4.8.5 respectively: Backtrace for gcc- 6.12: Type "apropos word" to search for commands related to "word". (gdb) kill Breakpoint 3, _ZL19throw_exception_cxx13gdb_exception (exception=3D...) at common/common-exceptions.c:289 289 do_cleanups (all_cleanups ()); (top-gdb) bt #0 _ZL19throw_exception_cxx13gdb_exception (exception=3D...) at common/common-exceptions.c:289 #1 0x0000000100073860 in _Z15throw_exception13gdb_exception (exception=3D...) at common/common-exceptions.c:317 #2 0x0000000100073a38 in _ZL8throw_it13return_reason6errorsPKcPc (reason=3DRETURN_ERROR, error=3DGENERIC_ERROR, fmt=3D0x100783730 <_GLOBAL__F_inferior_ptid+7616> "The program is not being run.", ap=3D0xfffffffffffedb8 "\017=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF= =C3=BE\216") at common/common-exceptions.c:373 #3 0x0000000100073ab4 in _Z12throw_verror6errorsPKcPc (error=3DGENERIC_ERR= OR, fmt=3D0x100783730 <_GLOBAL__F_inferior_ptid+7616> "The program is not being run.", ap=3D0xfffffffffffedb8 "\017=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF= =C3=BE\216") at common/common-exceptions.c:379 During symbol reading, Method has bad physname _ZNKSt17integral_constantIbLb0EEcvbEv =2E During symbol reading, struct/union type gets multiply defined: struct initializer_list. #4 0x000000010001f918 in _Z6verrorPKcPc (string=3D0x100783730 <_GLOBAL__F_inferior_ptid+7616> "The program is not being run.", args=3D0xfffffffffffedb8 "\017=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BE\216"= ) at utils.c:475 #5 0x000000010001e0e0 in _Z5errorPKcz (fmt=3D0x100783730 <_GLOBAL__F_inferior_ptid+7616> "The program is not being run.") at common/errors.c:43 #6 0x00000001001e906c in _ZL12kill_commandPci (arg=3D0x0, from_tty=3D1) at infcmd.c:2578 #7 0x000000010011a4e0 in _ZL8do_cfuncP16cmd_list_elementPci (c=3D0x11019edf0, args=3D0x0, from_tty=3D1) at cli/cli-decode.c:105 #8 0x000000010011f5a4 in _Z8cmd_funcP16cmd_list_elementPci (cmd=3D0x11019edf0, args=3D0x0, from_tty=3D1) at cli/cli-decode.c:1913 #9 0x000000010007683c in _Z15execute_commandPci (p=3D0x1100e8ed4 "", from_tty=3D1) at top.c:674 #10 0x000000010007e628 in _Z15command_handlerPc (command=3D0x1100e8ed0 "kill") at event-top.c:589 #11 0x000000010007ebdc in _Z20command_line_handlerPc (rl=3D0x1100e92b0 "") at event-top.c:779 #12 0x000000010007d994 in _ZL23gdb_rl_callback_handlerPc (rl=3D0x1100e92b0 "") at event-top.c:213 #13 0x0000000100080f74 in rl_callback_read_char () at callback.c:220 #14 0x000000010007d79c in _ZL42gdb_rl_callback_read_char_wrapper_noexceptv () at event-top.c:175 #15 0x000000010007d8a8 in _ZL33gdb_rl_callback_read_char_wrapperPv (client_data=3D0x1100e8ef0) at event-top.c:192 #16 0x000000010007e2cc in _Z19stdin_event_handleriPv (error=3D0, client_data=3D0x1100e8ef0) at event-top.c:517 #17 0x00000001003998c0 in _ZL17handle_file_eventP12file_handleri (file_ptr=3D0x1101e5310, ready_mask=3D1) at event-loop.c:733 #18 0x0000000100399d54 in _ZL18gdb_wait_for_eventi (block=3D1) at event-loo= p.c:859 #19 0x0000000100398878 in _Z16gdb_do_one_eventv () at event-loop.c:347 #20 0x0000000100398910 in _Z16start_event_loopv () at event-loop.c:371 #21 0x0000000100001358 in _ZL21captured_command_loopPv (data=3D0x0) at main= .c:325 #22 0x00000001003a306c in _Z12catch_errorsPFiPvES_Pc11return_mask (func=3D@0x110082850: 0x1000012f8 <_ZL21captured_command_loopPv>, func_args=3D0x0, errstring=3D0x10071b518 <_GLOBAL__F_interpreter_p+3608> "", mask=3DRETURN_MASK_ALL) at exceptions.c:236 #23 0x0000000100002f90 in _ZL13captured_mainPv (data=3D0xffffffffffff9c0) at main.c:1148 #24 0x0000000100002ffc in _Z8gdb_mainP18captured_main_args (args=3D0xffffffffffff9c0) at main.c:1158 #25 0x0000000100000748 in main (argc=3D1, argv=3D0xffffffffffffa70) at gdb.= c:32 Backtrace for gcc-4.8.5: Type "apropos word" to search for commands related to "word". (gdb) kill Breakpoint 3, _ZL19throw_exception_cxx13gdb_exception (exception=3D...) at common/common-exceptions.c:289 289 common/common-exceptions.c: A file or directory in the path name does not exist.. (top-gdb) bt #0 _ZL19throw_exception_cxx13gdb_exception (exception=3D...) at common/common-exceptions.c:289 #1 0x000000010005b848 in _Z15throw_exception13gdb_exception (exception=3D...) at common/common-exceptions.c:317 #2 0x000000010005ba3c in _ZL8throw_it13return_reason6errorsPKcPc (reason=3DRETURN_ERROR, error=3DGENERIC_ERROR, fmt=3D0x100817628 "The program is not being run.", ap=3D0xfffffffffffee18 "\017=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF= =C3=BEX") at common/common-exceptions.c:373 #3 0x000000010005babc in _Z12throw_verror6errorsPKcPc (error=3DGENERIC_ERR= OR, fmt=3D0x100817628 "The program is not being run.", ap=3D0xfffffffffffee18 "\017=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF= =C3=BEX") at common/common-exceptions.c:379 During symbol reading, Method has bad physname _ZNKSt17integral_constantIbLb0EEcvbEv =2E During symbol reading, struct/union type gets multiply defined: struct initializer_list. #4 0x000000010005f07c in _Z6verrorPKcPc (string=3D0x100817628 "The program is not being run.", args=3D0xfffffffffffee18 "\017=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BEX") a= t utils.c:475 #5 0x0000000100085af0 in _Z5errorPKcz (fmt=3D0x100817628 "The program is not being run.") at common/errors.c:43 #6 0x00000001001e1938 in _ZL12kill_commandPci (arg=3D0x0, from_tty=3D1) at infcmd.c:2578 #7 0x0000000100134200 in _ZL8do_cfuncP16cmd_list_elementPci (c=3D0x1102442d0, args=3D0x0, from_tty=3D1) at cli/cli-decode.c:105 #8 0x0000000100139464 in _Z8cmd_funcP16cmd_list_elementPci (cmd=3D0x1102442d0, args=3D0x0, from_tty=3D1) at cli/cli-decode.c:1913 #9 0x00000001000aca90 in _Z15execute_commandPci (p=3D0x11018f234 "", from_tty=3D1) at top.c:674 #10 0x00000001000b4cb4 in _Z15command_handlerPc (command=3D0x11018f230 "kill") at event-top.c:590 #11 0x00000001000b5288 in _Z20command_line_handlerPc (rl=3D0x11018f610 "") at event-top.c:780 #12 0x00000001000b4004 in _ZL23gdb_rl_callback_handlerPc (rl=3D0x11018f610 "") at event-top.c:213 #13 0x00000001000b7658 in rl_callback_read_char () at callback.c:220 #14 0x00000001000b3dc0 in _ZL42gdb_rl_callback_read_char_wrapper_noexceptv () at event-top.c:175 #15 0x00000001000b3f18 in _ZL33gdb_rl_callback_read_char_wrapperPv (client_data=3D0x11018f250) at event-top.c:192 #16 0x00000001000b4950 in _Z19stdin_event_handleriPv (error=3D0, client_data=3D0x11018f250) at event-top.c:518 During symbol reading, Unexpected storage class: 111. #17 0x000000010045728c in _ZL17handle_file_eventP12file_handleri (file_ptr=3D0x11028a7b0, ready_mask=3D1) at event-loop.c:733 #18 0x0000000100457774 in _ZL18gdb_wait_for_eventi (block=3D1) at event-loo= p.c:859 #19 0x00000001004560bc in _Z16gdb_do_one_eventv () at event-loop.c:347 #20 0x0000000100456154 in _Z16start_event_loopv () at event-loop.c:371 #21 0x00000001000014e4 in _ZL21captured_command_loopPv (data=3D0x0) at main= .c:325 #22 0x0000000100221c1c in _Z12catch_errorsPFiPvES_Pc11return_mask (func=3D@0x11012d038: 0x100001480 <_ZL21captured_command_loopPv>, func_args=3D0x0, errstring=3D0x1008574e0 "", mask=3DRETURN_MASK_ALL) at exceptions.c:236 #23 0x00000001000032f8 in _ZL13captured_mainPv (data=3D0xffffffffffffa20) at main.c:1148 #24 0x0000000100003364 in _Z8gdb_mainP18captured_main_args (args=3D0xffffffffffffa20) at main.c:1158 #25 0x000000010000074c in main (argc=3D1, argv=3D0xffffffffffffad0) at gdb.= c:32 (top-gdb) c Continuing. Breakpoint 3, _ZL19throw_exception_cxx13gdb_exception (exception=3D...) at common/common-exceptions.c:289 289 in common/common-exceptions.c (top-gdb) c Continuing. The program is not being run. We are trying some sample programs using readline library to propagate exceptions through callback handler just to check if we face any issue there. We are still working on it, can't say anything for sure. It seems like this is a issue regarding exception propagation as eventually std::terminate() is getting called. Which also suggests that some how exceptions thrown is not getting handled properly. -- -- -- -- Nitish K Mishra