fix mmap
fix type convert bug
add segment desc