[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Info-mtools] segfault in 4.0.29 mcopy
From: |
Natanael Copa |
Subject: |
[Info-mtools] segfault in 4.0.29 mcopy |
Date: |
Mon, 7 Jun 2021 10:40:29 +0200 |
Hi,
I am about to make a release candidate of alpine linux 3.14, but bumped into a
segfault on 32 bit x86:
Here is the backtrace:
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/mcopy...
Reading symbols from /usr/lib/debug//usr/bin/mtools.debug...
warning: core file may not match specified executable file.
[New LWP 7584]
Core was generated by `mcopy -i
/tmp/mkimage.cEPbHl/image-aa545b554d9d4d9480eab6d0f1edd6ef8b932df4-x86'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x566013d2 in force_read (Stream=0xf7ee4711 <get_stride+5>, buf=0xffc7a08c
"", start=0, len=512) at force_io.c:61
61 return force_io(Stream, buf, start, len,
(gdb) bt
#0 0x566013d2 in force_read (Stream=0xf7ee4711 <get_stride+5>, buf=0xffc7a08c
"", start=0, len=512) at force_io.c:61
#1 0x56601c6c in read_boot (size=512, boot=0xffc7a08c, Stream=<optimized out>)
at init.c:50
#2 try_device (errmsg=0xffc79f14 "Drive '::' not supported", try_writable=0,
isRop=<synthetic pointer>, maxSize=0xffc7a038,
media=0xffc7a034,
name=0xffc7b08c
"/tmp/mkimage.cEPbHl/image-aa545b554d9d4d9480eab6d0f1edd6ef8b932df4-x86-virt/boot/grub/efi.img",
boot=0xffc7a08c,
out_dev=0xffc7a040, mode=2, dev=0xf7f58940) at init.c:223
#3 find_device (drive=58 ':', mode=2, out_dev=0xffc7a040, boot=0xffc7a08c,
name=0xffc7b08c
"/tmp/mkimage.cEPbHl/image-aa545b554d9d4d9480eab6d0f1edd6ef8b932df4-x86-virt/boot/grub/efi.img",
media=0xffc7a034, maxSize=0xffc7a038, isRop=0x0) at init.c:308
#4 0x56601ed1 in fs_init (drive=58 ':', mode=2, isRop=0x0) at init.c:357
#5 0x56610ea2 in open_root_dir (drive=58 ':', flags=2, isRop=0x0) at
streamcache.c:69
#6 0x56603059 in common_dos_loop (mp=mp@entry=0xffc7b9f0, pathname=0xffc7cd04
"", pathname@entry=0xffc7cd02 "::",
lookupState=lookupState@entry=0xffc7b968, open_mode=2) at mainloop.c:452
#7 0x566032ea in dos_target_lookup (arg=0xffc7cd02 "::", mp=0xffc7b9f0) at
mainloop.c:486
#8 target_lookup (mp=0xffc7b9f0, arg=0xffc7cd02 "::") at mainloop.c:536
#9 0x5660602e in mcopy (argc=5, argv=0xffc7bff4, mtype=0) at mcopy.c:615
#10 0x565faab2 in main (argc=<optimized out>, argv=0xffc7bff4) at mtools.c:184
(gdb)
Note that this is built with musl libc.
I was not able to find any public git repository to investigate the change
history.
-nc
- [Info-mtools] segfault in 4.0.29 mcopy,
Natanael Copa <=