[#6585] new wchar related libstdc++ case fail on elf-sim.

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6585] new wchar related libstdc++ case fail on elf-sim.

Submitted By: Mingquan Pan

Open Date

2011-05-10 23:13:25    

Priority:

Medium     Assignee:

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Assigned (Not Started)     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

head     kernel rev.:

State:

Open     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: new wchar related libstdc++ case fail on elf-sim.

Details:

 

new wchar related libstdc++ case fail on elf-sim.

 

std::bad_alloc error thrown:

22_locale/collate/transform/wchar_t/28277.cc execution test

27_io/basic_stringbuf/overflow/wchar_t/1.cc execution test

 

internal assert failures:

22_locale/ctype/scan/wchar_t/1.cc execution test

27_io/basic_filebuf/seekoff/wchar_t/11543.cc execution test

27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc execution test

27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc execution test

27_io/basic_filebuf/underflow/wchar_t/11603.cc execution test

27_io/basic_istream/readsome/wchar_t/6746-2.cc execution test

27_io/basic_istream/seekg/wchar_t/fstream.cc execution test

27_io/basic_istream/tellg/wchar_t/1.cc execution test

27_io/basic_istream/tellg/wchar_t/fstream.cc execution test

27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc execution test

27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc execution test

27_io/basic_ostream/tellp/wchar_t/1.cc execution test

 

bug in sim i/o with std{in,err,out}, moved to [#6594]:

27_io/objects/wchar_t/12048-1.cc execution test

27_io/objects/wchar_t/12048-2.cc execution test

27_io/objects/wchar_t/12048-3.cc execution test

27_io/objects/wchar_t/12048-4.cc execution test

 

unknown reason for failure, but the non-whcar_t fails:

27_io/objects/wchar_t/6.cc execution test

 

the detailed fail log is attached.

 

Follow-ups

 

--- Mike Frysinger                                           2011-05-11 15:03:18

22_locale/collate/transform/wchar_t/28277.cc is expected.  it tries to allocate

huge chunks like 40MiB and ends up throwing std::bad_alloc.  if you read the

upstream PR28277, that was the point ... extra large allocs should get caught.

 

if i manually give the sim like 512MiB of memory, then it runs fine.

 

--- Mike Frysinger                                           2011-05-11 15:12:32

27_io/basic_stringbuf/overflow/wchar_t/1.cc has the same problem i think.

 

these look like a bug in the newlib or c++ wchar code, not the sim, so i dont

have to look at them

22_locale/ctype/scan/wchar_t/1.cc

27_io/basic_filebuf/seekoff/wchar_t/11543.cc

27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc

27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc

27_io/basic_filebuf/underflow/wchar_t/11603.cc

27_io/basic_istream/readsome/wchar_t/6746-2.cc

27_io/basic_istream/seekg/wchar_t/fstream.cc

27_io/basic_istream/tellg/wchar_t/1.cc

27_io/basic_istream/tellg/wchar_t/fstream.cc

27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc

27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc

27_io/basic_ostream/tellp/wchar_t/1.cc

 

these all timeout:

27_io/objects/wchar_t/12048-1.cc

27_io/objects/wchar_t/12048-2.cc

27_io/objects/wchar_t/12048-3.cc

27_io/objects/wchar_t/12048-4.cc

 

this one fails in the non-wchar_t case too, so probably not related to wchar:

27_io/objects/wchar_t/6.cc

 

--- Mike Frysinger                                           2011-05-11 15:22:59

the timeouts are because the test attempts to do file i/o, but the internal sim

logic ends up reading from stdin instead of the file.  the test timesout because

the code sits there waiting for input on stdin which never comes.

 

i dont think the 27_io/objects/wchar_t/6.cc test is due to the sim.

 

i've split the sim-specific issues out into [#6594] and i'll take care of that.

but the rest are up to the guys in edinburgh now i think.

 

--- Mingquan Pan                                             2011-10-13 01:22:15

Compared with 2010r1-rc4, there are some new libstdc++ failure on elf-sim:

 

New tests that FAIL:

 

bfin-elf-sim: 22_locale/collate/transform/wchar_t/28277.cc execution test

bfin-elf-sim: 22_locale/ctype/scan/wchar_t/1.cc execution test

bfin-elf-sim: 27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc

execution test

bfin-elf-sim: 27_io/basic_stringbuf/overflow/wchar_t/1.cc execution test

bfin-elf-sim: 27_io/objects/char/12048-5.cc execution test

bfin-elf-sim: 27_io/objects/wchar_t/6.cc execution test

 

detailed log is attached.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

libstdc++-4.3.log.gz    application/x-gzip    70797    Mingquan Pan

libstdc++.tar.gz    application/x-gzip    95287    Mingquan Pan

Attachments

Outcomes