(It's a bit big so I sent this to you privately) On Fri, Jul 31, 2020 at 10:07:09AM -0600, Jeff Law wrote: > On Fri, 2020-07-31 at 11:52 +0100, Richard W.M. Jones wrote: > > Here's another one: > > > > $ rpm -qf /usr/bin/guestfish /lib64/libreadline.so.8 > > libguestfs-tools-c-1.43.1-2.fc33.x86_64 > > readline-8.0-5.fc33.x86_64 > > $ guestfish --version > > Segmentation fault (core dumped) > > > > (gdb) bt > > #0 0x0000000000000000 in () > > #1 0x00007f3212b72dad in history_filename > > (filename=0x5592dd41bfa0 "/home/rjones/.guestfish") at ../histfile.c:152 > > #2 0x00007f3212b75e2d in read_history_range > > (filename=<optimized out>, from=0, to=-1) at ../histfile.c:280 > > #3 0x00005592dd33e646 in main () > > > > It also caused a build failure of another package in Koji > > (search the logs for "ext2.img] Segmentation fault (core dumped)"): > > > > https://koji.fedoraproject.org/koji/taskinfo?taskID=48245041 > > > > I suspect the problem isn't in readline but is in the main package, > > mainly because I tried an older readline and that failed in the same > > way. > > > > I'm going to disable LTO in libguestfs and rebuild it. > This is almost certainly the linker bug. I analyzed last week. > > nm --dynamic guestfish > > Would be enough for me to say conclusively. U abort U accept U accept4 U access U add_history U append_history U __asprintf_chk U __assert_fail U bind U bindtextdomain U calloc U chdir U clearerr U clear_history U close U config_destroy U config_init U config_lookup_bool U config_read U connect U __ctype_b_loc U __ctype_get_mb_cur_max U __cxa_atexit w __cxa_finalize U dcgettext U dup U dup2 U __errno_location U error U execvp U _exit U exit U fclose U fdopen U ferror U fflush U fgets U fileno U fnmatch U fopen U fork U __fpending U __fprintf_chk U fputc U fputs U free U fwrite U __gcc_personality_v0 U __getdelim U getenv U geteuid U getopt_long U getpid U getpwent U gettimeofday w __gmon_start__ U guestfs_acl_delete_def_file U guestfs_acl_get_file U guestfs_acl_set_file U guestfs_add_cdrom U guestfs_add_domain_argv U guestfs_add_drive_opts U guestfs_add_drive_opts_argv U guestfs_add_drive_ro U guestfs_add_drive_ro_with_if U guestfs_add_drive_scratch U guestfs_add_drive_scratch_argv U guestfs_add_drive_with_if U guestfs_aug_clear U guestfs_aug_close U guestfs_aug_defnode U guestfs_aug_defvar U guestfs_aug_get U guestfs_aug_init U guestfs_aug_insert U guestfs_aug_label U guestfs_aug_load U guestfs_aug_ls U guestfs_aug_match U guestfs_aug_mv U guestfs_aug_rm U guestfs_aug_save U guestfs_aug_set U guestfs_aug_setm U guestfs_aug_transform_argv U guestfs_available U guestfs_available_all_groups U guestfs_base64_in U guestfs_base64_out U guestfs_blkdiscard U guestfs_blkdiscardzeroes U guestfs_blkid U guestfs_blockdev_flushbufs U guestfs_blockdev_getbsz U guestfs_blockdev_getro U guestfs_blockdev_getsize64 U guestfs_blockdev_getss U guestfs_blockdev_getsz U guestfs_blockdev_rereadpt U guestfs_blockdev_setbsz U guestfs_blockdev_setra U guestfs_blockdev_setro U guestfs_blockdev_setrw U guestfs_btrfs_balance_cancel U guestfs_btrfs_balance_pause U guestfs_btrfs_balance_resume U guestfs_btrfs_balance_status U guestfs_btrfs_device_add U guestfs_btrfs_device_delete U guestfs_btrfs_filesystem_balance U guestfs_btrfs_filesystem_defragment_argv U guestfs_btrfs_filesystem_resize_argv U guestfs_btrfs_filesystem_show U guestfs_btrfs_filesystem_sync U guestfs_btrfs_fsck_argv U guestfs_btrfs_image_argv U guestfs_btrfs_qgroup_assign U guestfs_btrfs_qgroup_create U guestfs_btrfs_qgroup_destroy U guestfs_btrfs_qgroup_limit U guestfs_btrfs_qgroup_remove U guestfs_btrfs_qgroup_show U guestfs_btrfs_quota_enable U guestfs_btrfs_quota_rescan U guestfs_btrfs_replace U guestfs_btrfs_rescue_chunk_recover U guestfs_btrfs_rescue_super_recover U guestfs_btrfs_scrub_cancel U guestfs_btrfs_scrub_resume U guestfs_btrfs_scrub_start U guestfs_btrfs_scrub_status U guestfs_btrfs_set_seeding U guestfs_btrfs_subvolume_create_opts_argv U guestfs_btrfs_subvolume_delete U guestfs_btrfs_subvolume_get_default U guestfs_btrfs_subvolume_list U guestfs_btrfs_subvolume_set_default U guestfs_btrfs_subvolume_show U guestfs_btrfs_subvolume_snapshot_opts_argv U guestfs_btrfstune_enable_extended_inode_refs U guestfs_btrfstune_enable_skinny_metadata_extent_refs U guestfs_btrfstune_seeding U guestfs_canonical_device_name U guestfs_cap_get_file U guestfs_cap_set_file U guestfs_case_sensitive_path U guestfs_cat U guestfs_checksum U guestfs_checksum_device U guestfs_checksums_out U guestfs_chmod U guestfs_chown U guestfs_clear_backend_setting U guestfs_close U guestfs_command U guestfs_command_lines U guestfs_compress_device_out_argv U guestfs_compress_out_argv U guestfs_config U guestfs_copy_attributes U guestfs_copy_attributes_argv U guestfs_copy_device_to_device_argv U guestfs_copy_device_to_file_argv U guestfs_copy_file_to_device_argv U guestfs_copy_file_to_file_argv U guestfs_copy_in U guestfs_copy_out U guestfs_copy_size U guestfs_cp U guestfs_cp_a U guestfs_cpio_out_argv U guestfs_c_pointer U guestfs_cp_r U guestfs_create U guestfs_dd U guestfs_debug U guestfs_debug_drives U guestfs_debug_upload U guestfs_delete_event_callback U guestfs_device_index U guestfs_df U guestfs_df_h U guestfs_disk_create U guestfs_disk_create_argv U guestfs_disk_format U guestfs_disk_has_backing_file U guestfs_disk_virtual_size U guestfs_dmesg U guestfs_download U guestfs_download_blocks_argv U guestfs_download_inode U guestfs_download_offset U guestfs_drop_caches U guestfs_du U guestfs_e2fsck_argv U guestfs_e2fsck_f U guestfs_echo_daemon U guestfs_egrep U guestfs_egrepi U guestfs_equal U guestfs_event_to_string U guestfs_exists U guestfs_extlinux U guestfs_f2fs_expand U guestfs_fallocate U guestfs_fallocate64 U guestfs_feature_available U guestfs_fgrep U guestfs_fgrepi U guestfs_file U guestfs_file_architecture U guestfs_filesize U guestfs_filesystem_available U guestfs_filesystem_walk U guestfs_fill U guestfs_fill_dir U guestfs_fill_pattern U guestfs_find U guestfs_find0 U guestfs_findfs_label U guestfs_findfs_uuid U guestfs_find_inode U guestfs_free_application2_list U guestfs_free_application_list U guestfs_free_btrfsbalance U guestfs_free_btrfsqgroup_list U guestfs_free_btrfsscrub U guestfs_free_btrfssubvolume_list U guestfs_free_dirent_list U guestfs_free_hivex_node_list U guestfs_free_hivex_value_list U guestfs_free_inotify_event_list U guestfs_free_int_bool U guestfs_free_isoinfo U guestfs_free_lvm_lv_list U guestfs_free_lvm_pv_list U guestfs_free_lvm_vg_list U guestfs_free_mdstat_list U guestfs_free_partition_list U guestfs_free_stat U guestfs_free_stat_list U guestfs_free_statns U guestfs_free_statns_list U guestfs_free_statvfs U guestfs_free_tsk_dirent_list U guestfs_free_utsname U guestfs_free_version U guestfs_free_xattr_list U guestfs_free_xfsinfo U guestfs_free_yara_detection_list U guestfs_fsck U guestfs_fstrim_argv U guestfs_get_append U guestfs_get_attach_method U guestfs_get_autosync U guestfs_get_backend U guestfs_get_backend_setting U guestfs_get_backend_settings U guestfs_get_cachedir U guestfs_getcon U guestfs_get_direct U guestfs_get_e2attrs U guestfs_get_e2generation U guestfs_get_e2label U guestfs_get_e2uuid U guestfs_get_error_handler U guestfs_get_hv U guestfs_get_identifier U guestfs_get_libvirt_requested_credential_challenge U guestfs_get_libvirt_requested_credential_defresult U guestfs_get_libvirt_requested_credential_prompt U guestfs_get_libvirt_requested_credentials U guestfs_get_memsize U guestfs_get_network U guestfs_get_path U guestfs_get_pgroup U guestfs_get_pid U guestfs_get_program U guestfs_get_qemu U guestfs_get_recovery_proc U guestfs_get_selinux U guestfs_get_smp U guestfs_get_sockdir U guestfs_get_tmpdir U guestfs_get_trace U guestfs_get_umask U guestfs_get_verbose U guestfs_getxattr U guestfs_getxattrs U guestfs_glob_expand U guestfs_glob_expand_opts_argv U guestfs_grepi U guestfs_grep_opts_argv U guestfs_grub_install U guestfs_head U guestfs_head_n U guestfs_hexdump U guestfs_hivex_close U guestfs_hivex_commit U guestfs_hivex_node_add_child U guestfs_hivex_node_children U guestfs_hivex_node_delete_child U guestfs_hivex_node_get_child U guestfs_hivex_node_get_value U guestfs_hivex_node_name U guestfs_hivex_node_parent U guestfs_hivex_node_set_value U guestfs_hivex_node_values U guestfs_hivex_open_argv U guestfs_hivex_root U guestfs_hivex_value_key U guestfs_hivex_value_string U guestfs_hivex_value_type U guestfs_hivex_value_utf8 U guestfs_hivex_value_value U guestfs_initrd_cat U guestfs_initrd_list U guestfs_inotify_add_watch U guestfs_inotify_close U guestfs_inotify_files U guestfs_inotify_init U guestfs_inotify_read U guestfs_inotify_rm_watch U guestfs_inspect_get_arch U guestfs_inspect_get_distro U guestfs_inspect_get_drive_mappings U guestfs_inspect_get_filesystems U guestfs_inspect_get_format U guestfs_inspect_get_hostname U guestfs_inspect_get_icon_argv U guestfs_inspect_get_major_version U guestfs_inspect_get_minor_version U guestfs_inspect_get_mountpoints U guestfs_inspect_get_osinfo U guestfs_inspect_get_package_format U guestfs_inspect_get_package_management U guestfs_inspect_get_product_name U guestfs_inspect_get_product_variant U guestfs_inspect_get_roots U guestfs_inspect_get_type U guestfs_inspect_get_windows_current_control_set U guestfs_inspect_get_windows_software_hive U guestfs_inspect_get_windows_system_hive U guestfs_inspect_get_windows_systemroot U guestfs_inspect_is_live U guestfs_inspect_is_multipart U guestfs_inspect_is_netinst U guestfs_inspect_list_applications U guestfs_inspect_list_applications2 U guestfs_inspect_os U guestfs_internal_exit U guestfs_is_blockdev_opts_argv U guestfs_is_chardev_opts_argv U guestfs_is_config U guestfs_is_dir_opts U guestfs_is_dir_opts_argv U guestfs_is_fifo_opts_argv U guestfs_is_file_opts_argv U guestfs_is_lv U guestfs_isoinfo U guestfs_isoinfo_device U guestfs_is_socket_opts_argv U guestfs_is_symlink U guestfs_is_whole_device U guestfs_is_zero U guestfs_is_zero_device U guestfs_journal_close U guestfs_journal_get U guestfs_journal_get_data_threshold U guestfs_journal_get_realtime_usec U guestfs_journal_next U guestfs_journal_open U guestfs_journal_set_data_threshold U guestfs_journal_skip U guestfs_kill_subprocess U guestfs_last_errno U guestfs_last_error U guestfs_launch U guestfs_lchown U guestfs_ldmtool_create_all U guestfs_ldmtool_diskgroup_disks U guestfs_ldmtool_diskgroup_name U guestfs_ldmtool_diskgroup_volumes U guestfs_ldmtool_remove_all U guestfs_ldmtool_scan U guestfs_ldmtool_scan_devices U guestfs_ldmtool_volume_hint U guestfs_ldmtool_volume_partitions U guestfs_ldmtool_volume_type U guestfs_lgetxattr U guestfs_lgetxattrs U guestfs_list_9p U guestfs_list_devices U guestfs_list_disk_labels U guestfs_list_dm_devices U guestfs_list_filesystems U guestfs_list_ldm_partitions U guestfs_list_ldm_volumes U guestfs_list_md_devices U guestfs_list_partitions U guestfs_ll U guestfs_llz U guestfs_ln U guestfs_ln_f U guestfs_ln_s U guestfs_ln_sf U guestfs_lremovexattr U guestfs_ls U guestfs_ls0 U guestfs_lsetxattr U guestfs_lstat U guestfs_lstatlist U guestfs_lstatns U guestfs_lstatnslist U guestfs_luks_add_key U guestfs_luks_close U guestfs_luks_format U guestfs_luks_format_cipher U guestfs_luks_kill_slot U guestfs_luks_open U guestfs_luks_open_ro U guestfs_luks_uuid U guestfs_lvcreate U guestfs_lvcreate_free U guestfs_lvm_canonical_lv_name U guestfs_lvm_clear_filter U guestfs_lvm_remove_all U guestfs_lvm_scan U guestfs_lvm_set_filter U guestfs_lvremove U guestfs_lvrename U guestfs_lvresize U guestfs_lvresize_free U guestfs_lvs U guestfs_lvs_full U guestfs_lvuuid U guestfs_lxattrlist U guestfs_max_disks U guestfs_md_create_argv U guestfs_md_detail U guestfs_md_stat U guestfs_md_stop U guestfs_mkdir U guestfs_mkdir_mode U guestfs_mkdir_p U guestfs_mkdtemp U guestfs_mke2fs_argv U guestfs_mke2fs_J U guestfs_mke2fs_JL U guestfs_mke2fs_JU U guestfs_mke2journal U guestfs_mke2journal_L U guestfs_mke2journal_U U guestfs_mkfifo U guestfs_mkfs U guestfs_mkfs_b U guestfs_mkfs_btrfs_argv U guestfs_mkfs_opts_argv U guestfs_mklost_and_found U guestfs_mkmountpoint U guestfs_mknod U guestfs_mknod_b U guestfs_mknod_c U guestfs_mksquashfs_argv U guestfs_mkswap_file U guestfs_mkswap_L U guestfs_mkswap_opts_argv U guestfs_mkswap_U U guestfs_mktemp_argv U guestfs_modprobe U guestfs_mount U guestfs_mount_9p_argv U guestfs_mountable_device U guestfs_mountable_subvolume U guestfs_mount_local_argv U guestfs_mount_local_run U guestfs_mount_loop U guestfs_mount_options U guestfs_mountpoints U guestfs_mount_ro U guestfs_mounts U guestfs_mount_vfs U guestfs_mv U guestfs_nr_devices U guestfs_ntfs_3g_probe U guestfs_ntfscat_i U guestfs_ntfsclone_in U guestfs_ntfsclone_out_argv U guestfs_ntfsfix_argv U guestfs_ntfsresize_opts_argv U guestfs_ntfsresize_size U guestfs_parse_environment U guestfs_parse_environment_list U guestfs_part_add U guestfs_part_del U guestfs_part_disk U guestfs_part_expand_gpt U guestfs_part_get_bootable U guestfs_part_get_disk_guid U guestfs_part_get_gpt_attributes U guestfs_part_get_gpt_guid U guestfs_part_get_gpt_type U guestfs_part_get_mbr_id U guestfs_part_get_mbr_part_type U guestfs_part_get_name U guestfs_part_get_parttype U guestfs_part_init U guestfs_part_list U guestfs_part_resize U guestfs_part_set_bootable U guestfs_part_set_disk_guid U guestfs_part_set_disk_guid_random U guestfs_part_set_gpt_attributes U guestfs_part_set_gpt_guid U guestfs_part_set_gpt_type U guestfs_part_set_mbr_id U guestfs_part_set_name U guestfs_part_to_dev U guestfs_part_to_partnum U guestfs_ping_daemon U guestfs_pop_error_handler U guestfs_pread U guestfs_pread_device U guestfs_push_error_handler U guestfs_pvchange_uuid U guestfs_pvchange_uuid_all U guestfs_pvcreate U guestfs_pvremove U guestfs_pvresize U guestfs_pvresize_size U guestfs_pvs U guestfs_pvs_full U guestfs_pvuuid U guestfs_pwrite U guestfs_pwrite_device U guestfs_readdir U guestfs_read_file U guestfs_read_lines U guestfs_readlink U guestfs_readlinklist U guestfs_realpath U guestfs_remount_argv U guestfs_remove_drive U guestfs_removexattr U guestfs_rename U guestfs_resize2fs U guestfs_resize2fs_M U guestfs_resize2fs_size U guestfs_rm U guestfs_rmdir U guestfs_rm_f U guestfs_rmmountpoint U guestfs_rm_rf U guestfs_rsync_argv U guestfs_rsync_in_argv U guestfs_rsync_out_argv U guestfs_scrub_device U guestfs_scrub_file U guestfs_scrub_freespace U guestfs_selinux_relabel_argv U guestfs_set_append U guestfs_set_attach_method U guestfs_set_autosync U guestfs_set_backend U guestfs_set_backend_setting U guestfs_set_backend_settings U guestfs_set_cachedir U guestfs_setcon U guestfs_set_direct U guestfs_set_e2attrs_argv U guestfs_set_e2generation U guestfs_set_e2label U guestfs_set_e2uuid U guestfs_set_error_handler U guestfs_set_event_callback U guestfs_set_hv U guestfs_set_identifier U guestfs_set_label U guestfs_set_libvirt_requested_credential U guestfs_set_libvirt_supported_credentials U guestfs_set_memsize U guestfs_set_network U guestfs_set_path U guestfs_set_pgroup U guestfs_set_program U guestfs_set_qemu U guestfs_set_recovery_proc U guestfs_set_selinux U guestfs_set_smp U guestfs_set_tmpdir U guestfs_set_trace U guestfs_set_uuid U guestfs_set_uuid_random U guestfs_set_verbose U guestfs_setxattr U guestfs_sfdisk U guestfs_sfdisk_disk_geometry U guestfs_sfdisk_kernel_geometry U guestfs_sfdisk_l U guestfs_sfdiskM U guestfs_sfdisk_N U guestfs_sh U guestfs_sh_lines U guestfs_shutdown U guestfs_sleep U guestfs_stat U guestfs_statns U guestfs_statvfs U guestfs_strings U guestfs_strings_e U guestfs_swapoff_device U guestfs_swapoff_file U guestfs_swapoff_label U guestfs_swapoff_uuid U guestfs_swapon_device U guestfs_swapon_file U guestfs_swapon_label U guestfs_swapon_uuid U guestfs_sync U guestfs_syslinux_argv U guestfs_tail U guestfs_tail_n U guestfs_tar_in_opts_argv U guestfs_tar_out_opts_argv U guestfs_tgz_in U guestfs_tgz_out U guestfs_touch U guestfs_truncate U guestfs_truncate_size U guestfs_tune2fs_argv U guestfs_tune2fs_l U guestfs_txz_in U guestfs_txz_out U guestfs_umask U guestfs_umount_all U guestfs_umount_local_argv U guestfs_umount_opts_argv U guestfs_upload U guestfs_upload_offset U guestfs_user_cancel U guestfs_utimens U guestfs_utsname U guestfs_version U guestfs_vfs_label U guestfs_vfs_minimum_size U guestfs_vfs_type U guestfs_vfs_uuid U guestfs_vg_activate U guestfs_vg_activate_all U guestfs_vgchange_uuid U guestfs_vgchange_uuid_all U guestfs_vgcreate U guestfs_vglvuuids U guestfs_vgmeta U guestfs_vgpvuuids U guestfs_vgremove U guestfs_vgrename U guestfs_vgs U guestfs_vgscan U guestfs_vgs_full U guestfs_vguuid U guestfs_wc_c U guestfs_wc_l U guestfs_wc_w U guestfs_wipefs U guestfs_write U guestfs_write_append U guestfs_write_file U guestfs_xfs_admin_argv U guestfs_xfs_growfs_argv U guestfs_xfs_info U guestfs_xfs_repair_argv U guestfs_yara_destroy U guestfs_yara_load U guestfs_yara_scan U guestfs_zegrep U guestfs_zegrepi U guestfs_zero U guestfs_zero_device U guestfs_zerofree U guestfs_zero_free_space U guestfs_zfgrep U guestfs_zfgrepi U guestfs_zfile U guestfs_zgrep U guestfs_zgrepi U isatty U __isoc99_sscanf U iswprint w _ITM_deregisterTMCloneTable w _ITM_registerTMCloneTable U kill U __libc_start_main U listen 0000000000000000 A locale_charset U __lxstat U malloc U mbrtowc U mbsinit U memcmp U memcpy U __memcpy_chk U memmove U memset U mkdir U mkstemp U modf U nl_langinfo U open 0000000000111e80 B optarg 0000000000111e40 B optind U pclose U perror U pipe U popen U posix_fadvise U __printf_chk 0000000000111e60 B __progname 0000000000111e60 V program_invocation_short_name U putc U putchar U puts U qsort U read U read_history U readline U realloc U recvmsg U rename 0000000000111ea8 B rl_attempted_completion_function 0000000000111eb8 B rl_attempted_completion_over 0000000000111ebc B rl_completion_append_character U rl_completion_matches 0000000000111eb0 B rl_readline_name U rl_variable_bind U rl_variable_value U sendmsg U setenv U setlocale U setpwent U sigaction U __snprintf_chk U socket U sqrt U __stack_chk_fail 0000000000111ea0 B stderr 0000000000111ed0 B stdin 0000000000111e88 B stdout U stpcpy U strcasecmp U strcat U strchr U strcmp U strcpy U __strcpy_chk U strcspn U strdup U strlen U strncasecmp U strncmp U strndup U strrchr U strsignal U strspn U strstr U strtoll U strtoull U system U tcgetattr U tcsetattr U textdomain U tgetent U tgetnum U unlink U unsetenv U _Unwind_Resume 0000000000111ec0 B UP U using_history U utime U __vfprintf_chk U waitpid U write U xdr_array U xdr_bool U xdr_free U xdr_int U xdrstdio_create U xdr_string 0000000000000000 A xmalloc U xmlBufferFree U xmlFree U xmlFreeDoc U xmlFreeTextWriter U xmlFreeURI U xmlParseURI U xmlURIUnescapeString U xmlXPathFreeContext U xmlXPathFreeObject 0000000000000000 A xrealloc U __xstat Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx