[gccsdk] [Bug 208] Stack trace running !PDF after building with HEAD revision of GCCSDK

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sat Jun 26 06:16:33 PDT 2010


http://www.riscos.info/bugzilla3/show_bug.cgi?id=208





--- Comment #2 from Chris Gransden <chrisg at care4free.net>  2010-06-26 06:16:31 ---
Just a file with lines terminated with carriage returns.

I tried cross compiler and natively with the same result.

I used this command to compile,

gcc -static -O2 -o filetest filetest.cc

If I miss off the -O2 it works. Heres the stack trace files for !PDF then the
test program.


Fatal signal received: Segmentation fault

Stack backtrace:

Running thread 0x213148
  (  807f38) pc:   1864e8 lr:   186a68 sp:   807f3c  __write_backtrace()
  (  807fa0) pc:   18660c lr:   1419f4 sp:   807fa4  __unixlib_raise_signal()
  (  807fb0) pc:   1418f8 lr:    f2828 sp:   806ce8  __h_cback()

  Register dump at 00807fb4:

    a1: fff9f9f9 a2:        0 a3:   1a389c a4: fff9f9f9
    v1:   20d470 v2:   806df4 v3:   806df4 v4:   806df4
    v5:   224ca0 v6:   806d74 sl:   806210 fp:   806cf8
    ip:   806cfc sp:   806ce8 lr:    f2828 pc:   114f80
    cpsr: a0000110

  00114f6c : x0<93>å : e5933078 : LDR     R3,[R3,#120]
  00114f70 : ..Sã : e3530000 : CMP     R3,#0
  00114f74 : .@ á : e1a04000 : MOV     R4,R0
  00114f78 : .... : 0a000005 : BEQ     &00114F94
  00114f7c : .. á : e1a00003 : MOV     R0,R3
  00114f80 : .0<93>å : e5933000 : LDR     R3,[R3,#0]
  00114f84 : .à á : e1a0e00f : MOV     R14,PC
  00114f88 : .ð<93>å : e593f018 : LDR     PC,[R3,#24]
  00114f8c : ..pã : e3700001 : CMN     R0,#1

  (  806cf8) pc:   114f58 lr:    f2828 sp:   806cfc  std::ostream::flush()()
  (  806d24) pc:    f27e0 lr:    f4eb8 sp:   806d28 
std::istream::sentry::sentry(std::istream&, bool)()
  (  806d60) pc:    f4e7c lr:    22ea4 sp:   806d64 
std::istream::getline(char*, long, char)()
  (  806f28) pc:    22d7c lr:    23a24 sp:   806f2c 
DefaultChoices::DefaultChoices()()
  (  806f48) pc:    23960 lr:    20468 sp:   806f4c 
DocViewChoices::DocViewChoices()()
  (  806f6c) pc:    2044c lr:    208c4 sp:   806f70 
Application::createDocument(char const*)()
  (  806fac) pc:    2076c lr:    20a84 sp:   806fb0 
Application::Application(int, char**)()
  (  806ff4) pc:    209f4 lr:   14f070 sp:   806ff8  main()




Fatal signal received: Segmentation fault

Stack backtrace:

Running thread 0x8ede0
  ( 7a87f38) pc:    7327c lr:    737fc sp:  7a87f3c  __write_backtrace()
  ( 7a87fa0) pc:    733a0 lr:    54364 sp:  7a87fa4  __unixlib_raise_signal()
  ( 7a87fb0) pc:    54268 lr:    11a24 sp:  7a86d18  __h_cback()

  Register dump at 07a87fb4:

    a1:    88434 a2:  7a86d18 a3:  7a86e18 a4:    88451
    v1:    88451 v2:      100 v3:    88434 v4:        a
    v5:  7a86c2b v6:  7a86f40 sl:  7a86210 fp:  7a86e34
    ip:     8088 sp:  7a86d18 lr:    11a24 pc: e1a0f00c
    cpsr: 60000110

  00011a10 : .0 á : e1a03004 : MOV     R3,R4
  00011a14 : .À<96>å : e596c000 : LDR     R12,[R6,#0]
  00011a18 : .. á : e1a00006 : MOV     R0,R6
  00011a1c : .à á : e1a0e00f : MOV     R14,PC
  00011a20 : .ð<9c>å : e59cf01c : LDR     PC,[R12,#28]
  00011a24 : .0 ã : e3a03001 : MOV     R3,#1
  00011a28 : .0Æå : e5c6301c : STRB    R3,[R6,#28]
  00011a2c : .. á : e1a01004 : MOV     R1,R4
  00011a30 : .  á : e1a02005 : MOV     R2,R5

  ( 7a86e34) pc:    119bc lr:     85bc sp:  7a86e38  std::basic_ios<char,
std::char_traits<char> >::widen(char) const()
  ( 7a86ff4) pc:     84c8 lr:    5f124 sp:  7a86ff8  main()

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the gcc mailing list