English 中文(简体)
为什么有人把藏匿在存放虚拟记忆地址的记忆中?
原标题:Why does apache hold offsets into memory where php-cli holds virtual memory addresses?

I m debugging php。 在寻找我知道地址点的记忆地点时,我看到点名——例如22810408(0x08048122)——这是在使用CLI版本(php)时。

HOWEVER, when I m using apache2 and attempting to do the same thing, I don t see a pointer to the real address. Instead, I see an offset from the ELF header that when added to the address of the ELF header, gives me the "real" address. For example, if the "real" address was 0x08048122, and the ELF header was at 0x08048000 then I would see 22010000 (0x122) at this same position.

当我试图勾画“真实的”地址时,问题就会出现。 所谓“real”地址是0xbfccxx,但在增加我发现的ELF负责人人数时,事情只会增加! 我拿到所有错误的地址。

我已经尝试了很长一段时间,但我确实不相信如何正确表达这一看法,或寻找什么。

So, what I m essentially looking for is more information on WHY Apache has an offset instead of a real memory address, and how this all relates to addresses on the stack. Could anyone give me any pointers to material that might clarify?

问题回答

阿帕奇利用<代码>mod_php, a ,与生动力学有关的共享目标图书馆(so)。 见。 是什么样子?。 如PHP-CLI是被冻结的APIC(可起诉的)的前端。

mod_php在身边装上,利用被冷却的APIC,将PHP的档案汇至藏身处。 你可以在这里看到许多间接看法。 这种方法比允许使用PHP作为mon或类似.,更好和更快。

当PHP脱硫时,你通常的工作水平要大大高于这一水平,因为即使你获得抵消权;PHP数据类型不是C的数据类型(由于PHP的 d打)和联系阵列和物体的数据类型与C物体的相差很大。

我建议你使用specialized PHP debugger至 debug PHP应用程序。





相关问题
Fastest method for running a binary search on a file in C?

For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Trying to split by two delimiters and it doesn t work - C

I wrote below code to readin line by line from stdin ex. city=Boston;city=New York;city=Chicago and then split each line by ; delimiter and print each record. Then in yet another loop I try to ...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

Encoding, decoding an integer to a char array

Please note that this is not homework and i did search before starting this new thread. I got Store an int in a char array? I was looking for an answer but didn t get any satisfactory answer in the ...

热门标签