May 2004 Archives

This is an experimental release which tend to exhibit the latest -CURRENT technologies, maintaining stablity and incorporating my improvements which has not been integrated into FreeBSD's central repository.

OpenBSD's inetd saga

| No TrackBacks

FreeBSD and OpenBSD's inetd are based on a same codebase. However, they have different features and OpenBSD have some features that FreeBSD is lacking at present. For example, per-interface binding, etc.

It seems that they are now replacing explicit XFree86-4-libraries to USE_XLIB and so. Is this a step dropping XFree86 and go XOrg? :-)

I don't like lawyer much, however, we all have to respect law :-) Apple has released some of their code under a license called "APSL", what's that? To quote Robert Watson, a FreeBSD core team member, APSL was considered as something like GPL/LGPL, which is acceptable for standard-alone userspace tools, however, should be taken carefully on kernel aspect.

It seems that FreeBSD community has reviewed and committed one of my bigger patch on sbin/syslogd, which was primarily obtained from OpenBSD. These changes are more or less "sync with OpenBSD", which will increase security performance of FreeBSD.

自从01年dillon commit之后一直就用着MAXUSERS 0。今天alu提到说MAXUSERS不合适的时候有可能会造成系统负荷能力下降,于是看了代码,发现MAXUSERS是根据内存大小算出来的,32-512之间。另外,实践证明MAXUSERS看来不能设置为2048(起不来)……

看过车东的一些文章,感觉很受启发。这篇提到了关于知识管理的一些想法,我自己以前也想过一些这方面的问题,但是一直没有时间来整理出来,在这里暂且先记下来吧。

刚刚想睡觉的时候收到了commit mail:

clement 2004/05/28 08:27:02 PDT

FreeBSD ports repository

Modified files:
www/apache2 Makefile
Added files:
www/apache2/files patch-modules:ssl:ssl_engine_kernel.c
Log:
- Import security fix from Apache CVS...
* modules/ssl/ssl_engine_kernel.c (ssl_hook_UserCheck): Fix buffer
overflow in FakeBasicAuth code if client's subject DN exceeds 6K in
length (CVE CAN-2004-0488); switch to using apr-util base64 encoder
functions.
- ... and of course bump PORTREVISION.

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0488
http://secunia.com/advisories/11534/

Reported by: Charles-Damien Orbello

Revision Changes Path
1.178 +1 -0 ports/www/apache2/Makefile
1.1 +39 -0 ports/www/apache2/files/patch-modules:ssl:ssl_engine_kernel.c (new)

ldconfig@FreeBSDChina

话说有那么一座山,山青水秀,丰庶富饶,半山处最好的地方生活着一群羊,羊们守着天赐的足水足食,过得很舒服,以为自已就是这山上唯一的统治者。直到有一天忽然冲下来一群狼,羊们在损失惨重后才意识到山项是狼的世界,没有什么比狼对羊的威胁更大了,羊们的日子开始悲惨起来。

Winners never quit, but quiters never win.

发信人: sohoboy (), 信区: Joke
标 题: 鸳鸯革命--孟姜女为谁而哭?
发信站: BBS 水木清华站 (Tue May 25 18:40:43 2004), 站内

  赢政从轿中望去,四外人头攒动,有如瀚海。只有兵勇们开出的通道,宛若苦海中的生路。三十多年来,赢政无数次被这样的海洋包围,又一次次从这样的生路走脱,他早就渴望生出些变化。可惜举目一望,又是一如既往。

  正在这时,一个女人冲出人海,迎头站在了轿前。"赢政,你这个害民贼!"

Scott Long has named 4.10-RELEASE yesterday and now the source tree has been tagged. The long awaited release has included the lastest FreeBSD -STABLE improvements, security updates, stablity improvements, and so on.

女人进化史

| 1 Comment | No TrackBacks

发信人: HER0 (闭关修炼 不禁女色), 信区: Joke
标 题: 女人进化史
发信站: BBS 水木清华站 (Mon May 24 11:26:28 2004), 站内

50万年前

  北京周口店一座土山上居住的一群人,不知道怎么搞的,居然弄出“火”这个东西来,从此他们就有了“做饭”这个活动。而可悲的是,据考察,那时候“做饭”的就是女人。可能是女人总觉得男人烤的东西不好吃,就大包大揽,结果,这一包,就包了50万年。后来我有一个朋友结婚,他总结道,婚后的第一天很重要,那天如果谁做饭,那以后可能就是他(她)一直做下去了。
  经验啊!

一个农夫在寒冷的冬天里看见一条蛇冻僵了,觉得它很可怜,就把它拾起来,小心翼翼地揣进怀里,用暖热的身体温暖着它。那蛇受了暖气,渐渐复苏了,又恢复了生机。等到它彻底苏醒过来,便立即恢复了本性,用尖利的毒牙狠狠地咬了恩人一口,使他受了致命的创伤。农夫临死的时候痛悔地说:“我可怜恶人,不辨好坏,结果害了自己,遭到这样的恶报。”

虽然仍然有问题,总算是勉强能用了,感动啊~~

OpenBSD to adopt gdb 6.1

| No Comments | No TrackBacks

It seems (still can't access to the Internet right now, however, HTTP and cvsup works) that OpenBSD has imported gdb 6.1 into their source tree. I am not sure whether they did some hacks to the source repository (from cvsup result, there is not), but the result is really strange. It seems that the last import was done by using a "cvs add -rCYGNUS" and not "cvs import"...

I hope FreeBSD can import a newer gdb ASAP, as well as gcc 3.4 series.

有人在不停地催我,我有点急想骂那人,但终于还是忍住了,因为其实我也没有办法——爱谁谁吧,眼下尽快把毕业设计做完是第一位的,其他的全是瞎掰。我想起了老汪的那句“你得把A逼出屎来,然后A再把B逼出屎来,然后事情就办了”,这话最早还是出自liu8,但是,那什么,好像现在我是A,而网络中心是B,然而,恐怕断网并不是凭网络中心一己之力能够解决的,因为他们的工作人员最近几天也在满负荷运转。

学校已经断网这么多天了,真不知道那家公司在搞什么,在做什么,他们之前有计划没有,遇到了什么问题,解决到什么地步,打算再折腾多久,说得难听一点,是不是在拿学校的设备在练手:上千万人民币的项目,一家虽然不算太有名,但总还是有一些经验的公司,也是学校的老牌合作商,看过他们的投标书,应该还算是正规吧,应该也有相当多的施工经验吧,可是就是不知道怎么一到关键时刻就那么多意外,那么多状况。把设备调好了拿来,分阶段并行安装,出问题回退到前一阶段,用的着连着调这么久吗?

追MM与设计模式zz

| No Comments | No TrackBacks

发信人: sonicyang (算了吧,散了吧), 信区: programming
标 题: 追MM与设计模式-创建型模式(FACTORY)
发信站: 知新园 (Sat May 22 17:19:59 2004)

追MM少不了请吃饭了,麦当劳的鸡翅和肯德基的鸡翅都是MM爱吃的东西,虽然口味有所不同,但不管你带MM去麦当劳或肯德基,只管向服务员说“来四个鸡翅”就行了。麦当劳和肯德基就是生产鸡翅的Factory

工厂模式:客户类和工厂类分开。消费者任何时候需要某种产品,只需向工厂请求即可。消费者无须修改就可以接纳新产品。缺点是当产品修改时,工厂类也要做相应的修改。如:如何创建及如何向客户端提供。

持续断网中

| No Comments | No TrackBacks

今天学校继续断网,我在赶毕业设计。暂不记log。

不可抗力

| 2 Comments | No TrackBacks

有的时候觉得自己变得容易妥协,有的时候觉得自己变得更加强硬,但是……不可抗力,呵呵,我不知道前天写这句话的时候我脑子里的念头是什么,无奈?愤怒?也许都不是——我没有理由去责备别人,特别是看到一群人疲惫地完成了一项艰苦的工作之后,有点想骂人,但又有些不忍。

有人说我喜欢抬杠,然而,其实我比谁都更喜欢妥协,因为这费的劲更小,虽然我也许不经常妥协……

中国十大之经典遗言

夸父:干我们这一行风吹日晒,用了点**,嘿,还真对得起咱这张脸!
神农氏:我靠,这草有毒!~~~~~~~~~~
叔齐:哥,我饿——
王昭君:大家要牢记,掌握好一门外语才能去国外发展。

I am looking for someone to provide me a mail relay. Please contact me if you have a mail server and it has a *reverse resolvable* IP address, and you are interested in helping me out to resolve this issue.

des         2004/05/18 23:40:52 PDT

  FreeBSD src repository

  Modified files:        (Branch: RELENG_4_7)
    .                    UPDATING 
  Modified files:        (Branch: RELENG_4_8)
    .                    UPDATING 
  Modified files:        (Branch: RELENG_4_9)
    .                    UPDATING 
  Modified files:        (Branch: RELENG_5_0)
    .                    UPDATING 
  Modified files:        (Branch: RELENG_5_1)
    .                    UPDATING 
  Modified files:        (Branch: RELENG_5_2)
    .                    UPDATING 
  Modified files:        (Branch: RELENG_4_7)
    sys/conf             newvers.sh 
  Log:
  Bump and document patch level.
  
  Approved by:    so
  
  Revision        Changes    Path
  1.73.2.74.2.31  +3 -0      src/UPDATING
  1.73.2.80.2.24  +3 -0      src/UPDATING
  1.73.2.89.2.9   +3 -0      src/UPDATING
  1.229.2.27      +3 -0      src/UPDATING
  1.251.2.19      +3 -0      src/UPDATING
  1.282.2.15      +3 -0      src/UPDATING
  1.44.2.26.2.29  +1 -1      src/sys/conf/newvers.sh
很想知道是怎么commit的……

alu连夜帮忙配了一台备份的MX,总算是能够让断网期间少丢两封邮件了……这台备份的MX将在beastie.frontfree.net恢复时将邮件传递给它。我这都是在折腾什么?:|

18号没有写log

| No Comments | No TrackBacks

有时候觉得很累,因为写了很多,但不一定有用,就像我最近一段时间做了很多事情,而并不是每一件都有用,简单地说,chaos。老子说,清静无为——简单的道理,一切顺其自然,我以为自己悟了,然而没有,简单的想法,平静的心绪,多么的困难。

哪儿疼,砍哪儿

| No Comments | No TrackBacks

有时候觉得这话有点可笑,但似乎很多大公司都这么做。

哪儿疼,砍哪儿……

哪儿疼,……

If everything goes ok, then FreeBSD 4.10-RELEASE would be released by the end of this week. Now we are at RC3.

To quote Matthew Dillon:
    You can actually run gdb on a live kernel like this:

    gdb -k /dev/mem /path/to/kernel.debug

    You can then use the 'proc' command to switch to a process (give it a
    pid), and do a stack backtrace.  That part only really works if the
    process is blocked on something (i.e. not running).

    But you can also dig around kernel globals and various data structures
    and that can be quite useful on a live system.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

Yes, you did saw the truth. There are some Open Source projects from Microsoft's staff. I'm not sure whether this is permitted by the official authority, however, there is, licensed under CPL (Not GPL), which is an Open Source Initiative approved Open Source License.

这一夜我睡不着

| No Comments | No TrackBacks

词曲/演唱:张雨生 (带我去月球 Track #05)

这一夜 我睡不着
随便弹一些旧曲调
这一夜 我好心焦
你的身影在我眼前飘

Yes, it is long awaited and Kirk recently announced that his new book (written with George Neville-Neil) about the design and implementation of the FreeBSD 5.2 Operating System has been finished, and will be ready for sale in early August 2004 (ISBN 0-201-70245-2, Addison-Wesley).

To summarize the release engineering process: 4.10-RC3 has delayed again so 4.10-RELEASE won't be released soon. Recently, RELENG_4_10 branch has received several critical bugfixes. I personally requested a MFC for a security vulnerablity related with timedc, and Tim has MFC'ed some other security related fixes. Matthew Dillon has submitted some VM patches (committed by Ken Smith) and they all get into RC3.

Olivier Houchard (cognet) has just committed several files to support the ARM architecture. I have already slipped tags for this change.

我知道这不是办法,但即使不是办法,有时候也只能这么做,因为两害相权取其轻。一次噩梦中,我声嘶力竭地大喊,“Stop! Stop!”,可是就是停不下来……面无表情的司机,面无表情的乘客,令人目眩的速度,冲向无底的深渊,但之后想想,死掉的不是我一个人,与其如此绝望地去面对死亡,倒不妨去欣赏一下那眩目的美。

有时候觉得自己是一个极端主义者,呵呵,我很庆幸自己不是。有时候有一些geeky的想法,但还好,并不是每个做法都geeky,至少,不是大多说做法都geeky。很多事情换个看法会好许多。

From the commit log:

Close an interrupt race between vm_page_lookup() and (typically) a vm_page_sleep_busy() check by using the correct spl protection. An interrupt can occur inbetween the two operations and unbusy/free the page in question, causing the busy check to fail and for the code to fall through and then operate on a page that may have been freed and possibly even reused. Also note that vm_page_grab() had the same issue between the lookup, busy check, and vm_page_busy() call.

来自车东Blog上的这篇

不知道是谁人的发明,用“猴年马月”来泛指不知道哪年哪月,或者泛指遥遥无期。其实猴年马月的周期性虽然未必都很整齐,但基本上是有规律的。猴年是12年一个轮回,马月也是12个月一个论回,所以凡是猴年,必有一个月是马月,比如与2004年大体相应的猴年(甲申年),其马月(庚午月)就是农历5月份,就是从公历2004年6月18日开始到7月16日结束,由于这一猴年的农历5月份是小月,只有29天,所以今年的马月比较短。

gcc bug??

| No Comments | No TrackBacks

发现VC上面偶尔会用到的const_cast在gcc (c++)里面竟然不能用,郁闷,遂采用C-style cast,但我希望修正这个问题。

动感地带

| No Comments | No TrackBacks

有个学生爬墙出校,被校长抓到。
校长问他为什么不从校门走,他说:美特斯邦威,不走寻常路。
校长又问他这么高的墙怎么翻过去啊?他指了指裤子说:李宁,一切皆有可能。
校长又问他翻墙是什么感觉?他指了指鞋子说:特步,飞一般的感觉。

绕过liu8han的maintainership commit了无数次之后,终于让GD可以make了,哈哈哈哈~~~

从今天起谁导致无法make就请客!

以前觉得Ruslan Ermilov (ru at FreeBSD dot org, mdoc(7) maintainer)一般只是commit一些Makefile,在整个project里面不过是一个做简单maintain工作的角色,真到自己动手写Makefile的时候才发现,想把Makefile写好可真是太难了。

Still alive :-)

| 1 Comment | No TrackBacks

For those who concerned about my absence here last night: I'm still alive, just tired and got to sleep early. Don't worry about me, I am healthy and is having a good emotion :-)

I am thinking of the possiblity of backporting / porting several DragonFly and NetBSD, even OpenBSD's features, to FreeBSD, to increase its performance, stablity, and the code readablity.

From Diary 20040511

我最讨厌的两种人:在朋友面前口是心非的人,内鬼。后者大抵可以归于前者,因为内鬼必然是一些在朋友面前口是心非的人。基本上我可以原谅一个人对我所做的任何事情,但唯独不包括背叛。

内鬼,内鬼,我恨内鬼!

By Google'ing the web I got a 1.1.5.1-RELEASE tarball. FreeBSD 1.x was based on Net/2 and the USL lawsuit has caused FreeBSD project to re-start from 4.4BSD-Lite2, and 1.1.5.1 was the last 1.x RELEASE permitted to be released.

I have requested src/usr.sbin/timed/timedc/timedc.c, v 1.5 to be MFC'ed to RELENG_4 and RELENG_4_10 so it will get its way into the upcoming release. It has not decided whether this will be merged into RELENG_4_10 yet, however, it is very likely that this will.

原来你爱我的方式不同

| No TrackBacks

发信人: sonicyang (算了吧,散了吧), 信区: love
标 题: 原来你爱我的方式不同zz
发信站: 知新园 (Mon May 10 15:56:21 2004)

我告诉你说:“我的车子坏了,我走了半小时的路才走到车站。”本来我以为你会关心说:怎么不坐计程车,你累不累?但,你说:“反正很近,你也顺便减肥。”我生气,觉得你不爱我、不关心我。第二天,我发现了留在桌上的你的车钥匙,以及为我准备的丰盛早点。我才发现,原来你是爱我的,只不过你不说,这是你爱的方式,跟大家不同。

  我告诉你说:“我想要去北海道、荷兰等国家欣赏那一大片壮观的花海。”本来我以为你会关心说:你想去哪儿,我们来计划计划,即使是敷衍几句了事也好。但你说:“真是无聊,花大把的银子去那种无聊的地方。”我生气,觉得你不爱我、不懂我。后来,我发现家里的旅游杂志,不管是国外还是国内的报道,只要是有赏花介绍的那一页,页角就有折痕,页面就有你的笔记记录。我才发现,原来你是爱我,只不过你不说,这是你爱的方式,跟大家不同。

发信人: lucy (lucy), 信区: literature
标 题: 如果,没有人偷……
发信站: 知新园 (Tue May 11 18:05:23 2004)

  如果,没有人偷……

传统,正在离我们远去?

  备受冷落的老婆和别人跑了,某些愚夫或许才能意识到她的种种好来。
  反过来假设,即使当年没有王道士把敦煌文物卖给斯坦因,这些文物又会有什么下场?它有多少机会逃过后来举国“除四旧”的命运呢?

I have employed the following (ugly) script for MFC'ing, as I do not want to really make big difference between FreeBSD and my fork version:

It turns that I need to set up my own cvsup server so I can deploy my fork elsewhere. Here comes how.

Geek

| No Comments | No TrackBacks

n. Slang
An odd or ridiculous person.
A carnival performer whose show consists of bizarre acts, such as biting the head off a live chicken.

Today I have finally started my lightweight fork of FreeBSD. The methodlity taken was, use the official mirror (cvsup5.cn)'s cvsup service and derive my own repository with CVSup's local repository ablity by disabling its delete function, and exploiting FreeBSD's stock CVS's local branch numbering feature.

我是风筝

| 1 Comment | No TrackBacks

词曲 郑智化 张雨生 (MP3)

我是风筝 喜欢在天空飞行
无忧无虑 像风儿一样地轻
我要飞过 梦和自由的边境
去找一找 找回我单纯的心

Going to swim afternoon

| 4 Comments | No TrackBacks

Going to swim in the afternoon, but I heisistate whether I have enough time, sigh... Busy, busy, busy... Will I have enough time to spend on my birthday?...

I object re-inventing wheels and we did it. I need to re-implement some code based on PAL and replace the old ones.

Currently the settings are:

Strict RFC821 Envelop.

A Dell Latitude D600 computer with Windows 2003 Server Enterprise Edition is experiencing problem when installing Windows Update from website. By downloading the hotfix, and trying to install it, it fails with "Data Error, 0x8000007d"

Wow... Erwin Lansing is requesting for a pointy hat with a blinking light in the top :-)
erwin       2004/05/02 23:35:27 PDT

  FreeBSD ports repository

  Modified files:
    .                    modules 
  Log:
    kscope --> ports/devel/kscope
  
  Revision  Changes    Path
  1.10000   +1 -0      CVSROOT/modules

Deploying postfix 2.1.1

| No TrackBacks

Today I have finally get postfix 2.1.1 running on beastie.frontfree.net (2.1.0 lived there for four hours before it was replaced with 2.1.1 after it replaced 2.0.20 :-) )

Shortly after OpenBSD's 3.5 splash web, Matthew Dillon has released a thrid "known stable" iso for DragonFlyBSD. It can be obtained from ftp://ftp.dragonflybsd.org/iso-images/dfly-20040502.iso.gz.

This snapshot included many new features, yet stable:

谈谈Open Source

| 5 Comments | No TrackBacks

整理自:2004年2月10日 日记

我其实并不是一个喜欢钻牛角间的人,不过最近在论坛上的讨论实在很让人不爽。从某种意义上说,我对于开源运动并没有明确的支持或反对的态度,当然,我比较欣赏 Apple 的做法:适度开源;同样的,这种态度也适用于微软的“分享源代码”的公开源代码的计划,尽管我并不认为微软在热衷于参与开源运动,或者说,它根本就在反对这项运动,但它的支持或反对,并不影响开源运动的人们。不要去责备微软“霸道”,那是没有道理的,任何商人都得赚钱,没有人可以拦得住爱好者,我们不能,微软同样不能,我们看到的应该是微软在计算机科学领域的大量投资,它的研究院对于研究员公开发表学术成果的开明态度,以及那些假意利用开源来抬高自己身价的竞争对手的丑恶嘴脸。你可以不喜欢微软的做法,你可以躲得远远的,不用Windows,因为这是你的自由,没人强迫你欣赏微软的做法,没人强迫你用微软的产品,如果你觉得离不开,那么,自己写一个;如果你写不出来,闭嘴,因为你只是一个弱者,世界不同情弱者。

OpenBSD 3.5-R released

| No TrackBacks

It seems that OpenBSD people has then patched cvs vulnerablity, though. In this version, OpenBSD has pf(4) improved a lot!

FreeBSD LOR page

| No TrackBacks

What'are LORs? To quote Robert Watson:

"These warnings are generated by Witness, a run-time lock diagnostic system found in FreeBSD 5-CURRENT kernels (but removed in releases). You can read more about Witness in the WITNESS(4) man page, which talks about its capabilities. Among other things, Witness performs run-time lock order verification using a combination of hard coded lock orders, and run-time detected lock orders, and generates console warnings when lock orders are violated. The intent of this is to detect the potential for deadlocks due to lock order violations; it's worth observing that Witness is actually slightly conservative, and so it's possible to get false positives. In the event that Witness is accurately reporting a lock order problem, it's basically saying "If you were unlucky, a deadlock would have happened here". There are a couple of "well known" false positives, which we need to do a better job of documenting to prevent spurious reports. The non-well-known ones typically correspond to bugs in newly added locking, as lock order reversals usually get fixed pretty quickly because Witness is busy generating warnings :-)."

Monthly Archives

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.2.3