Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jul 2004 08:53:03 +0000
From:      Vladimir Grebenschikov <vova@express.ru>
To:        "current@freebsd.org" <current@freebsd.org>
Subject:   gdb coredumps after recent CURRENT upgrade
Message-ID:  <1089103983.921.22.camel@localhost>

next in thread | raw e-mail | index | archive | help

Hi=20

It complains about realloc:


# gdb httpd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) r -X
Starting program: /usr/local/sbin/httpd -X
gdb in realloc(): error: pointer to wrong page
=E1=D7=C1=D2=C9=CA=CE=CF=C5 =DA=C1=D7=C5=D2=DB=C5=CE=C9=C5 (core dumped)
# gdb gdb gdb.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `gdb'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libm.so.2...(no debugging symbols found)...
done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libreadline.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libreadline.so.4
Reading symbols from /lib/libncurses.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...
done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1

#0  0x28310adb in kill () from /lib/libc.so.5
(gdb) bt
#0  0x28310adb in kill () from /lib/libc.so.5
#1  0x28306a9e in raise () from /lib/libc.so.5
#2  0x2837263b in abort () from /lib/libc.so.5
#3  0x2831aa79 in ldexp () from /lib/libc.so.5
#4  0x2831aabd in ldexp () from /lib/libc.so.5
#5  0x2831b37a in ldexp () from /lib/libc.so.5
#6  0x2831b5c8 in ldexp () from /lib/libc.so.5
#7  0x2831b6e9 in realloc () from /lib/libc.so.5
#8  0x080b5d86 in request_quit ()
#9  0x080b5e48 in xmrealloc ()
#10 0x080b5eff in xrealloc ()
#11 0x080d31b1 in target_resize_to_sections ()
#12 0x080e8e19 in free_so ()
#13 0x080e8ea8 in solib_add ()
#14 0x0811854e in handle_inferior_event ()
#15 0x08116fa8 in wait_for_inferior ()
#16 0x08116e2a in proceed ()
#17 0x080bd7b8 in child_post_attach ()
#18 0x080d313e in find_default_create_inferior ()
#19 0x080726d5 in tty_command ()
#20 0x080a979e in _initialize_cp_abi ()
#21 0x080ab1ec in cmd_func ()
#22 0x080bba9c in execute_command ()
#23 0x08088337 in async_disable_stdin ()
#24 0x080889e8 in async_disable_stdin ()
#25 0x2826d336 in rl_callback_read_char () from /lib/libreadline.so.4
#26 0x08087c57 in _initialize_gdbarch_utils ()
#27 0x080881f4 in stdin_event_handler ()
#28 0x08089595 in delete_file_handler ()
#29 0x08089020 in gdb_disable_readline ()
#30 0x0808906c in gdb_do_one_event ()
#31 0x080bb736 in catch_exceptions_with_msg ()
#32 0x080bb599 in throw_exception ()
#33 0x080bb76e in catch_errors ()
---Type <return> to continue, or q <return> to quit---
#34 0x08144bb7 in tui_dispatch_ctrl_char ()
#35 0x08071dd0 in current_interp_command_loop ()
#36 0x08070e47 in main ()
(gdb)=20

It have work on CURRENT monthly old.
It happens on both libc_r and libthread (by libmap.conf).

# uname -a
FreeBSD vbook.fbsd.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #61: Mon Jul  5
07:58:03 MSD 2004     root@walder.fbsd.ru:/ext/obj/ext/current/src/sys/
VBOOK  i386


--=20
Vladimir B. Grebenchikov
TSB "Russian Express"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1089103983.921.22.camel>