Page MenuHomePhabricator

Segfault in jesus when accessing an external ext4 file system mount
Closed, ResolvedPublic

Description

The mount is the /home partition from a disk of another computer.

I tried to open the directory with my user name "kai" and got a segfault.

Running ls -l the mount looks like this:

drwx--x---+ 98 kai   1001 12288 13. 1. 05:17 kai
drwx------   2 root root  16384 19. 8.  2013 lost+found
drwxr-xr-x  15 1001 users  4096  9. 9.  2014 test

where you can see it contains foreign users and groups which show up as an id number instead of a mapped name, which seem to be causing the crash.

Here's the backtrace:

#0  0x00007ffff60de758 in _update_stat (pd=0xb021c0, file=0x800003eb00001f56)
    at /home/kai/software/jesus/src/widgets/file/elm_file_detail.c:475
        buf = "kai\000e/directory\000:44 2016\n", '\000' <repeats 1215 times>...
        mime_type = 0x729298 "inode/directory"
        st = 0xebd122
        perm_right = 1 '\001'
        pw = 0x7ffff4e78e40 <resbuf.10213>
        gr = 0x0
#1  0x00007ffff60ded21 in _elm_file_detail_file_set (obj=0x8000004040000203, pd=0xb021c0,
    file=0x800003eb00001f56) at /home/kai/software/jesus/src/widgets/file/elm_file_detail.c:572
        filename = 0x7fffd000abac "kai"
        st = 0xebd122
#2  0x00007ffff60e058a in elm_file_detail_file_set (file=0x800003eb00001f56)
    at /home/kai/software/jesus/src/widgets/file/elm_file_detail.eo.x:4
        ___cache = {index = {{klass = 0xaff110}}, entry = {{func = 0xb01940}}, off = {{
              off = 880}}, op = 1891}
        ___call = {obj = 0x8000004040000203,
          func = 0x7ffff60dead2 <_elm_file_detail_file_set>, data = 0xb021c0}
        _func_ = 0x7ffff60dead2 <_elm_file_detail_file_set>
#3  0x00007ffff60e681f in _update_preview (data=0x8000000de0000070, obj=0x8000001000000081,
    desc=0x7ffff62f1e10 <_ELM_FILE_SELECTOR_EVENT_ITEM_SELECTED>,
    event_info=0x800003eb00001f56)
    at /home/kai/software/jesus/src/widgets/file/elm_file_display.c:36
        f = 0x800003eb00001f56
        pd = 0x9a1f60
kuuko created this task.Jan 28 2016, 6:15 AM
kuuko updated the task description. (Show Details)
kuuko raised the priority of this task from to Incoming Queue.
kuuko assigned this task to bu5hm4n.
kuuko added a project: Verne.
kuuko added a subscriber: kuuko.
bu5hm4n closed this task as Resolved.Jan 28 2016, 6:41 AM

Should be resolved.