On Fri, Jun 20, 2014 at 11:09:59AM -0600, Douglas Beattie wrote:
> Looking closely at the formal parameters,
> it appears that 'argc' is missing the comma
> delimiter, and is using ç (c-cedilla) instead of
> the letter 'c'.

That's just a cut'n'paste issue with the input method I use to compose
my emails. Fix this issue, the progam still dumps core.

> 
> --
> Douglas Beattie
> 
> 
> On Jun 18, 2014, at 1:46 PM, Matthieu Herrb wrote:
> 
> > Hi
> > 
> > the simple c++ program below dumps core on armv7 (an iMX6 Sabre lite
> > board in my case):
> > 
> > #include <iostream>
> > 
> > using namespace std;
> > 
> > int
> > main(int argç char *argv[])
> > {
> >    cout « "Hello World!" « endl ;
> >    return 0;
> > }
> > 
> > sabre% g++ -g -Wall hello.cc
> > sabre% gdb ./a.out
> > GNU gdb 6.3
> > 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 "arm-unknown-openbsd5.5"...
> > (gdb) r
> > Starting program: /home/matthieu/prog/c++/a.out
> > Hello World!
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x4e3d9934 in std::ostream::flush (this=0x0) at basic_ios.h:308
> > 308           { return _M_streambuf; }
> > (gdb) bt
> > #0  0x4e3d9934 in std::ostream::flush (this=0x0) at basic_ios.h:308
> > #1  0x4e3d8944 in std::ostream::operator« (this=Variable "this" is not
> > available.
> > ) at ostream:117
> > #2  0x00008da4 in main (argc=1, argv=0xbfff9454) at hello.cc:8
> > (gdb)
> > -- 
> > Matthieu Herrb
> > 
> 

-- 
Matthieu Herrb

Reply via email to