bug report - umount segfault >= 1.22.0 MIPS/uClibc

Richard Moore rich at richud.com
Tue Mar 11 19:26:09 UTC 2014


Hi,

Ok solved it myself - segfaulting on line 147 of umount.c

path = xmalloc_realpath(zapit);


Looking back through the changes, this commit is breaking it, (reversing 
it fixes)

-#if defined(__GLIBC__) && !defined(__UCLIBC__)
+#if defined(__GLIBC__) || \
+ (defined(__UCLIBC__) && UCLIBC_VERSION >= KERNEL_VERSION(0, 9, 31))


I am using uClibc 0.9.29 , which seems to make the logic the same, as 
both eval false (I changed 0, 9, 31 to lower but no different)?


Cheers

Rich


On 09/03/14 12:44, Richard Moore wrote:
> Hi,
>
> umount has started segfaulting since >= 1.22.0 ,  (1.21.1 and earlier 
> all ok).
>
> Mount and everything else is fine. I am cross compiling with MIPS 
> (uClibc) , this is the (not very helpful) strace.
>
>
> open("/proc/mounts", O_RDONLY)          = 3
> ioctl(3, TIOCNXCL, 0x7fd96b68)          = -1 ENOTTY (Inappropriate 
> ioctl for device)
> brk(0x4c9000)                           = 0x4c9000
> read(3, "rootfs / rootfs rw 0 0\n/dev/root / squashfs ro 0 0\nproc 
> /proc proc rw 0 0\nsysfs /sys sysfs rw 0 0\ntmpfs /tmp tmpfs rw 0 
> 0\ntmpfs /media tmpfs rw 0 0\ntmpfs /dev tmpfs rw 0 0\nnone 
> /proc/bus/usb usbfs rw 0 0\n/dev/mtdblock18 /tmp/mnt/storage jffs2 rw 
> 0 0\n/dev/sda1 /media/500GB ext3 rw,data=ordered 0 0\n", 4096) = 298
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> readlink("/dev", 0x7fd94c18, 4095)      = -1 EINVAL (Invalid argument)
> readlink("/dev/sda1", 0x7fd94c18, 4095) = -1 EINVAL (Invalid argument)
> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
> +++ killed by SIGSEGV +++
> Segmentation fault
>
>
> Cheers!
>
>
>
> Regards
>
> Rich
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140311/5b701e49/attachment.html>


More information about the busybox mailing list