This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Issue with Latest GDB on AIX with GCC-6.12


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=...)
at common/common-exceptions.c:289
289       do_cleanups (all_cleanups ());
(top-gdb) bt
#0  _ZL19throw_exception_cxx13gdb_exception (exception=...) at
common/common-exceptions.c:289
#1  0x0000000100073860 in _Z15throw_exception13gdb_exception
(exception=...) at common/common-exceptions.c:317
#2  0x0000000100073a38 in _ZL8throw_it13return_reason6errorsPKcPc
(reason=RETURN_ERROR, error=GENERIC_ERROR,
    fmt=0x100783730 <_GLOBAL__F_inferior_ptid+7616> "The program is
not being run.", ap=0xfffffffffffedb8 "\017ÿÿÿÿÿþ\216") at
common/common-exceptions.c:373
#3  0x0000000100073ab4 in _Z12throw_verror6errorsPKcPc (error=GENERIC_ERROR,
    fmt=0x100783730 <_GLOBAL__F_inferior_ptid+7616> "The program is
not being run.", ap=0xfffffffffffedb8 "\017ÿÿÿÿÿþ\216") at
common/common-exceptions.c:379
During symbol reading, Method has bad physname
_ZNKSt17integral_constantIbLb0EEcvbEv
.
During symbol reading, struct/union type gets multiply defined: struct
initializer_list.
#4  0x000000010001f918 in _Z6verrorPKcPc (string=0x100783730
<_GLOBAL__F_inferior_ptid+7616> "The program is not being run.",
    args=0xfffffffffffedb8 "\017ÿÿÿÿÿþ\216") at utils.c:475
#5  0x000000010001e0e0 in _Z5errorPKcz (fmt=0x100783730
<_GLOBAL__F_inferior_ptid+7616> "The program is not being run.") at
common/errors.c:43
#6  0x00000001001e906c in _ZL12kill_commandPci (arg=0x0, from_tty=1)
at infcmd.c:2578
#7  0x000000010011a4e0 in _ZL8do_cfuncP16cmd_list_elementPci
(c=0x11019edf0, args=0x0, from_tty=1) at cli/cli-decode.c:105
#8  0x000000010011f5a4 in _Z8cmd_funcP16cmd_list_elementPci
(cmd=0x11019edf0, args=0x0, from_tty=1) at cli/cli-decode.c:1913
#9  0x000000010007683c in _Z15execute_commandPci (p=0x1100e8ed4 "",
from_tty=1) at top.c:674
#10 0x000000010007e628 in _Z15command_handlerPc (command=0x1100e8ed0
"kill") at event-top.c:589
#11 0x000000010007ebdc in _Z20command_line_handlerPc (rl=0x1100e92b0
"") at event-top.c:779
#12 0x000000010007d994 in _ZL23gdb_rl_callback_handlerPc
(rl=0x1100e92b0 "") 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=0x1100e8ef0) at event-top.c:192
#16 0x000000010007e2cc in _Z19stdin_event_handleriPv (error=0,
client_data=0x1100e8ef0) at event-top.c:517
#17 0x00000001003998c0 in _ZL17handle_file_eventP12file_handleri
(file_ptr=0x1101e5310, ready_mask=1) at event-loop.c:733
#18 0x0000000100399d54 in _ZL18gdb_wait_for_eventi (block=1) at event-loop.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=0x0) at main.c:325
#22 0x00000001003a306c in _Z12catch_errorsPFiPvES_Pc11return_mask
(func=@0x110082850: 0x1000012f8 <_ZL21captured_command_loopPv>,
func_args=0x0,
    errstring=0x10071b518 <_GLOBAL__F_interpreter_p+3608> "",
mask=RETURN_MASK_ALL) at exceptions.c:236
#23 0x0000000100002f90 in _ZL13captured_mainPv
(data=0xffffffffffff9c0) at main.c:1148
#24 0x0000000100002ffc in _Z8gdb_mainP18captured_main_args
(args=0xffffffffffff9c0) at main.c:1158
#25 0x0000000100000748 in main (argc=1, argv=0xffffffffffffa70) 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=...)
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=...) at
common/common-exceptions.c:289
#1  0x000000010005b848 in _Z15throw_exception13gdb_exception
(exception=...) at common/common-exceptions.c:317
#2  0x000000010005ba3c in _ZL8throw_it13return_reason6errorsPKcPc
(reason=RETURN_ERROR, error=GENERIC_ERROR,
    fmt=0x100817628 <type_print_raw_options+147320> "The program is
not being run.", ap=0xfffffffffffee18 "\017ÿÿÿÿÿþX") at
common/common-exceptions.c:373
#3  0x000000010005babc in _Z12throw_verror6errorsPKcPc (error=GENERIC_ERROR,
    fmt=0x100817628 <type_print_raw_options+147320> "The program is
not being run.", ap=0xfffffffffffee18 "\017ÿÿÿÿÿþX") at
common/common-exceptions.c:379
During symbol reading, Method has bad physname
_ZNKSt17integral_constantIbLb0EEcvbEv
.
During symbol reading, struct/union type gets multiply defined: struct
initializer_list.
#4  0x000000010005f07c in _Z6verrorPKcPc (string=0x100817628
<type_print_raw_options+147320> "The program is not being run.",
    args=0xfffffffffffee18 "\017ÿÿÿÿÿþX") at utils.c:475
#5  0x0000000100085af0 in _Z5errorPKcz (fmt=0x100817628
<type_print_raw_options+147320> "The program is not being run.") at
common/errors.c:43
#6  0x00000001001e1938 in _ZL12kill_commandPci (arg=0x0, from_tty=1)
at infcmd.c:2578
#7  0x0000000100134200 in _ZL8do_cfuncP16cmd_list_elementPci
(c=0x1102442d0, args=0x0, from_tty=1) at cli/cli-decode.c:105
#8  0x0000000100139464 in _Z8cmd_funcP16cmd_list_elementPci
(cmd=0x1102442d0, args=0x0, from_tty=1) at cli/cli-decode.c:1913
#9  0x00000001000aca90 in _Z15execute_commandPci (p=0x11018f234 "",
from_tty=1) at top.c:674
#10 0x00000001000b4cb4 in _Z15command_handlerPc (command=0x11018f230
"kill") at event-top.c:590
#11 0x00000001000b5288 in _Z20command_line_handlerPc (rl=0x11018f610
"") at event-top.c:780
#12 0x00000001000b4004 in _ZL23gdb_rl_callback_handlerPc
(rl=0x11018f610 "") 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=0x11018f250) at event-top.c:192
#16 0x00000001000b4950 in _Z19stdin_event_handleriPv (error=0,
client_data=0x11018f250) at event-top.c:518
During symbol reading, Unexpected storage class: 111.
#17 0x000000010045728c in _ZL17handle_file_eventP12file_handleri
(file_ptr=0x11028a7b0, ready_mask=1) at event-loop.c:733
#18 0x0000000100457774 in _ZL18gdb_wait_for_eventi (block=1) at event-loop.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=0x0) at main.c:325
#22 0x0000000100221c1c in _Z12catch_errorsPFiPvES_Pc11return_mask
(func=@0x11012d038: 0x100001480 <_ZL21captured_command_loopPv>,
func_args=0x0,
    errstring=0x1008574e0 <target_name+245360> "",
mask=RETURN_MASK_ALL) at exceptions.c:236
#23 0x00000001000032f8 in _ZL13captured_mainPv
(data=0xffffffffffffa20) at main.c:1148
#24 0x0000000100003364 in _Z8gdb_mainP18captured_main_args
(args=0xffffffffffffa20) at main.c:1158
#25 0x000000010000074c in main (argc=1, argv=0xffffffffffffad0) at gdb.c:32
(top-gdb) c
Continuing.

Breakpoint 3, _ZL19throw_exception_cxx13gdb_exception (exception=...)
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]