help-libtasn1
[Top][All Lists]
Advanced

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

Re: Fwd: Missing c_isdigit with Asan and UBsan builds


From: Simon Josefsson
Subject: Re: Fwd: Missing c_isdigit with Asan and UBsan builds
Date: Sat, 08 May 2021 07:59:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Jeffrey Walton <noloader@gmail.com> writes:

> The Gnulib folks suggested this should go to libtasn1 developers.
>
> I can also duplicate this problem on an older Intel Mac-mini, so it is
> not limited to M1 hardware.
>
> Maybe it is time to build a new release tarball with the latest Gnulib.

Thanks for the report -- can you try a current snapshot, like this one:

https://gitlab.com/gnutls/libtasn1/-/jobs/1246834459/artifacts/browse

I will try to find an account on a M1 machine and see if I can reproduce
any problems.

/Simon

> Jeff
>
> ---------- Forwarded message ---------
> From: Jeffrey Walton <noloader@gmail.com>
> Date: Tue, Mar 23, 2021 at 4:02 PM
> Subject: Missing c_isdigit with Asan and UBsan builds
> To: bug-gnulib@gnu.org List <bug-gnulib@gnu.org>
>
> Hi Everyone,
>
> I'm building libtasn1-4.16.0 on an Apple M1. I'm testing under Asan
> and UBsan due to a couple of failed self tests. Both Asan and UBsan
> libtasn1 link is failing with:
>
> Undefined symbols for architecture arm64:
>   "_c_isdigit", referenced from:
>       __asn1_expand_object_id in parser_aux.o
>       __asn1_check_identifier in parser_aux.o
>
> When I inspect libgnu.a I don't see any symbols. (This may be the
> wrong use of the tool):
>
> # Capital letter "i", not lower "L"
> % otool -I libtasn1-4.16.0/lib/gl/.libs/libgnu.a
> Archive : libtasn1-4.16.0/lib/gl/.libs/libgnu.a
> libtasn1-4.16.0/lib/gl/.libs/libgnu.a(c-ctype.o):
> libtasn1-4.16.0/lib/gl/.libs/libgnu.a(strverscmp.o):
>
> % otool -G libtasn1-4.16.0/lib/gl/.libs/libgnu.a
> Archive : libtasn1-4.16.0/lib/gl/.libs/libgnu.a
> libtasn1-4.16.0/lib/gl/.libs/libgnu.a(c-ctype.o):
> Data in code table (0 entries)
> offset     length kind
> libtasn1-4.16.0/lib/gl/.libs/libgnu.a(strverscmp.o):
> Data in code table (0 entries)
> offset     length kind
>
> Here is the link command:
>
> libtool: link: mv -f ".libs/libtasn1.expT" ".libs/libtasn1.exp"
> libtool: link: sed 's|^|_|' < .libs/libtasn1.exp > 
> .libs/libtasn1-symbols.expsym
> libtool: link: /usr/bin/cc -dynamiclib  -o .libs/libtasn1.6.dylib
> .libs/ASN1.o .libs/coding.o .libs/decoding.o .libs/element.o
> .libs/errors.o .libs/gstr.o .libs/parser_aux.o .libs/structure.o
> .libs/version.o   -Wl,-force_load,gl/.libs/libgnu.a
> -L/Users/jwalton/ok2delete-asan/lib -ldl -lpthread  -g3 -O1
> -fsanitize=address -arch arm64 -pthread -fsanitize=address -Wl,-rpath
> -Wl,@loader_path/../lib -Wl,-rpath
> -Wl,/Users/jwalton/ok2delete-asan/lib   -pthread -install_name
> /Users/jwalton/ok2delete-asan/lib/libtasn1.6.dylib
> -compatibility_version 13 -current_version 13.0 -Wl,-single_module
> -Wl,-exported_symbols_list,.libs/libtasn1-symbols.expsym
>
> Does anyone see what I might be doing wrong?
>
> Thanks.
>
>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]