close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Nov 18, 2008, 4:16:23 AM (17 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v10
|
v11
|
|
| 37 | 37 | _SC_PAGESIZE = 4096 |
| 38 | 38 | }}} |
| | 39 | * 根據 mmap 的 manpages,產生 EINVAL 錯誤的另一個原因是 length 等於零(從 Linux 2.6.12 以後),確認主因為 length 參數 = p->mlen = 0 |
| | 40 | {{{ |
| | 41 | MMAP(2): void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); |
| | 42 | MMAP(2): EINVAL (since Linux 2.6.12) length was 0. |
| | 43 | |
| | 44 | 566 p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE, |
| | 45 | 567 MAP_SHARED, p->fh, p->slen); |
| | 46 | (gdb) p p->mlen |
| | 47 | $3 = 0 |
| | 48 | }}} |
| 39 | 49 | |
| 40 | 50 | == CUDA == |