Description of problem: trying to debug gegl library, based on 4ea927b gegl git: GEGL_DEBUG=opencl GEGL_PATH="./operations" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./gegl/.libs/" gdb ./bin/.libs/gegl with mesa OpenCL Version-Release number of selected component: gdb-7.7.1-13.fc20 Additional info: reporter: libreport-2.2.2 backtrace_rating: 4 cmdline: gdb ./bin/.libs/gegl tests/compositions/colors.xml crash_function: d_print_comp executable: /usr/bin/gdb kernel: 3.14.5-200.fc20.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #0 d_print_comp at ../../libiberty/cp-demangle.c:4721 #16 d_print_cast at ../../libiberty/cp-demangle.c:5700 #17 d_print_comp at ../../libiberty/cp-demangle.c:4967 #20 d_print_cast at ../../libiberty/cp-demangle.c:5700 #21 d_print_comp at ../../libiberty/cp-demangle.c:4967 #24 d_print_cast at ../../libiberty/cp-demangle.c:5700 #25 d_print_comp at ../../libiberty/cp-demangle.c:4967 #28 d_print_cast at ../../libiberty/cp-demangle.c:5700 #29 d_print_comp at ../../libiberty/cp-demangle.c:4967 #32 d_print_cast at ../../libiberty/cp-demangle.c:5700
Created attachment 909228 [details] File: backtrace
Created attachment 909229 [details] File: cgroup
Created attachment 909230 [details] File: core_backtrace
Created attachment 909231 [details] File: dso_list
Created attachment 909232 [details] File: environ
Created attachment 909233 [details] File: exploitable
Created attachment 909234 [details] File: limits
Created attachment 909235 [details] File: maps
Created attachment 909236 [details] File: open_fds
Created attachment 909237 [details] File: proc_pid_status
Created attachment 909238 [details] File: var_log_messages
Hi Jan, The supplied backtrace is truncated. I need the mangled symbol name from somewhere near the bottom of the backtrace. It'll look like one of these frames: #9 0x0000000000413131 in d_demangle_callback (mangled=0x7ffffac19ea0 "_Z1-Av23*;cG~Wo2Vu", options=259, callback=0x40ed11 , opaque=0x7ffffac19d70) at libiberty/cp-demangle.c:5862 #10 0x0000000000413267 in d_demangle (mangled=0x7ffffac19ea0 "_Z1-Av23*;cG~Wo2Vu", options=259, palc=0x7ffffac19dd8) at libiberty/cp-demangle.c:5913 #11 0x00000000004132d6 in cplus_demangle_v3 (mangled=0x7ffffac19ea0 "_Z1-Av23*;cG~Wo2Vu", options=259) at libiberty/cp-demangle.c:6070 #12 0x0000000000401a87 in cplus_demangle (mangled=0x7ffffac19ea0 "_Z1-Av23*;cG~Wo2Vu", options=259) at libiberty/cplus-dem.c:858 In all of these the mangled symbol name is "_Z1-Av23*;cG~Wo2Vu". Thanks, Gary
Jan, this is infinite recursion, so you'll likely have thousands of frames. Use "bt -20" to get the 20 bottom frames.
I ran gdb inside gdb. You are right, there are som 36k entries :) here's bt -50, that's where the recusrions starts. all higher entries are just: #439 0x0000000000801288 in d_print_cast (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=0x7fffffffaef8) at ../../libiberty/cp-demangle.c:5700 #440 0x00000000007febd3 in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=dc@entry=0x7fffffffaef8) at ../../libiberty/cp-demangle.c:4967 #441 0x00000000007feafe in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=<optimized out>) at ../../libiberty/cp-demangle.c:4326 #442 0x00000000007fe3cf in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=<optimized out>) at ../../libiberty/cp-demangle.c:4517 #443 0x0000000000801288 in d_print_cast (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=0x7fffffffaef8) at ../../libiberty/cp-demangle.c:5700 here's the bottom 50: (gdb) bt -50 #36060 0x0000000000801288 in d_print_cast (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=0x7fffffffaef8) at ../../libiberty/cp-demangle.c:5700 #36061 0x00000000007febd3 in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=dc@entry=0x7fffffffaef8) at ../../libiberty/cp-demangle.c:4967 #36062 0x00000000007feafe in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=<optimized out>) at ../../libiberty/cp-demangle.c:4326 #36063 0x00000000007fe01b in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=0x7fffffffb078) at ../../libiberty/cp-demangle.c:4477 #36064 0x000000000080025f in d_print_mod (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, mod=<optimized out>) at ../../libiberty/cp-demangle.c:5527 #36065 0x0000000000800947 in d_print_mod_list (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, mods=mods@entry=0x7fffffffa160, suffix=suffix@entry=0) at ../../libiberty/cp-demangle.c:5456 #36066 0x0000000000801041 in d_print_function_type (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, mods=0x7fffffffa160, dc=0x7fffffffb0c0) at ../../libiberty/cp-demangle.c:5597 #36067 0x00000000007fd72c in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=0x7fffffffb0c0) at ../../libiberty/cp-demangle.c:4796 #36068 0x00000000007fe1b7 in d_print_comp (dpi=dpi@entry=0x7fffffffa250, options=options@entry=259, dc=dc@entry=0x7fffffffb0d8) at ../../libiberty/cp-demangle.c:4422 #36069 0x000000000080468b in cplus_demangle_print_callback (options=options@entry=259, dc=0x7fffffffb0d8, callback=callback@entry=0x7fcac0 <d_growable_string_callback_adapter>, opaque=opaque@entry=0x7fffffffd2c0) at ../../libiberty/cp-demangle.c:4051 #36070 0x00000000008048b7 in d_demangle_callback (mangled=<optimized out>, mangled@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., options=259, callback=callback@entry=0x7fcac0 <d_growable_string_callback_adapter>, opaque=opaque@entry=0x7fffffffd2c0) at ../../libiberty/cp-demangle.c:5842 #36071 0x00000000008049d7 in d_demangle ( mangled=mangled@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., options=<optimized out>, palc=palc@entry=0x7fffffffd300) at ../../libiberty/cp-demangle.c:5863 #36072 0x0000000000804bcc in cplus_demangle_v3 ( mangled=mangled@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., options=<optimized out>) at ../../libiberty/cp-demangle.c:6020 #36073 0x00000000007f6d86 in cplus_demangle ( mangled=mangled@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., options=options@entry=3) at ../../libiberty/cplus-dem.c:858 #36074 0x00000000007184ab in bfd_demangle (abfd=abfd@entry=0x0, name=name@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., options=options@entry=3) at ../../bfd/bfd.c:1883 #36075 0x00000000006d94bc in gdb_demangle ( name=name@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., options=options@entry=3) at ../../gdb/cp-support.c:1490 #36076 0x00000000005ca7c9 in symbol_find_demangled_name ( mangled=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., gsymbol=0x23ed380) at ../../gdb/symtab.c:645 #36077 symbol_set_names (gsymbol=gsymbol@entry=0x23ed380, linkage_name=linkage_name@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., len=len@entry=210, copy_name=copy_name@entry=0, objfile=objfile@entry=0x2a1b8d0) at ../../gdb/symtab.c:855 #36078 0x000000000063b8d5 in prim_record_minimal_symbol_full (name=<optimized out>, name@entry=0xa00000000 <error: Cannot access memory at address 0xa00000000>, name_len=210, copy_name=copy_name@entry=0, address=140737298407296, ms_type=ms_type@entry=mst_file_text, section=<optimized out>, objfile=0x2a1b8d0) at ../../gdb/minsyms.c:945 #36079 0x0000000000560e44 in record_minimal_symbol (name=0xa00000000 <error: Cannot access memory at address 0xa00000000>, name@entry=0x7fffee4365d8 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_Sa"..., name_len=<optimized out>, copy_name=copy_name@entry=0, address=<optimized out>, address@entry=140737298407296, ms_type=ms_type@entry=mst_file_text, bfd_section=bfd_section@entry=0x1feb658, objfile=objfile@entry=0x2a1b8d0) at ../../gdb/elfread.c:206 #36080 0x00000000005610aa in elf_symtab_read (objfile=objfile@entry=0x2a1b8d0, type=type@entry=0, number_of_symbols=number_of_symbols@entry=17366, symbol_table=symbol_table@entry=0x2805b70, copy_names=copy_names@entry=0) at ../../gdb/elfread.c:554 #36081 0x00000000005619b7 in elf_symfile_read (objfile=0x2a1b8d0, symfile_flags=8) at ../../gdb/elfread.c:1163 #36082 0x00000000005d61d9 in read_symbols (objfile=objfile@entry=0x2a1b8d0, add_flags=add_flags@entry=8) at ../../gdb/symfile.c:839 #36083 0x00000000005d5d59 in syms_from_objfile_1 (add_flags=8, addrs=0x299cbd0, objfile=0x2a1b8d0) at ../../gdb/symfile.c:1014 #36084 syms_from_objfile (add_flags=8, addrs=0x299cbd0, objfile=0x2a1b8d0) at ../../gdb/symfile.c:1030 #36085 symbol_file_add_with_addrs (abfd=<optimized out>, name=name@entry=0x1fec270 "/home/vesely/mesa/lib/gallium/libOpenCL.so", add_flags=add_flags@entry=8, addrs=addrs@entry=0x299cbd0, flags=flags@entry=2, parent=parent@entry=0x0) at ../../gdb/symfile.c:1127 #36086 0x00000000005d6265 in symbol_file_add_from_bfd (abfd=<optimized out>, name=name@entry=0x1fec270 "/home/vesely/mesa/lib/gallium/libOpenCL.so", add_flags=add_flags@entry=8, ---Type <return> to continue, or q <return> to quit--- addrs=addrs@entry=0x299cbd0, flags=flags@entry=2, parent=parent@entry=0x0) at ../../gdb/symfile.c:1216 #36087 0x00000000006dcd29 in solib_read_symbols (so=so@entry=0x1fec060, flags=flags@entry=8) at ../../gdb/solib.c:640 #36088 0x00000000006dd1b2 in solib_add (pattern=pattern@entry=0x0, from_tty=from_tty@entry=0, target=<optimized out>, readsyms=1) at ../../gdb/solib.c:954 #36089 0x00000000006dd5de in handle_solib_event () at ../../gdb/solib.c:1270 #36090 0x0000000000591ddb in bpstat_stop_status (aspace=0x1177960, bp_addr=bp_addr@entry=269427489184, ptid=..., ws=ws@entry=0x7fffffffda30) at ../../gdb/breakpoint.c:5343 #36091 0x00000000005ef995 in handle_signal_stop (ecs=0x7fffffffda10) at ../../gdb/infrun.c:4274 #36092 handle_inferior_event (ecs=0x7fffffffda10) at ../../gdb/infrun.c:3761 #36093 0x00000000005f18aa in wait_for_inferior () at ../../gdb/infrun.c:2788 #36094 0x00000000005f1db7 in proceed (addr=<optimized out>, siggnal=siggnal@entry=GDB_SIGNAL_0, step=step@entry=0) at ../../gdb/infrun.c:2343 #36095 0x00000000005e6070 in run_command_1 (args=0xf40152 "tests/compositions/colors.xml", from_tty=<optimized out>, tbreak_at_main=<optimized out>) at ../../gdb/infcmd.c:610 #36096 0x00000000006c58ef in execute_command (p=<optimized out>, p@entry=0xf40150 "", from_tty=1) at ../../gdb/top.c:471 #36097 0x00000000006083c1 in command_handler (command=0xf40150 "") at ../../gdb/event-top.c:440 #36098 0x000000000060887c in command_line_handler (rl=<optimized out>) at ../../gdb/event-top.c:637 #36099 0x0000003edd22acee in rl_callback_read_char () at ../callback.c:220 #36100 0x0000000000608429 in rl_callback_read_char_wrapper (client_data=<optimized out>) at ../../gdb/event-top.c:165 #36101 0x0000000000606fe4 in process_event () at ../../gdb/event-loop.c:342 #36102 0x0000000000607377 in gdb_do_one_event () at ../../gdb/event-loop.c:406 #36103 0x00000000006075a7 in start_event_loop () at ../../gdb/event-loop.c:431 #36104 0x0000000000600483 in captured_command_loop (data=data@entry=0x0) at ../../gdb/main.c:268 #36105 0x00000000005fe52a in catch_errors (func=func@entry=0x600470 <captured_command_loop>, func_args=func_args@entry=0x0, errstring=errstring@entry=0x82e6c8 "", mask=mask@entry=RETURN_MASK_ALL) at ../../gdb/exceptions.c:524 #36106 0x000000000060112e in captured_main (data=data@entry=0x7fffffffdf50) at ../../gdb/main.c:1160 #36107 0x00000000005fe52a in catch_errors (func=func@entry=0x6008b0 <captured_main>, func_args=func_args@entry=0x7fffffffdf50, errstring=errstring@entry=0x82e6c8 "", mask=mask@entry=RETURN_MASK_ALL) at ../../gdb/exceptions.c:524 #36108 0x0000000000601cf4 in gdb_main (args=args@entry=0x7fffffffdf50) at ../../gdb/main.c:1170 #36109 0x000000000045c8be in main (argc=<optimized out>, argv=<optimized out>) at ../../gdb/gdb.c:34 (gdb) bt -20 #36090 0x0000000000591ddb in bpstat_stop_status (aspace=0x1177960, bp_addr=bp_addr@entry=269427489184, ptid=..., ws=ws@entry=0x7fffffffda30) at ../../gdb/breakpoint.c:5343 #36091 0x00000000005ef995 in handle_signal_stop (ecs=0x7fffffffda10) at ../../gdb/infrun.c:4274 #36092 handle_inferior_event (ecs=0x7fffffffda10) at ../../gdb/infrun.c:3761 #36093 0x00000000005f18aa in wait_for_inferior () at ../../gdb/infrun.c:2788 #36094 0x00000000005f1db7 in proceed (addr=<optimized out>, siggnal=siggnal@entry=GDB_SIGNAL_0, step=step@entry=0) at ../../gdb/infrun.c:2343 #36095 0x00000000005e6070 in run_command_1 (args=0xf40152 "tests/compositions/colors.xml", from_tty=<optimized out>, tbreak_at_main=<optimized out>) at ../../gdb/infcmd.c:610 #36096 0x00000000006c58ef in execute_command (p=<optimized out>, p@entry=0xf40150 "", from_tty=1) at ../../gdb/top.c:471 #36097 0x00000000006083c1 in command_handler (command=0xf40150 "") at ../../gdb/event-top.c:440 #36098 0x000000000060887c in command_line_handler (rl=<optimized out>) at ../../gdb/event-top.c:637 #36099 0x0000003edd22acee in rl_callback_read_char () at ../callback.c:220 #36100 0x0000000000608429 in rl_callback_read_char_wrapper (client_data=<optimized out>) at ../../gdb/event-top.c:165 #36101 0x0000000000606fe4 in process_event () at ../../gdb/event-loop.c:342 #36102 0x0000000000607377 in gdb_do_one_event () at ../../gdb/event-loop.c:406 #36103 0x00000000006075a7 in start_event_loop () at ../../gdb/event-loop.c:431 #36104 0x0000000000600483 in captured_command_loop (data=data@entry=0x0) at ../../gdb/main.c:268 #36105 0x00000000005fe52a in catch_errors (func=func@entry=0x600470 <captured_command_loop>, func_args=func_args@entry=0x0, errstring=errstring@entry=0x82e6c8 "", mask=mask@entry=RETURN_MASK_ALL) at ../../gdb/exceptions.c:524 #36106 0x000000000060112e in captured_main (data=data@entry=0x7fffffffdf50) at ../../gdb/main.c:1160 #36107 0x00000000005fe52a in catch_errors (func=func@entry=0x6008b0 <captured_main>, func_args=func_args@entry=0x7fffffffdf50, errstring=errstring@entry=0x82e6c8 "", mask=mask@entry=RETURN_MASK_ALL) at ../../gdb/exceptions.c:524 #36108 0x0000000000601cf4 in gdb_main (args=args@entry=0x7fffffffdf50) at ../../gdb/main.c:1170 #36109 0x000000000045c8be in main (argc=<optimized out>, argv=<optimized out>) at ../../gdb/gdb.c:34
Hi Jan, Those are the right frames but I think the symbol name is truncated. Could you go to one of the frames with the symbol in the arguments (#36076 is one) and "p mangled" please? Thanks, Gary
(In reply to Gary Benson from comment #15) > Hi Jan, > Those are the right frames but I think the symbol name is truncated. > Could you go to one of the frames with the symbol in the arguments > (#36076 is one) and "p mangled" please? That might not be enough... I think instead "set print elements unlimited" first will do the right thing.
Is this the info you're looking for? (gdb) frame 36076 #36076 0x00000000005ca7c9 in symbol_find_demangled_name ( mangled=0x3327978 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_SaISN_EEvEEv", gsymbol=0x2d53890) at ../../gdb/symtab.c:645 645 demangled = (gdb) p mangled $1 = 0x3327978 "_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_SaISN_EEvEEv"
Got it, thanks Jan. This is the same symbol as these: https://sourceware.org/bugzilla/show_bug.cgi?id=17043 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61460
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.