Relative Symlink can cause crash
roberthawdon opened this issue · 1 comments
roberthawdon commented
Stack trace:
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007ffff7c9a6b3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff7c4a958 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffff7c3453d in __GI_abort () at abort.c:79
#4 0x00007ffff7c8e7ee in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7dad44b "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#5 0x00007ffff7ca43dc in malloc_printerr (str=str@entry=0x7ffff7dab1ab "realloc(): invalid next size") at malloc.c:5660
#6 0x00007ffff7ca817c in _int_realloc (av=av@entry=0x7ffff7deaba0 <main_arena>, oldp=oldp@entry=0x555555717f50, oldsize=oldsize@entry=32, nb=nb@entry=48) at malloc.c:4838
#7 0x00007ffff7ca8e82 in __GI___libc_realloc (oldmem=oldmem@entry=0x555555717f60, bytes=29) at malloc.c:3480
#8 0x000055555555b04b in getRelativePath (file=file@entry=0x555555579780 <selfile> "/home/ian/projects/dfshow/bin/show", target=target@entry=0x7fffffffc8a0 "/home/ian/bin/sd") at ./src/showfunctions.c:383
#9 0x0000555555567bc0 in linktext_input (file=file@entry=0x555555579780 <selfile> "/home/ian/projects/dfshow/bin/show", symbolic=symbolic@entry=1) at ./src/showmenus.c:1414
#10 0x0000555555567e3d in link_key_menu_inputs () at ./src/showmenus.c:1466
#11 0x0000555555564f97 in directory_view_menu_inputs () at ./src/showmenus.c:1568
#12 0x0000555555559aa6 in directory_view (currentpwd=0x555555577b40 <currentpwd> "/home/ian/projects/dfshow/bin") at ./src/show.c:655
#13 0x00005555555580b7 in main (argc=<optimized out>, argv=<optimized out>) at ./src/show.c:1270
roberthawdon commented
Fixed in the development branch and is being backported into V0.9