[#4494] strings command on a large buffer crashes

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

[#4494] strings command on a large buffer crashes

Submitted By: Mike Frysinger

Open Date

2008-10-13 03:39:35     Close Date

2008-11-04 00:07:21

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

N/A

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: strings command on a large buffer crashes

Details:

 

the "strings" command tends to crash when used on large buffers.  like the kernel log buffer.

 

Follow-ups

 

--- Mike Frysinger                                           2008-10-13 17:19:00

easy way to reproduce:

mw.b 0 0 0x100000

mw.b 0 0x65 0x1000

strings 1

 

Ack! Something bad happened to the Blackfin!

 

SEQUENCER STATUS:

SEQSTAT: 0000202a  IPEND: 8008  SYSCFG: 0032

  HWERRCAUSE: 0x0: undef

  EXCAUSE   : 0x2a: misaligned inst

  physical IVG15 asserted : <0x03fa0510> { _evt_default + 0x0 }

RETE: <0x8e4632c7> { ___smulsi3_highpart + 0x8a4ac637 }

RETN: <0xdc1c1006> { ___smulsi3_highpart + 0xd820a376 }

RETX: <0x03fad1d6> { _printf + 0x42 }

RETS: <0x65656565> { ___smulsi3_highpart + 0x6169f8d5 }

RETI: <0x03fa00d6> { _start + 0xd6 }

DCPLB_FAULT_ADDR: <0x03f3fb28> /* unknown address */

ICPLB_FAULT_ADDR: <0x03fad1d6> { _printf + 0x42 }

 

PROCESSOR STATE:

R0 : 00000000    R1 : 0000000a    R2 : 03f40a08    R3 : 00000001

R4 : 00000000    R5 : 00000000    R6 : 00000000    R7 : 00000001

P0 : 00000010    P1 : 00000128    P2 : ffc02014    P3 : 03f3fe64

P4 : 65656565    P5 : 03f3ff80    FP : 03f3fc6f    SP : 03f3fa58

LB0: 03fb44ac    LT0: 03fb44a4    LC0: 00000000

LB1: 00000001    LT1: ffa0002e    LC1: 00000000

B0 : 000001ff    L0 : 00000000    M0 : 1000e4c5    I0 : 00000001

B1 : 03f84058    L1 : 00000000    M1 : 730f9d02    I1 : 03ff81c8

B2 : 03f82d80    L2 : 00000000    M2 : a08a5ada    I2 : 00000008

B3 : 03f841d8    L3 : 00000000    M3 : e808961f    I3 : 0000003f

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : ffb00ffc  ASTAT: 00001025

 

Hardware Trace:

   0 Target : <0x03fa0af8> { _bfin_panic + 0x0 }

     Source : <0x03fa0c74> { _trap_c + 0x140 }

   1 Target : <0x03fa0c68> { _trap_c + 0x134 }

     Source : <0x03fa0b50> { _trap_c + 0x1c }

   2 Target : <0x03fa0b34> { _trap_c + 0x0 }

     Source : <0x03fa04b6> { _trap + 0x56 }

   3 Target : <0x03fa0460> { _trap + 0x0 }

     Source : <0x03fad1d4> { _printf + 0x40 }

   4 Target : <0x03fad1cc> { _printf + 0x38 }

     Source : <0x03fb436c> { _serial_puts + 0x1c }

   5 Target : <0x03fb4360> { _serial_puts + 0x10 }

     Source : <0x03fb433c> { _serial_putc + 0x48 }

   6 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

   7 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

   8 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

   9 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

  10 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

  11 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

  12 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

  13 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

  14 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

  15 Target : <0x03fb4328> { _serial_putc + 0x34 }

     Source : <0x03fb4334> { _serial_putc + 0x40 }

 

### ERROR ### Please RESET the board ###

 

--- Mike Frysinger                                           2008-11-03 23:19:37

should be fixed now by using puts() rather than printf()

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes