操作系统是ubuntu 12.04-lts,当使用pptpsetup设置和启动VPN连接时,它会报告:
$sudo pptpsetup --create vpn --server xxx.xxx.xxx.xxx --username xxx --password xxx --encrypt --start Connect: ppp0 /dev/pts/1 EAP: unknown authentication type 26; Naking EAP: peer reports authentication failure Connection terminated.
这是我的/etc/ppp/options.pptp文件:
# Lock the port lock # Authentication # We don't need the tunnel server to authenticate itself noauth # We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2 # (you may need to remove these refusals if the server is not using MPPE) refuse-pap refuse-eap …
这是我的代码
public class FinalizableObject {
@Override
protected void finalize() throws Throwable {
System.out.println("finalize() invoked for " + this);
super.finalize();
}
}
public class Main {
private static void test() throws InterruptedException {
ReferenceQueue<FinalizableObject> rq = new ReferenceQueue<FinalizableObject>();
FinalizableObject obj = new FinalizableObject();
PhantomReference<FinalizableObject> pr1 = new PhantomReference<FinalizableObject>(obj, rq);
obj = null;
System.gc();
Reference<? extends Object> ref = rq.remove();
System.out.print("remove " + ref + " from reference queue\n");
}
public static void main(String[] args) {
try {
test();
} catch (InterruptedException …
Run Code Online (Sandbox Code Playgroud) 我在程序中遇到了SEGV_MAPERR崩溃.
pid: 934, tid: 934, name: Binder_1 >>> system_server <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000006
backtrace:
#00 pc 00000006 <unknown>
#01 pc 00006925 /system/lib/libcutils.so (set_sched_policy+136)
#02 pc ffffffff <unknown>
Run Code Online (Sandbox Code Playgroud)
我可以理解故障地址是0x00000000或0x00000004或其他东西.例如,无效的类虚拟基指针,或无效/野函数指针.
但我无法理解0x00000006作为故障地址.堆栈是非法修改的吗?但是在错误的代码附近,既没有找到返回语句,也没有找到跳转工具.
还有其他潜在的原因吗?非常感谢你!
使用以下命令:
$ echo abc | sha1sum
我得到了输出:
03cfd743661f07975fa2f1220c5194cbaff48451
但根据SHA标准 http://www.itl.nist.gov/fipspubs/fip180-1.htm我应该得到:
a9993e364706816aba3e25717850c26c9cd0d89d
我怀疑不正确的结果是由w [0]和w [15]的大端或小端引起的.w [0]应该是0x80636261而不是0x61626380.但我仍然无法得到正确的结果.
谁能帮我?