2010年4月16日

Add persistent static routing rule into Windows.


C:\> route -p add 10.10.10.0 mask 255.255.255.0 192.168.1.1 metric 1

This writes the persistent route to the following Windows Registry key as a string value (REG_SZ):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes

From: http://www.itsyourip.com/networking/howto-add-persistent-static-routes-in-windows/

2010年4月7日

Coresump Analysis (arm-linux-uclibc-gdb)

[root@porter tmp]# arm-linux-uclibc-gdb /tftpboot/web_httpd
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i386-redhat-linux --target=arm-linux-uclibc"...
(gdb) set solib-search-path /tmp/libs
(gdb) core-file /tftpboot/coredump
warning: exec file is newer than core file.
warning: .dynamic section for "/lib/libpthread.so.0" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/lib/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)
Reading symbols from /tmp/libs/libm.so.0...done.
Loaded symbols for /tmp/libs/libm.so.0
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /tmp/libs/libssl.so.0.9.8...done.
Loaded symbols for /tmp/libs/libssl.so.0.9.8
Reading symbols from /tmp/libs/libcrypto.so.0.9.8...done.
Loaded symbols for /tmp/libs/libcrypto.so.0.9.8
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /tmp/libs/libc.so.0...done.
Loaded symbols for /tmp/libs/libc.so.0
Reading symbols from /tmp/libs/librt.so.0...done.
Loaded symbols for /tmp/libs/librt.so.0
Reading symbols from /tmp/libs/libdl.so.0...done.
Loaded symbols for /tmp/libs/libdl.so.0
Reading symbols from /tmp/libs/ld-uClibc.so.0...done.
Loaded symbols for /tmp/libs/ld-uClibc.so.0
Core was generated by `web_httpd -h /web'.
Program terminated with signal 11, Segmentation fault.
[New process 1555]
[New process 1554]
[New process 1528]
#0 0x40210444 in select () from /tmp/libs/libc.so.0
(gdb) where
#0 0x40210444 in select () from /tmp/libs/libc.so.0
#1 0x40012358 in sys_wait_for_event_msg (n=15, readfds=0x81c0, writefds=0x0,
exceptfds=0x0, timeout=0x0, msg=0x0) at libsys.c:2665
#2 0x00012cec in web_mgr_mainloop () at web_mgr.c:336
#3 0x40081394 in ?? ()
Backtrace stopped: frame did not save the PC
(gdb)

2010年4月1日

SVN access rule

[groups]
sdk-developer = man1
sdk2-developer = man2
everyone = man1, man2, man3, man4

[MyRepo:/private]
@everyone = r

[MyRepo:/private/sdk]
@sdk-developer = rw
@sdk2-developer = r
@everyone =

Note: man3 and man4 can't access /private/sdk due to the limitation of last rule "@everyone =".
If the last rule is missed, for people not included in the list will use the rule which inherited from parent directory, then they will have "r" permission and be able to access /private/sdk.