Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem with serial port



Am Mittwoch 06 August 2008 20:17:53 schrieben Sie:
> On Wed, Aug 06, 2008 at 07:56:51PM +0200, Mirko Rüther wrote:
> > Was there any changes between 3.99 and 4.0?
>
> Not sure, but fwiw, I a musing ttyh1 on one of my machines running -current
> to talk to a UPS, so I'm pretty sure it is not completely broken (besides
> serial console works on 4.0)
>
> Maybe the update changed some permissions?
the permissions are imho ok.

crwxrwxrwx  1 root  wheel  77, 1 Jul 31 12:06 /dev/ttyh1

the program is running as root.

> Can you ktrace the program to find out what happens?
of course, but i can't find anything in the output:
13502      1 ktrace   EMUL  "netbsd"
 13502      1 ktrace   CALL  
execve(0xffffffffffffc1f0,0xffffffffffffc820,0xffffffffffffc848)
 13502      1 ktrace   NAMI  "/sbin/digitemp"
 13502      1 ktrace   RET   execve -1 errno 2 No such file or directory
 13502      1 ktrace   CALL  
execve(0xffffffffffffc1f0,0xffffffffffffc820,0xffffffffffffc848)
 13502      1 ktrace   NAMI  "/usr/sbin/digitemp"
 13502      1 ktrace   RET   execve -1 errno 2 No such file or directory
 13502      1 ktrace   CALL  
execve(0xffffffffffffc1f0,0xffffffffffffc820,0xffffffffffffc848)
 13502      1 ktrace   NAMI  "/bin/digitemp"
 13502      1 ktrace   RET   execve -1 errno 2 No such file or directory
 13502      1 ktrace   CALL  
execve(0xffffffffffffc1f0,0xffffffffffffc820,0xffffffffffffc848)
 13502      1 ktrace   NAMI  "/usr/bin/digitemp"
 13502      1 ktrace   NAMI  "/usr/libexec/ld.elf_so"
 13502      1 digitemp_DS9097 EMUL  "netbsd"
 13502      1 digitemp_DS9097 RET   execve JUSTRETURN
 13502      1 digitemp_DS9097 CALL  
mmap(0,0x8000,3,0x1002,0xffffffffffffffff,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1075896320/0x4020e000
 13502      1 digitemp_DS9097 CALL  open(0x4030d070,0,0xffffffffffffffff)
 13502      1 digitemp_DS9097 NAMI  "/etc/ld.so.conf"
 13502      1 digitemp_DS9097 RET   open -1 errno 2 No such file or directory
 13502      1 digitemp_DS9097 CALL  
open(0xffffffffffffbed0,0,0x7f7f7f7f7f7f7f7f)
 13502      1 digitemp_DS9097 NAMI  "/usr/lib/libm.so.0"
 13502      1 digitemp_DS9097 RET   open 3
 13502      1 digitemp_DS9097 CALL  __fstat30(3,0xffffffffffffbd88)
 13502      1 digitemp_DS9097 RET   __fstat30 0, -17016/0xffffffffffffbd88
 13502      1 digitemp_DS9097 CALL  mmap(0,0x2000,1,1,3,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1075937280/0x40218000
 13502      1 digitemp_DS9097 CALL  munmap(0x40218000,0x2000)
 13502      1 digitemp_DS9097 RET   munmap 0, 8192/0x2000
 13502      1 digitemp_DS9097 CALL  mmap(0,0x12c000,5,0x14000002,3,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1078984704/0x40500000
 13502      1 digitemp_DS9097 CALL  mmap(0x40628000,0x4000,7,0x12,3,0,0x28000)
 13502      1 digitemp_DS9097 RET   mmap 1080197120/0x40628000, 
1080197120/0x40628000
 13502      1 digitemp_DS9097 CALL  
mmap(0x4062c000,0,7,0x1012,0xffffffffffffffff,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1080213504/0x4062c000, 
1080213504/0x4062c000
 13502      1 digitemp_DS9097 CALL  mprotect(0x40528000,0x100000,0)
 13502      1 digitemp_DS9097 RET   mprotect 0, 1048576/0x100000
 13502      1 digitemp_DS9097 CALL  close(3)
 13502      1 digitemp_DS9097 RET   close 0, 3
 13502      1 digitemp_DS9097 CALL  
open(0xffffffffffffbed0,0,0x7f7f7f7f7f7f7f7f)
 13502      1 digitemp_DS9097 NAMI  "/usr/lib/libc.so.12"
 13502      1 digitemp_DS9097 RET   open 3
 13502      1 digitemp_DS9097 CALL  __fstat30(3,0xffffffffffffbd88)
 13502      1 digitemp_DS9097 RET   __fstat30 0, -17016/0xffffffffffffbd88
 13502      1 digitemp_DS9097 CALL  mmap(0,0x2000,1,1,3,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1075937280/0x40218000
 13502      1 digitemp_DS9097 CALL  munmap(0x40218000,0x2000)
 13502      1 digitemp_DS9097 RET   munmap 0, 8192/0x2000
 13502      1 digitemp_DS9097 CALL  mmap(0,0x222000,5,0x14000002,3,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1081081856/0x40700000
 13502      1 digitemp_DS9097 CALL  
mmap(0x408fc000,0x16000,7,0x12,3,0,0xfc000)
 13502      1 digitemp_DS9097 RET   mmap 1083162624/0x408fc000, 
1083162624/0x408fc000
 13502      1 digitemp_DS9097 CALL  
mmap(0x40912000,0x10000,7,0x1012,0xffffffffffffffff,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1083252736/0x40912000, 
1083252736/0x40912000
 13502      1 digitemp_DS9097 CALL  mprotect(0x407fe000,0xfe000,0)
 13502      1 digitemp_DS9097 RET   mprotect 0, 1040384/0xfe000
 13502      1 digitemp_DS9097 CALL  close(3)
 13502      1 digitemp_DS9097 RET   close 0, 3
 13502      1 digitemp_DS9097 CALL  
__sysctl(0xffffffffffffc438,2,0x409105a8,0xffffffffffffc430,0,0)
 13502      1 digitemp_DS9097 RET   __sysctl 0, 2
 13502      1 digitemp_DS9097 CALL  open(0x20cc68,0,0x1b6)
 13502      1 digitemp_DS9097 NAMI  ".digitemprc"
 13502      1 digitemp_DS9097 RET   open -1 errno 2 No such file or directory
 13502      1 digitemp_DS9097 CALL  __fstat30(1,0xffffffffffffbe28)
 13502      1 digitemp_DS9097 RET   __fstat30 0, -16856/0xffffffffffffbe28
 13502      1 digitemp_DS9097 CALL  
__sysctl(0xffffffffffffbc94,2,0xffffffffffffbcac,0xffffffffffffbca0,0,0)
 13502      1 digitemp_DS9097 RET   __sysctl 0, 2
 13502      1 digitemp_DS9097 CALL  
readlink(0x407f4488,0xffffffffffffbd78,0x3f)
 13502      1 digitemp_DS9097 NAMI  "/etc/malloc.conf"
 13502      1 digitemp_DS9097 RET   readlink -1 errno 2 No such file or 
directory
 13502      1 digitemp_DS9097 CALL  
mmap(0,0x2000,3,0x1002,0xffffffffffffffff,0,0)
 13502      1 digitemp_DS9097 RET   mmap 1075879936/0x4020a000
 13502      1 digitemp_DS9097 CALL  break(0x20dcd8)
 13502      1 digitemp_DS9097 RET   break 0, 8192/0x2000
 13502      1 digitemp_DS9097 CALL  break(0x20fcd8)
 13502      1 digitemp_DS9097 RET   break 0
 13502      1 digitemp_DS9097 CALL  break(0x210000)
 13502      1 digitemp_DS9097 RET   break 0
 13502      1 digitemp_DS9097 CALL  break(0x220000)
 13502      1 digitemp_DS9097 RET   break 0, 127/0x7f
 13502      1 digitemp_DS9097 CALL  ioctl(1,TIOCGETA,0xffffffffffffbe84)
 13502      1 digitemp_DS9097 GIO   fd 1 read 44 bytes
       "\0\0\^A\^B\0\0\0\a\0\0K\0 \0\^E\M-O\^D\0\0\^?\^W\^U\^R\M^?
\^C\^\\^Z\^Y\^Q\^S\^V\^O\^A\0\^T\M^?\0\0\M^V\0\0\0\M^V\0"
 13502      1 digitemp_DS9097 RET   ioctl 0, 1076655123/0x402c7413
 13502      1 digitemp_DS9097 CALL  write(1,0x210000,0x35)
 13502      1 digitemp_DS9097 GIO   fd 1 wrote 53 bytes
       "DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
       "
 13502      1 digitemp_DS9097 RET   write 53/0x35, 2162688/0x210000
 13502      1 digitemp_DS9097 CALL  write(1,0x210000,0x32)
 13502      1 digitemp_DS9097 GIO   fd 1 wrote 50 bytes
       "GNU Public License v2.0 - http://www.digitemp.com
       "
 13502      1 digitemp_DS9097 RET   write 50/0x32, 2162688/0x210000
 13502      1 digitemp_DS9097 CALL  __stat30(0x20d090,0xffffffffffffc028)
 13502      1 digitemp_DS9097 NAMI  "/dev/ttyh1"
 13502      1 digitemp_DS9097 RET   __stat30 0, -16344/0xffffffffffffc028
 13502      1 digitemp_DS9097 CALL  access(0x20d090,6)
 13502      1 digitemp_DS9097 NAMI  "/dev/ttyh1"
 13502      1 digitemp_DS9097 RET   access 0, 6
 13502      1 digitemp_DS9097 CALL  open(0x20d090,2,0)
 13502      1 digitemp_DS9097 NAMI  "/dev/ttyh1"

and then the program does nothing. Hope, you see more.

Votava

Attachment: signature.asc
Description: This is a digitally signed message part.



Home | Main Index | Thread Index | Old Index