screen(1) crashes plus weird output for screen -ls

Ralf Wenk iz-rpi03 at hs-karlsruhe.de
Thu Mar 27 13:54:12 UTC 2014


Hi,

while working with screen(1) it dumps core very often on arm.
Using gdb on the core shows
  (gdb) bt
  #0  0x2029bc18 in strlen () from /lib/libc.so.7
  #1  0x0001e9a4 in ?? ()
  (gdb)
as the last function called every time.

Interestingly the output of "screen -ls" is a little bit weird an looks

  There is a screen on:
          814.ttyu0.rpi  (Attached)
  -1073746664 Socket
                    Рá in °õÿ¿8è.

instead of the expected 

  There is a screen on:
          814.ttyu0.rpi  (Attached)
  1 Socket in /tmp/screens/S-root


/tmp is a tmpfs. kernel and world are from a fresh checked-out r263766.
screen(1) is newly compiled with clang from that version an pk info shows
  [...]
  Name           : screen
  Version        : 4.0.3_14
  Installed on   : Wed Mar 26 16:07:57 CET 2014
  Origin         : sysutils/screen
  Architecture   : freebsd:11:armv6:32:el:eabi:softfp
  [...]

ktrace/kdump verified that the weird "Socket" line(s) are already in the
write(2) buffer.

As screen(1) on i386 does not dump core and "screen -ls" shows the expected
output I think this is a arm related problem.

Ralf



More information about the freebsd-arm mailing list