Re: segfault in lookup_ldap and elsewhere when building with -Wl,-Bsymbolic-functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 14, 2018 at 6:35 AM Ian Kent <raven@xxxxxxxxxx> wrote:
> I do call defaults_read_config(0) to perform the initialization
> quite early in the program start up.
>
> ie. in daemon/automount.c
>
>         program = argv[0];
>
>         defaults_read_config(0);
>
>         nfs_mount_uses_string_options = check_nfs_mount_version(&vers, &check);
>
>         kpkt_len = get_kpkt_len();
>         master_wait = defaults_get_master_wait();
>         timeout = defaults_get_timeout();
>         ghost = defaults_get_browse_mode();
>         logging = defaults_get_logging();
>         global_selection_options = 0;
>         global_options = NULL;
>         have_global_options = 0;
>         foreground = 0;
>         dumpmaps = 0;
>         daemon_check = 1;
>
>         remove_empty_args(argv, &argc);
>
> which occurs before program options processing.
>
> So I'm not sure why you started seeing SEGVs .... and I wonder why
> it looked like it was due to a lack of defaults initialization?

It must be related to using -Wl,-Bsymbolic-functions when building,
which has been the default in Ubuntu (but not Debian) for many years.

We also recently had an issue with a particular sssd test failing due
to that flag that interacted badly with the test:
https://github.com/SSSD/sssd/pull/632



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux