[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: Gentoo and 64 bits...

From: John Yates
Subject: [Monotone-devel] Re: Gentoo and 64 bits...
Date: Sun, 6 Mar 2005 23:23:58 +0000 (UTC)
User-agent: Loom/3.14 (

Nathaniel Smith <njs <at>> writes:

> Hmm, that's unfortunate :-/.  Unfortunately, the backtrace doesn't
> make any sense to me (how could std::string::operator+ be the top of
> the stack?), maybe because your binary has no debugging information...
> so not much I can say, unless someone with access to such a machine
> wants to investigate further...
> For a start, you might try building it by hand with
>  $ ./configure CFLAGS="-O0 -ggdb3" CXXFLAGS="-O0 -ggdb3"
> and then see what the backtrace looks like...

I've since learned that emerge strips images.  I had not expected
that.  The requisite gentoo magic incantation is

  USE="debug" FEATURES="nostrip" emerge package-to-be-debugged

Here then is a more informative backtrace.


bash-2.05b$ gdb monotone
GNU gdb 6.0
Copyright 2003 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 "x86_64-pc-linux-gnu"...Using host libthread_db 
library "/lib/".

(gdb) run
Starting program: /usr/bin/monotone 
shell-init: could not get current directory: getcwd: cannot access parent 
directories: No such file or directory
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 1082)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1082)]
0x0000002a960fe820 in memcpy () from /lib/
(gdb) bt
#0  0x0000002a960fe820 in memcpy () from /lib/
#1  0x0000002a95c9dab1 in std::string::append(char const*, unsigned long) () 
from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/
#2  0x00000000006b0ea0 in void boost::io::detail::(anonymous 
namespace)::mk_str<char, std::char_traits<char> >(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >&, char const*, long, long, char, 
std::_Ios_Fmtflags, char, bool) (address@hidden, beg=0x982fb8 "", size=-1, w=0, 
fill_char=32 ' ', f=4098, prefix_space=0 '\0', center=false) at feed_args.hpp:73
#3  0x00000000006b0a36 in void boost::io::detail::(anonymous 
namespace)::put<char, std::char_traits<char>, char (&) [65]>(char (&) [65], 
boost::io::detail::format_item<char, std::char_traits<char> > const&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, 
boost::io::basic_outsstream<char, std::char_traits<char> >&) (address@hidden, 
address@hidden, address@hidden, address@hidden) at feed_args.hpp:165
#4  0x00000000006b07dc in void boost::io::detail::distribute<char, 
std::char_traits<char>, char (&) [65]>(boost::basic_format<char, 
std::char_traits<char> >&, char (&) [65]) (address@hidden, address@hidden) 
at feed_args.hpp:241
#5  0x00000000006b069e in boost::basic_format<char, std::char_traits<char> >& 
boost::io::detail::feed<char, std::char_traits<char>, char (&) [65]>
(boost::basic_format<char, std::char_traits<char> >&, char (&) [65]) 
(address@hidden, address@hidden) at feed_args.hpp:249
#6  0x00000000006b066b in boost::basic_format<char, std::char_traits<char> >& 
boost::basic_format<char, std::char_traits<char> >::operator%<char[65]>(char[65]
&) (this=0x7fbffff0e0, address@hidden) at format_class.hpp:65
#7  0x00000000006b0576 in get_system_flavour(std::string&) 
(address@hidden) at unix/
#8  0x000000000050b328 in sanity (this=0x951a80) at
#9  0x000000000050cf26 in __static_initialization_and_destruction_0 
(__initialize_p=1, __priority=65535) at
#10 0x000000000050cf7f in _GLOBAL__I_global_sanity () at
#11 0x00000000006b0fe6 in __do_global_ctors_aux ()
#12 0x000000000040d333 in _init ()


reply via email to

[Prev in Thread] Current Thread [Next in Thread]