[BUG] GDB port bug report due to login problems with Bugzilla

Luca Pizzamiglio luca.pizzamiglio at gmail.com
Wed Aug 13 15:47:55 UTC 2014


Hi Norbert,
I installed a i386 10.0 system and I can debug with gdb78.

I've built gdb-7.8_1 and used it to debug a hello world. It worked.
I ran gdb78 to debug gdb78 debugging a hello world. It worked.
In other words, here is everything fine.

The error you show is quite strange: the whole trace is quite a messy:
the function tdefault_trace_init, showed 4 times, is not even called,
as the first resolved function async_disable_stdin.
I guess that the crash has corrupted the core dump in some way...

At the moment, I cannot install a FreeBSD 9.1 system, but I will try next days.

Could you give me also the port's configuration? Some special
configuration in make.conf? Compiler used to build gdb?

Thanks in advance

best regards,
pizzamig



On Wed, Aug 13, 2014 at 12:55 PM, Luca Pizzamiglio
<luca.pizzamiglio at gmail.com> wrote:
> Hi Norbert,
>
> it could be a problem related to i386, because on amd64 it works perfectly.
> I'll try to get a i386 system and test it more deeply.
>
> thanks for the help
>
> best regards,
> pizzamig
>
> On Wed, Aug 13, 2014 at 11:42 AM, Norbert Koch <nkoch at demig.de> wrote:
>> Hello.
>>
>> As I am not able to login to Bugzilla to report a bug
>> (502 Bad Gateway from nginx?)  I would like to inform
>> you here about a bug in devel/gdb.
>>
>> Since before updating to 7.8.1 I had no problems.
>>
>> Now with latest patch to fbsd-threads.c (R 364713)
>> gdb crashes with the first run command.
>>
>> % gdb78 `which gdb78`gdb78.core
>> GNU gdb (GDB) 7.8 [GDB v7.8 for FreeBSD]
>> Copyright (C) 2014 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later
>> <http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "i386-portbld-freebsd9.1".
>> Type "show configuration" for configuration details.
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/gdb/bugs/>.
>> Find the GDB manual and other documentation resources online at:
>> <http://www.gnu.org/software/gdb/documentation/>.
>> For help, type "help".
>> Type "apropos word" to search for commands related to "word"...
>> Reading symbols from /usr/local/bin/gdb78...done.
>> [New process 100614]
>> Core was generated by `gdb78'.
>> Program terminated with signal SIGABRT, Aborted.
>> #0  0x293c73f7 in kill () from /lib/libc.so.7
>> (gdb) bt
>> #0  0x293c73f7 in kill () from /lib/libc.so.7
>> #1  0x293c7316 in raise () from /lib/libc.so.7
>> #2  0x293c5d9a in abort () from /lib/libc.so.7
>> #3  0x0841ba8a in can_dump_core (reason=0x89f49b0 "DB does when %s is
>> detected.") at utils.c:630
>> #4  0x0841bdb1 in internal_verror (
>>     file=0x299dca80 "target.c:2626: internal-error: Can't determine the
>> current address space of thread LWP 1\n\nA problem internal to GDB has
>> been detected,\nfurther debugging may prove unreliable.",
>> line=144656744, fmt=0x89f49cf "", ap=0x299e8c00 "(y or n) ") at utils.c:802
>> #5  0x089f49b0 in ?? ()
>> #6  0x0841be1e in ?? () at utils.c:813
>> #7  0x0841be5c in internal_warning (
>>     file=0x89d1947 "col of the target machine.\nRemaining arguments are
>> interpreted by the target protocol.  For more\ninformation on the
>> arguments for a particular protocol, type\n`help target ' followed by
>> the protocol na"..., line=2626, string=0x89d25a4 "LL") at utils.c:832
>> #8  0x08354773 in target_thread_address_space (ptid=...) at target.c:2642
>> #9  0x0834dd24 in tdefault_trace_init (self=0x92982c0 <dummy_target>) at
>> target-delegates.c:964
>> #10 0x0834dd24 in tdefault_trace_init (self=0x92c5d40 <exec_ops>) at
>> target-delegates.c:964
>> #11 0x0834dd24 in tdefault_trace_init (self=0x298ba500) at
>> target-delegates.c:964
>> #12 0x0834dd24 in tdefault_trace_init (self=0x9290400 <fbsd_thread_ops>)
>> at target-delegates.c:964
>> #13 0x083547ab in target_thread_address_space (ptid=...) at target.c:2645
>> #14 0x082b2227 in ?? () at regcache.c:491
>> #15 0x082b231a in regcache_observer_target_changed (target=0x8999254) at
>> regcache.c:520
>> #16 0x0830b960 in thread_still_needs_step_over (tp=0x29a02900) at
>> infrun.c:2110
>> #17 0x08311beb in keep_going (ecs=0xbfbfe138) at infrun.c:5809
>> #18 0x0830f842 in process_event_stop_test (ecs=0xbfbfe138) at infrun.c:4590
>> #19 0x0830f292 in process_event_stop_test (ecs=0xbfbfe138) at infrun.c:4349
>> #20 0x0830e525 in handle_inferior_event (ecs=0xbfbfe138) at infrun.c:3830
>> #21 0x0830ca66 in fetch_inferior_event (client_data=0x298ba500) at
>> infrun.c:2865
>> #22 0x0830bfa8 in start_remote (from_tty=674835856) at infrun.c:2423
>> #23 0x08304d1c in ?? () at infcmd.c:641
>> #24 0x08304d50 in start_command (args=0x0, from_tty=1) at infcmd.c:660
>> #25 0x0823b41b in do_sfunc (c=0x299d1350, args=0x0, from_tty=1) at
>> ./cli/cli-decode.c:123
>> #26 0x0823e241 in multi_line_command_p (type=698159952) at
>> ./cli/cli-script.c:97
>> #27 0x08419253 in execute_command (p=0x2983b081 "", from_tty=1) at top.c:482
>> #28 0x0832c821 in command_line_handler (rl=0x2983b080 "") at event-top.c:460
>> #29 0x0832cd73 in gdb_readline2 (client_data=0x2983d134) at event-top.c:653
>> #30 0x2912a117 in rl_callback_read_char () from
>> /usr/local/lib/libreadline.so.6
>> #31 0x0832c3ab in change_line_handler () at event-top.c:200
>> #32 0x0832c712 in async_disable_stdin () at event-top.c:399
>> #33 0xbfbfe6ac in ?? ()
>> (gdb) q
>>
>>
>> % uname -a
>> FreeBSD entw-pr2.demig.intra 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Wed
>> Feb  6 17:03:36 CET 2013
>> root at entw-pr2.demig.intra:/usr/obj/usr/src/sys/ENTW-PR2  i386
>>
>>
>> Best regards,
>> Norbert Koch
>> _______________________________________________
>> freebsd-ports at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"


More information about the freebsd-ports mailing list