xorriso in ghostbsd-build

Open development discussions

Moderator: Developer

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

xorriso in ghostbsd-build

Post by ASX »

I spent nearly all day trying to track down the issue, without luck.

The issue:
When trying to build an ISO and grub2-efi is installed xorriso abort and issue a SIGSEGV fault.

Unrelated, it also report an error #22 Invalid argument, but I have verified that this is a different thing an it arise from a call to get_acl_file().
(I have tried to rebuild xorriso/libisoburn without acl support, but no change in that respect.)

At this time the situation is exactly the same as 1 year ago:
https://forums.freebsd.org/threads/57547/

- Interestingly xorriso works when not using grub2-efi;
- it appear it also worked when using FreeBSD-10.3 with or without grub2-efi

So it look like something FreeBSD-11 specific, and triggered only when using grub2-efi.

At this time I don't have a working solution, nor a workaround. I tried to make some manual config/install, without success.

I also tried a previous version, also without success.


I was able to intercept the system call, by using truss, without any meaningful info:

Code: Select all

...
open("/usr/share/i18n/esdb/esdb.dir.db",O_CLOEXEC,037777735310) = 7 (0x7)
fstat(7,{ mode=-r--r--r-- ,inode=11997,size=13440,blksize=13824 }) = 0 (0x0)
mmap(0x0,13440,PROT_READ,MAP_PRIVATE,7,0x0)      = 34367090688 (0x800703000)
close(7)                                         = 0 (0x0)
munmap(0x800703000,13440)                        = 0 (0x0)
getpid()                                         = 41648 (0xa2b0)
getpid()                                         = 41648 (0xa2b0)
getpid()                                         = 41648 (0xa2b0)
SIGNAL 11 (SIGSEGV)
sigprocmask(SIG_SETMASK,{ SIGSEGV },0x0)         = 0 (0x0)

UNIX-SIGNAL:  SIGSEGV  errno= 22
write(2,"\nUNIX-SIGNAL:  SIGSEGV  errno= "...,34) = 34 (0x22)
getpid()                                         = 41648 (0xa2b0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALR
M|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ SIGSEGV }) = 0 (0x0)
sigaction(SIGHUP,{ SIG_IGN SA_RESTART ss_t },{ 0x800e49c30 SA_RESTART|SA_SIGINFO ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGSEGV },0x0)         = 0 (0x0)
...
Apparently the SIGSEGV is interecepted after three calls to getpid() ... that's all I can see.

If you have any further idea, however strange, please talk! ;)
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: xorriso in ghostbsd-build

Post by ASX »

this is the command line arguments passed to xorriso:

Code: Select all

xorriso -as mkisofs -graft-points --modification-date=2017060219260500 -b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info --grub2-mbr /usr/local/lib/grub/i386-pc/boot_hybrid.img -hfsplus -apm-block-size 2048 -hfsplus-file-creator-type chrp tbxj /System/Library/CoreServices/.disk_label -hfs-bless-by i /System/Library/CoreServices/boot.efi --efi-boot efi.img -efi-boot-part --efi-boot-image --protective-msdos-label -o /usr/obj/amd64/xfce/GhostBSD11.0-BETA1-20170602-52605-xfce-amd64.iso -r /tmp/grub.uuxH77 --sort-weight 0 / --sort-weight 1 /boot /usr/ghostbsd-fs/amd64/xfce -- -volid GhostBSD
This is the list of files in /tmp/grub.uuxH77

Code: Select all

# find /tmp/grub.uuxH77
/tmp/grub.uuxH77
/tmp/grub.uuxH77/efi.img
/tmp/grub.uuxH77/boot
/tmp/grub.uuxH77/boot/grub
/tmp/grub.uuxH77/boot/grub/roms
/tmp/grub.uuxH77/boot/grub/fonts
/tmp/grub.uuxH77/boot/grub/fonts/unicode.pf2
/tmp/grub.uuxH77/boot/grub/locale
/tmp/grub.uuxH77/boot/grub/locale/pa.mo
/tmp/grub.uuxH77/boot/grub/locale/pl.mo
/tmp/grub.uuxH77/boot/grub/locale/es.mo
/tmp/grub.uuxH77/boot/grub/locale/ast.mo
/tmp/grub.uuxH77/boot/grub/locale/eo.mo
/tmp/grub.uuxH77/boot/grub/locale/ja.mo
/tmp/grub.uuxH77/boot/grub/locale/vi.mo
/tmp/grub.uuxH77/boot/grub/locale/zh_CN.mo
/tmp/grub.uuxH77/boot/grub/locale/zh_TW.mo
/tmp/grub.uuxH77/boot/grub/locale/fi.mo
/tmp/grub.uuxH77/boot/grub/locale/lt.mo
/tmp/grub.uuxH77/boot/grub/locale/nl.mo
/tmp/grub.uuxH77/boot/grub/locale/pt_BR.mo
/tmp/grub.uuxH77/boot/grub/locale/sv.mo
/tmp/grub.uuxH77/boot/grub/locale/sl.mo
/tmp/grub.uuxH77/boot/grub/locale/it.mo
/tmp/grub.uuxH77/boot/grub/locale/uk.mo
/tmp/grub.uuxH77/boot/grub/locale/da.mo
/tmp/grub.uuxH77/boot/grub/locale/nb.mo
/tmp/grub.uuxH77/boot/grub/locale/fr.mo
/tmp/grub.uuxH77/boot/grub/locale/tr.mo
/tmp/grub.uuxH77/boot/grub/locale/ru.mo
/tmp/grub.uuxH77/boot/grub/locale/ca.mo
/tmp/grub.uuxH77/boot/grub/locale/de.mo
/tmp/grub.uuxH77/boot/grub/locale/id.mo
/tmp/grub.uuxH77/boot/grub/locale/hu.mo
/tmp/grub.uuxH77/boot/grub/locale/gl.mo
/tmp/grub.uuxH77/boot/grub/x86_64-efi
/tmp/grub.uuxH77/boot/grub/x86_64-efi/boot.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/minix3.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/video.lst
/tmp/grub.uuxH77/boot/grub/x86_64-efi/odc.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ufs1_be.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/modinfo.sh

/tmp/grub.uuxH77/boot/grub/x86_64-efi/morse.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/btrfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/usbms.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/usb_keyboard.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_blowfish.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/bufio.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/tftp.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/minix3_be.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/linux16.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/video_cirrus.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/hdparm.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/mdraid09.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cpio.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_rsa.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ls.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/bsd.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ufs2.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/efi_gop.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/usb.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/usbserial_common.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/minix_be.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/linux.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/adler32.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/hfspluscomp.mod

/tmp/grub.uuxH77/boot/grub/x86_64-efi/signature_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/serial.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_des.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ntfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/time.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_idea.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/jfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/read.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/testload.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lsefimmap.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/reboot.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/scsi.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/mul_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/terminal.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/zfscrypt.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/video_colors.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/font.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_md5.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ufs1.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/multiboot2.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/fshelp.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/romfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_serpent.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/tar.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/search_fs_fil
/tmp/grub.uuxH77/boot/grub/x86_64-efi/usbserial_pl2303.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gfxterm_background.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/raid6rec.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cmdline_cat_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/fixvideo.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/pcidump.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_dvh.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/hello.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/backtrace.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/elf.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/setpci.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/videoinfo.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/diskfilter.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lsefi.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/configfile.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/datehook.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/search_fs_uuid.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/iorw.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/terminfo.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/true.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/loadbios.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/pbkdf2.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_bsd.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gettext.mod
/tmp/grub.uu
/tmp/grub.uuxH77/boot/grub/x86_64-efi/crc64.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/memdisk.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/afs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gptsync.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/xnu_uuid_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_msdos.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ldm.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/pata.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_dfly.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gzio.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/procfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_acorn.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ata.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_dsa.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_tiger.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cbls.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/setjmp_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_arcfour.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_sun.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lsacpi.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ahci.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/minix.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/setjmp.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/raid5rec.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi
/tmp/grub.uuxH77/boot/grub/x86_64-efi/parttool.lst
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_crc.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/offsetio.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/video_fb.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/mmap.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/echo.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lsmmap.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cbmemc.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/macbless.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_apple.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/multiboot.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/search_label.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/parttool.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/bfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/exfctest.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/hexdump.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/png.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gfxmenu.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/div.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ext2.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/probe.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/net.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_sha512.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/video_bochs.mod
/tmp/grub.uuxH77/boot/
/tmp/grub.uuxH77/boot/grub/x86_64-efi/minix2_be.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lvm.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/syslinuxcfg.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/command.lst
/tmp/grub.uuxH77/boot/grub/x86_64-efi/ntfscomp.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/tr.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/part_gpt.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/hfsplus.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cmp_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gfxterm.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_md4.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/efinet.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_rijndael.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/moddep.lst
/tmp/grub.uuxH77/boot/grub/x86_64-efi/loadenv.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/nativedisk.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/play.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/div_test.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/bitmap_scale.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cat.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/legacycfg.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lssal.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/crypto.lst
/tmp/grub.uuxH77/boot/grub/x86_64-efi/videotest.mod
/tmp/gr
/tmp/grub.uuxH77/boot/grub/x86_64-efi/iso9660.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/minix2.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/http.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/chain.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/progress.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/crypto.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/partmap.lst
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_twofish.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cpio_be.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/msdospart.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/lzopio.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/hfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cs5536.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_seed.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_sha1.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/cbtable.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/affs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/verify.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/usbserial_ftdi.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_camellia.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/gcry_rfc2268.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/zfs.mod
/tmp/grub.uuxH77/boot/grub/x86_64-efi/aout.mod
/tmp/grub.uuxH77/boot/grub/i386-pc

/tmp/grub.uuxH77/boot/grub/i386-pc/btrfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/usbms.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/usb_keyboard.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_blowfish.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/bufio.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/tftp.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/minix3_be.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/linux16.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cmosdump.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/video_cirrus.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/drivemap.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/hdparm.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/mdraid09.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cpio.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_rsa.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/efiemu.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ls.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/bsd.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ufs2.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/usb.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/usbserial_common.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/truecrypt.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/minix_be.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/linux.mod
/tmp/grub.uuxH77/boot/grub/i386-p
/tmp/grub.uuxH77/boot/grub/i386-pc/jfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/read.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/testload.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/reboot.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ntldr.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/scsi.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/mul_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/terminal.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/vga_text.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/zfscrypt.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/video_colors.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/font.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_md5.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/sendkey.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ufs1.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/multiboot2.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/fshelp.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/romfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_serpent.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/tar.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/search_fs_file.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/eltorito.img
/tmp/grub.uuxH77/boot/grub/i386-pc/memrw.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/lsapm.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ohci.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/raid6rec.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cmdline_cat_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/pcidump.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/part_dvh.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/hello.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/backtrace.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/elf.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/setpci.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/videoinfo.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/diskfilter.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/configfile.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/datehook.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/search_fs_uuid.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/iorw.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/terminfo.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/true.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/pbkdf2.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/part_bsd.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gettext.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/help.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/xzio.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/squash4.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/newc.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/usbserial_usbdebug.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/n
/tmp/grub.uuxH77/boot/grub/i386-pc/pata.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/part_dfly.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gzio.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/procfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/part_acorn.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ata.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_dsa.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_tiger.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cbls.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/setjmp_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_arcfour.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/part_sun.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/lsacpi.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ahci.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/minix.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/setjmp.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/raid5rec.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ctz_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/keylayouts.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/mdraid1x.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/sleep_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/bswap_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/zfsinfo.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/regexp.mod
/tmp/grub.uuxH77/boot
/tmp/grub.uuxH77/boot/grub/i386-pc/multiboot.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/search_label.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/efiemu32.o
/tmp/grub.uuxH77/boot/grub/i386-pc/parttool.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/bfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/biosdisk.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/exfctest.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/hexdump.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/png.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gfxmenu.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/div.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/ext2.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/probe.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/net.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_sha512.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/video_bochs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/at_keyboard.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/lspci.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/macho.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cbtime.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/freedos.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cmp.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/password.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/test_blockarg.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/hal
/tmp/grub.uuxH77/boot/grub/i386-pc/gfxterm.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_md4.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_rijndael.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/moddep.lst
/tmp/grub.uuxH77/boot/grub/i386-pc/loadenv.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/nativedisk.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/play.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/div_test.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/bitmap_scale.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cat.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/legacycfg.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/crypto.lst
/tmp/grub.uuxH77/boot/grub/i386-pc/videotest.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/luks.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/tga.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/sleep.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/loopback.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/search.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/xnu_uuid.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/part_amiga.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/archelp.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/uhci.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/testspeed.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/bitmap.mod
/tm
/tmp/grub.uuxH77/boot/grub/i386-pc/hfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gdb.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cs5536.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_seed.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_sha1.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/cbtable.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/affs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/verify.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/usbserial_ftdi.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_camellia.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/gcry_rfc2268.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/zfs.mod
/tmp/grub.uuxH77/boot/grub/i386-pc/aout.mod
/tmp/grub.uuxH77/boot/grub/themes
/tmp/grub.uuxH77/boot/grub/themes/starfield
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_s.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/COPYING.CC-BY-SA-3.0
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_nw.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_c.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/dejavu_bold_14.pf2
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_ne.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_ne.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/theme.txt
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_w.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/sl
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_e.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_nw.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_sw.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_w.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/boot_menu_n.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/starfield.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/README
/tmp/grub.uuxH77/boot/grub/themes/starfield/slider_n.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_c.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_se.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_e.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/terminal_box_s.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/blob_w.png
/tmp/grub.uuxH77/boot/grub/themes/starfield/dejavu_10.pf2
/tmp/grub.uuxH77/boot/grub/themes/starfield/dejavu_14.pf2
/tmp/grub.uuxH77/boot/grub/themes/starfield/dejavu_16.pf2
/tmp/grub.uuxH77/mach_kernel
/tmp/grub.uuxH77/System
/tmp/grub.uuxH77/System/Library
/tmp/grub.uuxH77/System/Library/CoreServices
/tmp/grub.uuxH77/System/Library/CoreServices/.disk_label
/tmp/grub.uuxH77/System/Library/CoreServices/boot.efi
/tmp/grub.uuxH77/System/Library/CoreServices/.disk_label.contentDetails
/tmp/grub.uuxH77/System/Library/CoreServices/SystemVersion.plist
# 
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: xorriso in ghostbsd-build

Post by ASX »

manually running xorriso (as opposed to called from grub-mkrescue):

Code: Select all

# xorriso.orig -as mkisofs -graft-points --modification-date=2017060219260500 -b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info --grub2-mbr /usr/local/lib/grub/i386-pc/boot_hybrid.img -hfsplus -apm-block-size 2048 -hfsplus-file-creator-type chrp tbxj /System/Library/CoreServices/.disk_label -hfs-bless-by i /System/Library/CoreServices/boot.efi --efi-boot efi.img -efi-boot-part --efi-boot-image --protective-msdos-label -o /usr/obj/amd64/xfce/GhostBSD11.0-BETA1-20170602-52605-xfce-amd64.iso -r /tmp/grub.uuxH77 --sort-weight 0 / --sort-weight 1 /boot /usr/ghostbsd-fs/amd64/xfce -- -volid GhostBSD
xorriso 1.4.6 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/usr/obj/amd64/xfce/GhostBSD11.0-BETA1-20170602-52605-xfce-amd64.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 62.4g free
Added to ISO image: directory '/'='/tmp/grub.uuxH77'
xorriso : UPDATE : 614 files added in 1 seconds
Added to ISO image: directory '/'='/usr/ghostbsd-fs/amd64/xfce'
xorriso : UPDATE : 2964 files added in 1 seconds
xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
xorriso : NOTE : Copying to System Area: 512 bytes from file '/usr/local/lib/grub/i386-pc/boot_hybrid.img'

UNIX-SIGNAL:  SIGSEGV  errno= 22
xorriso.orig : ABORT : Trying to shut down drive and library
xorriso.orig : ABORT : Wait the normal burning time before any kill -9

xorriso.orig : ABORT : Program done. Even if you do not see a shell prompt.


xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
Note that this waring is about lowrcase characters in --volid "GhostBSD", by rules only uppercase [A-Z] and [0-9] are allowed.
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: xorriso in ghostbsd-build

Post by ASX »

A little step forward:
removing the option -hfsplus apparently solve the ISO build issue, no signal is delivered.
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: xorriso in ghostbsd-build

Post by ASX »

ASX wrote:A little step forward:
removing the option -hfsplus apparently solve the ISO build issue, no signal is delivered.
UP, just to not forget about that. ;)
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: xorriso in ghostbsd-build

Post by ericbsd »

True and I was forgetting about that. Thanks, ASX!
scdbackup
Posts: 20
Joined: Thu Sep 21, 2017 9:14 am

Re: xorriso in ghostbsd-build

Post by scdbackup »

Hi,

i am the developer of xorriso and much interested in learning the reason
for the SIGSEGV. (I only found this thread today. Sorry for being late.)

I now re-read https://forums.freebsd.org/threads/57547/ where i had the
suspicion that it is a linker problem. This suspicion is nourished by
the fact that now xorriso-1.4.6 in the dynamically linked version dies by
SIGSEGV again.

I just ran my own regression test for replaying a grub-mkrescue ISO under
control of valgrind on G../L.... . The dynamically linked version passed
without any protest from valgrind. But probably my linker is too old to
break when seeing my libraries' Makefiles.

My first question is whether xorriso-1.4.6 does not crash in the statically
linked xersion
http://scdbackup.sourceforge.net/xorriso-1.4.6.tar.gz
which has the same source as the failing one (from ports ?). Build by:

Code: Select all

  tar xzf xorriso-1.4.6.tar.gz 
  cd xorriso-1.4.6 
  ./configure && make

  ./xorriso/xorriso -version
  echo "Use: $(pwd)/xorriso/xorriso"
If this works well despite presence of option -hfsplus, then one would need
to examine how dynamic linking changed between old and new versions of
FreeBSD.

Have a nice day :)

Thomas
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: xorriso in ghostbsd-build

Post by ASX »

scdbackup wrote:Hi,

i am the developer of xorriso and much interested in learning the reason
for the SIGSEGV. (I only found this thread today. Sorry for being late.)

I now re-read https://forums.freebsd.org/threads/57547/ where i had the
suspicion that it is a linker problem. This suspicion is nourished by
the fact that now xorriso-1.4.6 in the dynamically linked version dies by
SIGSEGV again.

I just ran my own regression test for replaying a grub-mkrescue ISO under
control of valgrind on G../L.... . The dynamically linked version passed
without any protest from valgrind. But probably my linker is too old to
break when seeing my libraries' Makefiles.

My first question is whether xorriso-1.4.6 does not crash in the statically
linked xersion
http://scdbackup.sourceforge.net/xorriso-1.4.6.tar.gz
which has the same source as the failing one (from ports ?). Build by:

Code: Select all

  tar xzf xorriso-1.4.6.tar.gz 
  cd xorriso-1.4.6 
  ./configure && make

  ./xorriso/xorriso -version
  echo "Use: $(pwd)/xorriso/xorriso"
If this works well despite presence of option -hfsplus, then one would need
to examine how dynamic linking changed between old and new versions of
FreeBSD.

Have a nice day :)

Thomas
Hi scdbackup,

we are glad to see you here (in fact I was about to email you directly). :)

As far as I remember I already tried to build and use xorriso 1.4.6 (and previous versions), both from freebsd binary repo and rebuilt from your tarball too, and the problem always persisted.

Similar test were been performed from ericbsd with same results.

Just to be sure my memory is not failing, I will repeat the tests later today.

Thanks,
ASX
scdbackup
Posts: 20
Joined: Thu Sep 21, 2017 9:14 am

Re: xorriso in ghostbsd-build

Post by scdbackup »

Hi,

since it does not look like a linker error now, a full gdb stack listing
would be of help (or the equivalent by other tools).
I need an idea where to start a code analysis.

My experiments with valgrind stay inconclusive:

Code: Select all

  # To get some files, i mount an ISO made by grub-mkrescue on Debian 8.
  # It is for BIOS, EFI 32 bit and 64 bit, and some obscure Macs.
  # The same which obviously is configured for GhostBSD.
  mount grub-mkrescue-original.iso /mnt/iso

  valgrind --leak-check=full /...path.../xorriso -as mkisofs \
   -graft-points \
   --modification-date=2017092114161100 \
   -b boot/grub/i386-pc/eltorito.img \
      -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info \
   --grub2-mbr /usr/lib/grub/i386-pc/boot_hybrid.img \
   -hfsplus -apm-block-size 2048 \
   -hfsplus-file-creator-type chrp tbxj /System/Library/CoreServices/.disk_label \
   -hfs-bless-by i /System/Library/CoreServices/boot.efi \
   --efi-boot efi.img -efi-boot-part --efi-boot-image \
   --protective-msdos-label \
   -o test.iso \
   -r --sort-weight 0 / \
   --sort-weight 1 /boot \
   /mnt/iso \
   -- \
   -volid GhostBSD
(One could have added "-V" "GhostBSD" rather than leaving mkisofs emulation
by "--" and using native command "-volid".)

Valgrind's report says
==20735== All heap blocks were freed -- no leaks are possible
...
==20735== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Are there any peculiarities in the system ? Exotic CPU architecture ?

Have a nice day :)

Thomas
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: xorriso in ghostbsd-build

Post by ASX »

Thomas,

I repated the tests and the error persist:
UNIX-SIGNAL: SIGSEGV errno= 22
xorriso : ABORT : Trying to shut down drive and library
However I noticed something that might be interesting and certainly look highly suspect to me, I got a few warning while building xorriso:
libisofs/hfsplus.c:618:16: warning: taking address of packed member 'ctime' of class or
structure 'hfsplus_volheader' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&sb.ctime, t->now);
^~~~~~~~
libisofs/hfsplus.c:619:16: warning: taking address of packed member 'utime' of class or
structure 'hfsplus_volheader' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&sb.utime, t->now);
^~~~~~~~
libisofs/hfsplus.c:620:16: warning: taking address of packed member 'fsck_time' of class or
structure 'hfsplus_volheader' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&sb.fsck_time, t->now);
^~~~~~~~~~~~
libisofs/hfsplus.c:651:29: warning: taking address of packed member 'ppc_bootdir' of class or
structure 'hfsplus_volheader' may result in an unaligned pointer value
[-Waddress-of-packed-member]
iso_msb ((uint8_t *) (&sb.ppc_bootdir + i
^~~~~~~~~~~~~~
libisofs/hfsplus.c:853:18: warning: taking address of packed member 'ctime' of class or
structure 'hfsplus_catfile_common' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&common->ctime, t->hfsp_leafs[curnode].node->ctime);
^~~~~~~~~~~~~
libisofs/hfsplus.c:854:18: warning: taking address of packed member 'mtime' of class or
structure 'hfsplus_catfile_common' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&common->mtime, t->hfsp_leafs[curnode].node->mtime);
^~~~~~~~~~~~~
libisofs/hfsplus.c:856:18: warning: taking address of packed member 'attr_mtime' of class or
structure 'hfsplus_catfile_common' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&common->attr_mtime, t->hfsp_leafs[curnode].node->mtime);
^~~~~~~~~~~~~~~~~~
libisofs/hfsplus.c:857:18: warning: taking address of packed member 'atime' of class or
structure 'hfsplus_catfile_common' may result in an unaligned pointer value
[-Waddress-of-packed-member]
set_time (&common->atime, t->hfsp_leafs[curnode].node->atime);
^~~~~~~~~~~~~
8 warnings generated.


other warnings, probably not relevant were:
xorriso/cmp_update.c:243:34: warning: absolute value function 'abs' given an argument of type
'long' but has parameter of type 'int' which may cause truncation of value
[-Wabsolute-value]
(double) (diffcount + abs(r1count-r2count)),
^
xorriso/cmp_update.c:243:34: note: use function 'labs' instead
(double) (diffcount + abs(r1count-r2count)),
^~~
labs
test/compare_file.c:246:35: warning: absolute value function 'abs' given an argument of type
'long' but has parameter of type 'int' which may cause truncation of value
[-Wabsolute-value]
(double) (diffcount + abs(r1count-r2count)), (double) first_diff);
^
test/compare_file.c:246:35: note: use function 'labs' instead
(double) (diffcount + abs(r1count-r2count)), (double) first_diff);
^~~
labs
1 warning generated.
Are there any peculiarities in the system ? Exotic CPU architecture ?
The platforms we are using are amd64 arch, I'm using an Intel CPU, ericbsd and others have used some AMD Phenom, we all have got the same results., (I certainly used several intel systems)

Unless it is something CLANG 4.0 specific ... I will try to test this "unaligned pointer value" warning, by writing a C test case.
Post Reply