Skip to content

Address Undefined Behavior Sanitizer Issues #118

@gerickson

Description

@gerickson

In opencflite-635.21.8 on Linux, the unit and functional tests for OpenCFLite trigger the following errors with the undefined behavior sanitizer:

make[1]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/tests'
make  date_test
make[2]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/tests'
make[2]: 'date_test' is up to date.
make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/tests'
/bin/bash ../libtool --mode execute ./date_test
../CFString.c:556:18: runtime error: load of misaligned address 0x7f5ca0411d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f5ca0411d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
Checking date constructors:
../CFString.c:548:18: runtime error: load of misaligned address 0x561f57896024 for type 'const uint64_t', which requires 8 byte alignment
0x561f57896024: note: pointer points here
  72 73 3a 00 41 62 73 6f  6c 75 74 65 20 54 69 6d  65 20 69 73 00 00 00 00  54 68 65 20 63 75 72 72
              ^ 
Absolute Time is
The current absolute time is 670108984.902002
Equivalent CFDate object is
<CFDate 0x561f5939b6f0 [0x7f5ca044b260]>{time = 670108985}

Checking date comparison functions:
date1 is before date2!

Checking Gregorian date functions
Is my Gregorian date valid? 1
The Absolute Time from a Gregorian date is: -34928797.300000
This corresponds to the following:
Week of the year for 11-23-1999 is 47
Day of the week for 11-23-1999 is 2

make[1]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/tests'
...
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/ReadPListExample'
/bin/bash ../../libtool --mode execute ./ReadPListExample ../../../examples/ReadPListExample/schema.xml
../CFString.c:556:18: runtime error: load of misaligned address 0x7fe621b8cd19 for type 'const uint32_t', which requires 4 byte alignment
0x7fe621b8cd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFPropertyList.c:954:13: runtime error: left shift of 252747881 by 6 places cannot be represented in type 'int'
../CFString.c:548:18: runtime error: load of misaligned address 0x7fe621b8ad05 for type 'const uint64_t', which requires 8 byte alignment
0x7fe621b8ad05: note: pointer points here
 70 2c 0a 00 25 40 65  6e 74 72 69 65 73 20 3d  3e 0a 00 3c 25 70 3e 00  25 40 25 6c 64 20 3a 20  25
             ^ 
Property list (as read from file):
<CFBasicHash 0x5628b3810f70 [0x7fe621bc6260]>{type = mutable dict, count = 6,
entries =>
	0 : <CFString 0x5628b3810f10 [0x7fe621bc6260]>{contents = "City of Birth"} = <CFString 0x5628b3810f40 [0x7fe621bc6260]>{contents = "Springfield"}
	1 : <CFString 0x5628b3811490 [0x7fe621bc6260]>{contents = "Year Of Birth"} = <CFNumber 0x5628b38114c0 [0x7fe621bc6260]>{value = +1965, type = kCFNumberSInt64Type}
	6 : <CFString 0x5628b38110a0 [0x7fe621bc6260]>{contents = "Kids Names"} = <CFArray 0x5628b38110d0 [0x7fe621bc6260]>{type = mutable-small, count = 2, values = (
	0 : <CFString 0x5628b3811110 [0x7fe621bc6260]>{contents = "John"}
	1 : <CFString 0x5628b38111c0 [0x7fe621bc6260]>{contents = "Kyra"}
)}
	9 : <CFString 0x5628b3811250 [0x7fe621bc6260]>{contents = "Name"} = <CFString 0x5628b3811280 [0x7fe621bc6260]>{contents = "John Doe"}
	10 : <CFString 0x5628b3811320 [0x7fe621bc6260]>{contents = "Pets Names"} = <CFArray 0x5628b3811140 [0x7fe621bc6260]>{type = immutable, count = 0, values = ()}
	12 : <CFString 0x5628b3811350 [0x7fe621bc6260]>{contents = "Picture"} = <CFData 0x5628b3811180 [0x7fe621bc6260]>{length = 10, capacity = 10, bytes = 0x3c4281a581a59981423c}
}


make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/ReadPListExample'
...
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/WritePListExample'
/bin/bash ../../libtool --mode execute ./WritePListExample
../CFString.c:556:18: runtime error: load of misaligned address 0x7f0d5874ad19 for type 'const uint32_t', which requires 4 byte alignment
0x7f0d5874ad19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x5639c277e015 for type 'const uint64_t', which requires 8 byte alignment
0x5639c277e015: note: pointer points here
 79 72 61 00 4a 6f 68  6e 20 44 6f 65 00 4e 61  6d 65 00 53 70 72 69 6e  67 66 69 65 6c 64 00 43  69
             ^ 
John Doe info dictionary:
<CFBasicHash 0x5639c46267f0 [0x7f0d58784260]>{type = mutable dict, count = 6,
entries =>
	0 : <CFString 0x5639c4626ae0 [0x7f0d58784260]>{contents = "Pets Names"} = <CFArray 0x5639c4626aa0 [0x7f0d58784260]>{type = immutable, count = 0, values = ()}
	2 : <CFString 0x5639c4626970 [0x7f0d58784260]>{contents = "Year Of Birth"} = <CFNumber 0x5639c4626940 [0x7f0d58784260]>{value = +1965, type = kCFNumberSInt32Type}
	3 : <CFString 0x5639c4626870 [0x7f0d58784260]>{contents = "Name"} = <CFString 0x5639c4626840 [0x7f0d58784260]>{contents = "John Doe"}
	4 : <CFString 0x5639c46269f0 [0x7f0d58784260]>{contents = "Kids Names"} = <CFArray 0x5639c46269a0 [0x7f0d58784260]>{type = immutable, count = 2, values = (
	0 : <CFString 0x5639c4626260 [0x7f0d58784260]>{contents = "John"}
	1 : <CFString 0x5639c4626290 [0x7f0d58784260]>{contents = "Kyra"}
)}
	5 : <CFString 0x5639c4626b70 [0x7f0d58784260]>{contents = "Picture"} = <CFData 0x5639c4626b10 [0x7f0d58784260]>{length = 10, capacity = 10, bytes = 0x3c4281a581a59981423c}
	6 : <CFString 0x5639c4626910 [0x7f0d58784260]>{contents = "City of Birth"} = <CFString 0x5639c46268e0 [0x7f0d58784260]>{contents = "Springfield"}
}


Shown as XML property list (bytes):
<CFData 0x5639c4628310 [0x7f0d58784260]>{length = 517, capacity = 1024, bytes = 0x3c3f786d6c2076657273696f6e3d2231 ... 2f706c6973743e0a}

The XML property list contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>City of Birth</key>
	<string>Springfield</string>
	<key>Kids Names</key>
	<array>
		<string>John</string>
		<string>Kyra</string>
	</array>
	<key>Name</key>
	<string>John Doe</string>
	<key>Pets Names</key>
	<array/>
	<key>Picture</key>
	<data>
	PEKBpYGlmYFCPA==
	</data>
	<key>Year Of Birth</key>
	<integer>1965</integer>
</dict>
</plist>


../CFPropertyList.c:954:13: runtime error: left shift of 252747881 by 6 places cannot be represented in type 'int'
Property list (as written to file):
<CFBasicHash 0x5639c4629c30 [0x7f0d58784260]>{type = mutable dict, count = 6,
entries =>
	0 : <CFString 0x5639c4626df0 [0x7f0d58784260]>{contents = "City of Birth"} = <CFString 0x5639c4626fa0 [0x7f0d58784260]>{contents = "Springfield"}
	1 : <CFString 0x5639c462a0c0 [0x7f0d58784260]>{contents = "Year Of Birth"} = <CFNumber 0x5639c462a140 [0x7f0d58784260]>{value = +1965, type = kCFNumberSInt64Type}
	6 : <CFString 0x5639c4629c80 [0x7f0d58784260]>{contents = "Kids Names"} = <CFArray 0x5639c4629d00 [0x7f0d58784260]>{type = mutable-small, count = 2, values = (
	0 : <CFString 0x5639c4629d40 [0x7f0d58784260]>{contents = "John"}
	1 : <CFString 0x5639c4629e00 [0x7f0d58784260]>{contents = "Kyra"}
)}
	9 : <CFString 0x5639c4629e80 [0x7f0d58784260]>{contents = "Name"} = <CFString 0x5639c4629f00 [0x7f0d58784260]>{contents = "John Doe"}
	10 : <CFString 0x5639c4629f80 [0x7f0d58784260]>{contents = "Pets Names"} = <CFArray 0x5639c4629dc0 [0x7f0d58784260]>{type = mutable-small, count = 0, values = ()}
	12 : <CFString 0x5639c462a000 [0x7f0d58784260]>{contents = "Picture"} = <CFData 0x5639c462a080 [0x7f0d58784260]>{length = 10, capacity = 16, bytes = 0x3c4281a581a59981423c}
}


The number was: 1

/usr/bin/cmp ../../../examples/WritePListExample/data/expected_schema.xml schema.xml
make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/WritePListExample'
Making check in StringExample
...
make[3]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/StringExample'
make[3]: 'StringExample' is up to date.
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/StringExample'
/bin/bash ../../libtool --mode execute ./StringExample
../CFString.c:556:18: runtime error: load of misaligned address 0x7fcd3c363d19 for type 'const uint32_t', which requires 4 byte alignment
0x7fcd3c363d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
------------------Simple Strings---------------

../CFString.c:548:18: runtime error: load of misaligned address 0x5654574d4074 for type 'const uint64_t', which requires 8 byte alignment
0x5654574d4074: note: pointer points here
  72 6c 64 00 53 74 72 69  6e 67 20 20 20 20 20 20  20 20 20 20 3a 20 25 40  00 55 6e 69 63 6f 64 65
              ^ 
String          : Hello World

Unicode data    : <CFData 0x5654592fbcb0 [0x7fcd3c39d260]>{length = 24, capacity = 24, bytes = 0xfffe480065006c006c006f00200057006f0072006c006400}

String Out      : Hello World

------------------C String Manipulations---------------

Original String : Hello World

External Rep: <CFData 0x5654592fc180 [0x7fcd3c39d260]>{length = 11, capacity = 11, bytes = 0x48656c6c6f20576f726c64}

------------------Character Manipulations---------------

Original String : Hello World

------------------External Contents Examples---------------

String: Appended string... More stuff... A C string. 42 -3.14 Hello...

String: Appended string... Appended string... Appended string... Appended string... Appended string... 

------------------String Manipulations---------------

String Outer       : Hello Cruel World

String Find        : Cruel

String Replace     : Cool

Replaced           : Hello Cool World

Appended           : Hello Cool World!  Keep the change.

Is Hyphenation supported for this locale? No

Upper Cased        : HELLO COOL WORLD!  KEEP THE CHANGE.

Lower Cased        : hello cool world!  keep the change.

Capitalized        : Hello Cool World!  Keep The Change.

Up Cased (again)   : HELLO COOL WORLD!  KEEP THE CHANGE.

Replaced?          : HELLO COOL WORLD!  KEEP THE CHANGE.

Case insensitive   : HELLO COOL WORLD!  Be THE CHANGE.

Capitalized        : Hello Cool World!  Be The Change.

Should Be Unchanged: Hello Cool World!  Be The Change.

Should Be Changed  : Hello Cool World!  Be The Ball.

Which is bigger version 2.5 or version 2.0?

Base Compare Says  : version 2.5

Numerical Compare  : version 2.5

------------------Number Magic---------------

1.  Integer Parsing

   (a) Decimal Style

Make a Number from : 80.0

val=80, should be=80


correct.

   (b) Currency Style

Make a Number from : $80.00

val=80, should be=80


correct.

   (c) Percent Style (does not work for integers)

Make a Number from : 80%

val=0, should be=80


WRONG!!!

   (d) Scientific Notation Style (does not work for integers)

Make a Number from : 8.0E1

val=8, should be=80


WRONG!!!

   (e) Spell-Out Style

Make a Number from : eighty

val=80, should be=80


correct.

   (f) No Style (decimal)

Make a Number from : 80.0

val=80, should be=80


correct.

   (g) No Style (spell out) (is not expected to work)

Make a Number from : eighty

val=(null), should be=80


WRONG!!!

2.  Decimal Parsing

   (a) Decimal Style

Make a Number from : 123.26

val=123.26000000000001, should be=123.26000000000001


correct.

   (b) Currency Style

Make a Number from : $123.26

val=123.26000000000001, should be=123.26000000000001


correct.

   (c) Percent Style

Make a Number from : 123.26%

val=1.2326000000000001, should be=123.26000000000001


WRONG!!!

   (d) Scientific Notation Style

Make a Number from : 1.2326e2

val=123.26000000000001, should be=123.26000000000001


correct.

   (e) Spell-Out Style

Make a Number from : one hundred twenty-three point two six

val=123.26000000000001, should be=123.26000000000001


correct.

   (f) No Style (decimal)

Make a Number from : 123.26

val=123.26000000000001, should be=123.26000000000001


correct.

   (g) No Style (spell-out) (not expected to work)

Make a Number from : one hundred twenty three point two six

val=(null), should be=123.26000000000001


WRONG!!!

make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/StringExample'
Making check in Allocator
make[2]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/Allocator'
make  AllocatorExample
make[3]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/Allocator'
make[3]: 'AllocatorExample' is up to date.
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/Allocator'
/bin/bash ../../libtool --mode execute ./AllocatorExample
../CFString.c:556:18: runtime error: load of misaligned address 0x7f6fe73dfd19 for type 'const uint32_t', which requires 4 byte alignment
0x7f6fe73dfd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x562b41e3b03f for type 'const uint64_t', which requires 8 byte alignment
0x562b41e3b03f: note: pointer points here
 65 2e 63 00 43  6f 75 6e 74 69 6e 67 20  41 6c 6c 6f 63 61 74 6f  72 20 54 65 73 74 00 00  41 74 20
             ^ 
Counting Allocator Test

At start, number of allocations: 0

After creation, number of allocations: 5

After mutations, number of allocations: 5

After releasing, number of allocations: 0

Reduced Malloc Allocator Test

At start, number of addt'l allocations: 0

After creation, number of addt'l allocations: 4

After mutations, number of addt'l allocations: 5

After releasing, number of addt'l allocations: 0

make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/Allocator'
...
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined'
/bin/bash ../../libtool --mode execute   ./BundleExample "/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices"
../CFString.c:556:18: runtime error: load of misaligned address 0x7f4e799f2d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f4e799f2d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7ffe763d318b for type 'const uint64_t', which requires 8 byte alignment
0x7ffe763d318b: note: pointer points here
 70  6c 65 00 2f 74 6d 70 2f  74 6d 70 2e 43 46 42 75  6e 64 6c 65 45 78 61 6d  70 6c 65 2d 30 7a 42
              ^ 
1. Test Application Bundle:
Bundle identifier: (null)
Version: 0
Bundle location (as URL): file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
Main CFBundle Dictionary: <CFBasicHash 0x55cbd5fea770 [0x7f4e79a2c260]>{type = mutable dict, count = 1,
entries =>
	2 : <CFString 0x7f4e79a46760 [0x7f4e79a2c260]>{contents = "CFBundleExecutablePath"} = <CFString 0x55cbd5fd76e0 [0x7f4e79a2c260]>{contents = "/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/BundleExample"}
}
:
Development region: (null)
Support files directory URL: file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
Resources directory URL: file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
Private frameworks directory URL: Frameworks/ -- file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
Shared frameworks directory URL: SharedFrameworks/ -- file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
Shared support directory URL: SharedSupport/ -- file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
Built-in Plugins directory URL: PlugIns/ -- file://localhost/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/BundleExample/.libs/
CFBundleCopyBundleLocalizations(): No localizations present.
CFBundleCopyExecutableArchitectures(): No architectures defined.


2. CFLite Bundle:
CFLite path: file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices
Bundle identifier: com.apple.CFLite
Version: 0
Bundle location (as URL): file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Main CFBundle Dictionary: <CFBasicHash 0x55cbd5fecf10 [0x7f4e79a2c260]>{type = mutable dict, count = 12,
entries =>
	0 : <CFString 0x55cbd5fee400 [0x7f4e79a2c260]>{contents = "CFBundleName"} = <CFString 0x55cbd5fee270 [0x7f4e79a2c260]>{contents = "CFLite"}
	1 : <CFString 0x55cbd5fee2a0 [0x7f4e79a2c260]>{contents = "CFBundleIdentifier"} = <CFString 0x55cbd5fee2e0 [0x7f4e79a2c260]>{contents = "com.apple.CFLite"}
	2 : <CFString 0x55cbd5fee320 [0x7f4e79a2c260]>{contents = "CFBundleInfoDictionaryVersion"} = <CFString 0x55cbd5fee3d0 [0x7f4e79a2c260]>{contents = "6.0"}
	4 : <CFString 0x55cbd5fee540 [0x7f4e79a2c260]>{contents = "CFBundleVersion"} = <CFString 0x55cbd5fee580 [0x7f4e79a2c260]>{contents = "$(CURRENT_PROJECT_VERSION)"}
	5 : <CFString 0x7f4e79a46700 [0x7f4e79a2c260]>{contents = "CFBundleInfoPlistURL"} = <CFURL 0x55cbd5fed040 [0x7f4e79a2c260]>{type = 15, string = Info.plist, encoding = 134217984
	base = <CFURL 0x55cbd5feaa50 [0x7f4e79a2c260]>{type = 15, string = file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/, encoding = 134217984, base = (null)}}
	6 : <CFString 0x55cbd5fee230 [0x7f4e79a2c260]>{contents = "CFBundleExecutable"} = <CFString 0x55cbd5fee270 [0x7f4e79a2c260]>{contents = "CFLite"}
	7 : <CFString 0x7f4e79a46740 [0x7f4e79a2c260]>{contents = "CFBundleNumericVersion"} = <CFNumber 0x55cbd5fed6c0 [0x7f4e79a2c260]>{value = +0, type = kCFNumberSInt32Type}
	9 : <CFString 0x55cbd5fee5c0 [0x7f4e79a2c260]>{contents = "CarbonLazyValues"} = <CFBasicHash 0x55cbd5fee8a0 [0x7f4e79a2c260]>{type = mutable dict, count = 1,
entries =>
	3 : <CFString 0x55cbd5fee600 [0x7f4e79a2c260]>{contents = "CodeFragmentManager"} = <CFBasicHash 0x55cbd5fecff0 [0x7f4e79a2c260]>{type = mutable dict, count = 1,
entries =>
	6 : <CFString 0x55cbd5fee640 [0x7f4e79a2c260]>{contents = "CoreFoundation"} = <CFString 0x55cbd5fee7c0 [0x7f4e79a2c260]>{contents = "CFMPriv_CoreFoundation"}
}

}

	14 : <CFString 0x55cbd5fee4d0 [0x7f4e79a2c260]>{contents = "CFBundleSignature"} = <CFString 0x55cbd5fee510 [0x7f4e79a2c260]>{contents = "????"}
	15 : <CFString 0x55cbd5fee140 [0x7f4e79a2c260]>{contents = "CFBundlePackageType"} = <CFString 0x55cbd5fee430 [0x7f4e79a2c260]>{contents = "FMWK"}
	20 : <CFString 0x55cbd5fee180 [0x7f4e79a2c260]>{contents = "CFBundleDevelopmentRegion"} = <CFString 0x55cbd5fec960 [0x7f4e79a2c260]>{contents = "en_US"}
	22 : <CFString 0x55cbd5fee460 [0x7f4e79a2c260]>{contents = "CFBundleShortVersionString"} = <CFString 0x55cbd5fee4a0 [0x7f4e79a2c260]>{contents = "6.7.2"}
}
:
Development region: en_US
Support files directory URL: file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Resources directory URL: file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Private frameworks directory URL: Frameworks/ -- file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Shared frameworks directory URL: SharedFrameworks/ -- file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Shared support directory URL: SharedSupport/ -- file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Built-in Plugins directory URL: PlugIns/ -- file://localhost/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/share/CoreServices/
Bundle Localizations: <CFArray 0x55cbd5fee100 [0x7f4e79a2c260]>{type = mutable-small, count = 1, values = (
	0 : <CFString 0x55cbd5fec960 [0x7f4e79a2c260]>{contents = "en_US"}
)}
PREFERRED Bundle Localizations: <CFArray 0x55cbd5fef9f0 [0x7f4e79a2c260]>{type = mutable-small, count = 1, values = (
	0 : <CFString 0x55cbd5fefb40 [0x7f4e79a2c260]>{contents = "en_US"}
)}
CFBundleCopyExecutableArchitectures(): No architectures defined.
make -C ../.. DESTDIR=/tmp/tmp.CFBundleExample-0zBkPjFv uninstall
make[3]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined'
Making uninstall in include
make[4]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/include'
 ( cd '/tmp/tmp.CFBundleExample-0zBkPjFv/usr/local/include' && rm -f AssertMacros.h Availability.h AvailabilityMacros.h ConditionalMacros.h TargetConditionals.h )
make[4]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/include'
Making uninstall in compat
make[4]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/compat'
make[4]: Nothing to be done for 'uninstall'.
make[4]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/compat'
...
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/DisplayURL'
/bin/bash ../../libtool --mode execute ./DisplayURL -u http://www.apple.com/
../CFString.c:556:18: runtime error: load of misaligned address 0x7eff186fed19 for type 'const uint32_t', which requires 4 byte alignment
0x7eff186fed19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7ffdfe9cf1bd for type 'const uint64_t', which requires 8 byte alignment
0x7ffdfe9cf1bd: note: pointer points here
 00 2d 75 00 68 74 74  70 3a 2f 2f 77 77 77 2e  61 70 70 6c 65 2e 63 6f  6d 2f 00 53 48 45 4c 4c  3d
             ^ 
url: "http://www.apple.com/"
kCFURLComponentScheme: "http" including separators: "http://"
kCFURLComponentNetLocation: "www.apple.com" including separators: "://www.apple.com"
kCFURLComponentPath: "/" including separators: "/"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser not found
kCFURLComponentPassword not found
kCFURLComponentUserInfo not found
kCFURLComponentHost: "www.apple.com" including separators: "://www.apple.com"
kCFURLComponentPort not found
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
/bin/bash ../../libtool --mode execute ./DisplayURL -u http://developer.apple.com/referencelibrary/GettingStarted/GS_CoreFoundation/index.html
../CFString.c:556:18: runtime error: load of misaligned address 0x7f0b5cfa0d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f0b5cfa0d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7ffef1efe17b for type 'const uint64_t', which requires 8 byte alignment
0x7ffef1efe17b: note: pointer points here
 00  2d 75 00 68 74 74 70 3a  2f 2f 64 65 76 65 6c 6f  70 65 72 2e 61 70 70 6c  65 2e 63 6f 6d 2f 72
              ^ 
url: "http://developer.apple.com/referencelibrary/GettingStarted/GS_CoreFoundation/index.html"
kCFURLComponentScheme: "http" including separators: "http://"
kCFURLComponentNetLocation: "developer.apple.com" including separators: "://developer.apple.com"
kCFURLComponentPath: "/referencelibrary/GettingStarted/GS_CoreFoundation/index.html" including separators: "/referencelibrary/GettingStarted/GS_CoreFoundation/index.html"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser not found
kCFURLComponentPassword not found
kCFURLComponentUserInfo not found
kCFURLComponentHost: "developer.apple.com" including separators: "://developer.apple.com"
kCFURLComponentPort not found
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
/bin/bash ../../libtool --mode execute ./DisplayURL -u http://opencflite.sourceforge.net/
../CFString.c:556:18: runtime error: load of misaligned address 0x7f2c2c79dd19 for type 'const uint32_t', which requires 4 byte alignment
0x7f2c2c79dd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
url: "http://opencflite.sourceforge.net/"
kCFURLComponentScheme: "http" including separators: "http://"
kCFURLComponentNetLocation: "opencflite.sourceforge.net" including separators: "://opencflite.sourceforge.net"
kCFURLComponentPath: "/" including separators: "/"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser not found
kCFURLComponentPassword not found
kCFURLComponentUserInfo not found
kCFURLComponentHost: "opencflite.sourceforge.net" including separators: "://opencflite.sourceforge.net"
kCFURLComponentPort not found
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
/bin/bash ../../libtool --mode execute ./DisplayURL -u http://downloads.sourceforge.net:80/opencflite/opencflite-476.17.0.tar.gz
../CFString.c:556:18: runtime error: load of misaligned address 0x7f903b0eed19 for type 'const uint32_t', which requires 4 byte alignment
0x7f903b0eed19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7ffd7972c189 for type 'const uint64_t', which requires 8 byte alignment
0x7ffd7972c189: note: pointer points here
 00 2d 75  00 68 74 74 70 3a 2f 2f  64 6f 77 6e 6c 6f 61 64  73 2e 73 6f 75 72 63 65  66 6f 72 67 65
              ^ 
url: "http://downloads.sourceforge.net:80/opencflite/opencflite-476.17.0.tar.gz"
kCFURLComponentScheme: "http" including separators: "http://"
kCFURLComponentNetLocation: "downloads.sourceforge.net:80" including separators: "://downloads.sourceforge.net:80"
kCFURLComponentPath: "/opencflite/opencflite-476.17.0.tar.gz" including separators: "/opencflite/opencflite-476.17.0.tar.gz"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser not found
kCFURLComponentPassword not found
kCFURLComponentUserInfo not found
kCFURLComponentHost: "downloads.sourceforge.net" including separators: "://downloads.sourceforge.net:"
kCFURLComponentPort: "80" including separators: ":80"
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
/bin/bash ../../libtool --mode execute ./DisplayURL -u ftp://anonymous:guest@downloads.sourceforge.net:21/opencflite/opencflite-476.17.0.tar.gz
../CFString.c:556:18: runtime error: load of misaligned address 0x7f2bcfc2cd19 for type 'const uint32_t', which requires 4 byte alignment
0x7f2bcfc2cd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7fffb81ba17a for type 'const uint64_t', which requires 8 byte alignment
0x7fffb81ba17a: note: pointer points here
 00 2d  75 00 66 74 70 3a 2f 2f  61 6e 6f 6e 79 6d 6f 75  73 3a 67 75 65 73 74 40  64 6f 77 6e 6c 6f
              ^ 
url: "ftp://anonymous:guest@downloads.sourceforge.net:21/opencflite/opencflite-476.17.0.tar.gz"
kCFURLComponentScheme: "ftp" including separators: "ftp://"
kCFURLComponentNetLocation: "anonymous:guest@downloads.sourceforge.net:21" including separators: "://anonymous:guest@downloads.sourceforge.net:21"
kCFURLComponentPath: "/opencflite/opencflite-476.17.0.tar.gz" including separators: "/opencflite/opencflite-476.17.0.tar.gz"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser: "anonymous" including separators: "://anonymous:"
kCFURLComponentPassword: "guest" including separators: ":guest@"
kCFURLComponentUserInfo: "anonymous:guest" including separators: "://anonymous:guest@"
kCFURLComponentHost: "downloads.sourceforge.net" including separators: "@downloads.sourceforge.net:"
kCFURLComponentPort: "21" including separators: ":21"
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
/bin/bash ../../libtool --mode execute ./DisplayURL -u file://localhost/var/tmp
../CFString.c:556:18: runtime error: load of misaligned address 0x7f0ae00c1d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f0ae00c1d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7ffd770031ba for type 'const uint64_t', which requires 8 byte alignment
0x7ffd770031ba: note: pointer points here
 00 2d  75 00 66 69 6c 65 3a 2f  2f 6c 6f 63 61 6c 68 6f  73 74 2f 76 61 72 2f 74  6d 70 00 53 48 45
              ^ 
url: "file://localhost/var/tmp"
kCFURLComponentScheme: "file" including separators: "file://"
kCFURLComponentNetLocation: "localhost" including separators: "://localhost"
kCFURLComponentPath: "/var/tmp" including separators: "/var/tmp"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser not found
kCFURLComponentPassword not found
kCFURLComponentUserInfo not found
kCFURLComponentHost: "localhost" including separators: "://localhost"
kCFURLComponentPort not found
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
/bin/bash ../../libtool --mode execute ./DisplayURL -u file:///etc/motd
../CFString.c:556:18: runtime error: load of misaligned address 0x7fe91ffadd19 for type 'const uint32_t', which requires 4 byte alignment
0x7fe91ffadd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x7ffd824b11c2 for type 'const uint64_t', which requires 8 byte alignment
0x7ffd824b11c2: note: pointer points here
 00 2d  75 00 66 69 6c 65 3a 2f  2f 2f 65 74 63 2f 6d 6f  74 64 00 53 48 45 4c 4c  3d 2f 62 69 6e 2f
              ^ 
url: "file:///etc/motd"
kCFURLComponentScheme: "file" including separators: "file://"
kCFURLComponentNetLocation not found
kCFURLComponentPath: "/etc/motd" including separators: ":///etc/motd"
kCFURLComponentResourceSpecifier not found
kCFURLComponentUser not found
kCFURLComponentPassword not found
kCFURLComponentUserInfo not found
kCFURLComponentHost not found
kCFURLComponentPort not found
kCFURLComponentParameterString not found
kCFURLComponentQuery not found
kCFURLComponentFragment not found
make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/DisplayURL'
...
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/CFRunLoopTimerExample'
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 0.25  5.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7fb9077c1d19 for type 'const uint32_t', which requires 4 byte alignment
0x7fb9077c1d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x55b50525e14f for type 'const uint64_t', which requires 8 byte alignment
0x55b50525e14f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 5 seconds.
Will fire timer 0 every 0.25 seconds for 5 seconds, up to 20 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:06.744, timer: 0, delta: 0.251, variance: +0.001, iteration: 0
2022-03-27 14:23:06.995, timer: 0, delta: 0.251, variance: +0.001, iteration: 1
2022-03-27 14:23:07.245, timer: 0, delta: 0.251, variance: +0.001, iteration: 2
2022-03-27 14:23:07.494, timer: 0, delta: 0.248, variance: -0.002, iteration: 3
2022-03-27 14:23:07.745, timer: 0, delta: 0.251, variance: +0.001, iteration: 4
2022-03-27 14:23:07.994, timer: 0, delta: 0.249, variance: -0.001, iteration: 5
2022-03-27 14:23:08.245, timer: 0, delta: 0.251, variance: +0.001, iteration: 6
2022-03-27 14:23:08.494, timer: 0, delta: 0.250, variance: -0.000, iteration: 7
2022-03-27 14:23:08.744, timer: 0, delta: 0.249, variance: -0.001, iteration: 8
2022-03-27 14:23:08.993, timer: 0, delta: 0.250, variance: -0.000, iteration: 9
2022-03-27 14:23:09.244, timer: 0, delta: 0.250, variance: +0.000, iteration: 10
2022-03-27 14:23:09.494, timer: 0, delta: 0.250, variance: -0.000, iteration: 11
2022-03-27 14:23:09.745, timer: 0, delta: 0.252, variance: +0.002, iteration: 12
2022-03-27 14:23:09.994, timer: 0, delta: 0.249, variance: -0.001, iteration: 13
2022-03-27 14:23:10.244, timer: 0, delta: 0.249, variance: -0.001, iteration: 14
2022-03-27 14:23:10.494, timer: 0, delta: 0.250, variance: +0.000, iteration: 15
2022-03-27 14:23:10.743, timer: 0, delta: 0.249, variance: -0.001, iteration: 16
2022-03-27 14:23:10.995, timer: 0, delta: 0.252, variance: +0.002, iteration: 17
2022-03-27 14:23:11.244, timer: 0, delta: 0.248, variance: -0.002, iteration: 18
2022-03-27 14:23:11.494, timer: 0, delta: 0.250, variance: +0.000, iteration: 19
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 0.40  2.30
../CFString.c:556:18: runtime error: load of misaligned address 0x7f9b71c47d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f9b71c47d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x561605d0f14f for type 'const uint64_t', which requires 8 byte alignment
0x561605d0f14f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 2.3 seconds.
Will fire timer 0 every 0.4 seconds for 2.3 seconds, up to 6 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:11.958, timer: 0, delta: 0.400, variance: +0.000, iteration: 0
2022-03-27 14:23:12.358, timer: 0, delta: 0.400, variance: +0.000, iteration: 1
2022-03-27 14:23:12.759, timer: 0, delta: 0.400, variance: +0.000, iteration: 2
2022-03-27 14:23:13.158, timer: 0, delta: 0.400, variance: -0.000, iteration: 3
2022-03-27 14:23:13.559, timer: 0, delta: 0.401, variance: +0.001, iteration: 4
2022-03-27 14:23:13.959, timer: 0, delta: 0.400, variance: +0.000, iteration: 5
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 1.00  1.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7f5e1f3fcd19 for type 'const uint32_t', which requires 4 byte alignment
0x7f5e1f3fcd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x564bb633a14f for type 'const uint64_t', which requires 8 byte alignment
0x564bb633a14f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 1 seconds.
Will fire timer 0 every 1 seconds for 1 seconds, up to 1 time (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:15.035, timer: 0, delta: 1.002, variance: +0.002, iteration: 0
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 1.00  0.50
../CFString.c:556:18: runtime error: load of misaligned address 0x7fde0afdcd19 for type 'const uint32_t', which requires 4 byte alignment
0x7fde0afdcd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x55bac74cc14f for type 'const uint64_t', which requires 8 byte alignment
0x55bac74cc14f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 0.5 seconds.
Will fire timer 0 every 1 seconds for 0.5 seconds, up to 1 time (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:16.105, timer: 0, delta: 1.001, variance: +0.001, iteration: 0
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 0.10  1.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7f5fca3dad19 for type 'const uint32_t', which requires 4 byte alignment
0x7f5fca3dad19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x561133c5414f for type 'const uint64_t', which requires 8 byte alignment
0x561133c5414f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 1 seconds.
Will fire timer 0 every 0.1 seconds for 1 seconds, up to 10 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:16.276, timer: 0, delta: 0.101, variance: +0.001, iteration: 0
2022-03-27 14:23:16.376, timer: 0, delta: 0.100, variance: -0.000, iteration: 1
2022-03-27 14:23:16.476, timer: 0, delta: 0.100, variance: -0.000, iteration: 2
2022-03-27 14:23:16.576, timer: 0, delta: 0.100, variance: -0.000, iteration: 3
2022-03-27 14:23:16.675, timer: 0, delta: 0.099, variance: -0.001, iteration: 4
2022-03-27 14:23:16.775, timer: 0, delta: 0.100, variance: +0.000, iteration: 5
2022-03-27 14:23:16.876, timer: 0, delta: 0.100, variance: +0.000, iteration: 6
2022-03-27 14:23:16.975, timer: 0, delta: 0.099, variance: -0.001, iteration: 7
2022-03-27 14:23:17.075, timer: 0, delta: 0.100, variance: +0.000, iteration: 8
2022-03-27 14:23:17.175, timer: 0, delta: 0.100, variance: +0.000, iteration: 9
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 1.00  2.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7fe04e54bd19 for type 'const uint32_t', which requires 4 byte alignment
0x7fe04e54bd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x56336b14614f for type 'const uint64_t', which requires 8 byte alignment
0x56336b14614f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 2 seconds.
Will fire timer 0 every 1 seconds for 2 seconds, up to 2 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:18.248, timer: 0, delta: 1.000, variance: +0.000, iteration: 0
2022-03-27 14:23:19.248, timer: 0, delta: 1.001, variance: +0.001, iteration: 1
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 1.00 10.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7f73de363d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f73de363d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x55e9624c514f for type 'const uint64_t', which requires 8 byte alignment
0x55e9624c514f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 10 seconds.
Will fire timer 0 every 1 seconds for 10 seconds, up to 10 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:20.321, timer: 0, delta: 1.001, variance: +0.001, iteration: 0
2022-03-27 14:23:21.321, timer: 0, delta: 1.000, variance: +0.000, iteration: 1
2022-03-27 14:23:22.321, timer: 0, delta: 1.001, variance: +0.001, iteration: 2
2022-03-27 14:23:23.321, timer: 0, delta: 0.999, variance: -0.001, iteration: 3
2022-03-27 14:23:24.321, timer: 0, delta: 1.000, variance: +0.000, iteration: 4
2022-03-27 14:23:25.321, timer: 0, delta: 1.001, variance: +0.001, iteration: 5
2022-03-27 14:23:26.321, timer: 0, delta: 1.000, variance: -0.000, iteration: 6
2022-03-27 14:23:27.320, timer: 0, delta: 0.999, variance: -0.001, iteration: 7
2022-03-27 14:23:28.321, timer: 0, delta: 1.000, variance: +0.000, iteration: 8
2022-03-27 14:23:29.321, timer: 0, delta: 1.001, variance: +0.001, iteration: 9
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 0.33  1.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7f8baff5bd19 for type 'const uint32_t', which requires 4 byte alignment
0x7f8baff5bd19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x5648e16a914f for type 'const uint64_t', which requires 8 byte alignment
0x5648e16a914f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 1 timer for 1 seconds.
Will fire timer 0 every 0.33 seconds for 1 seconds, up to 3 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:29.727, timer: 0, delta: 0.331, variance: +0.001, iteration: 0
2022-03-27 14:23:30.057, timer: 0, delta: 0.330, variance: +0.000, iteration: 1
2022-03-27 14:23:30.387, timer: 0, delta: 0.330, variance: -0.000, iteration: 2
2022-03-27 14:23:30.716, timer: 0, delta: 0.329, variance: -0.001, iteration: 3
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 0.50  0.33 4.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7fe511073d19 for type 'const uint32_t', which requires 4 byte alignment
0x7fe511073d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x55b8f9e3e14f for type 'const uint64_t', which requires 8 byte alignment
0x55b8f9e3e14f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 2 timers for 4 seconds.
Will fire timer 0 every 0.5 seconds for 4 seconds, up to 8 times (with a tolerance of 1 time).
Will fire timer 1 every 0.33 seconds for 4 seconds, up to 12 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:31.123, timer: 1, delta: 0.331, variance: +0.001, iteration: 0
2022-03-27 14:23:31.293, timer: 0, delta: 0.500, variance: +0.000, iteration: 0
2022-03-27 14:23:31.453, timer: 1, delta: 0.330, variance: -0.000, iteration: 1
2022-03-27 14:23:31.783, timer: 1, delta: 0.330, variance: +0.000, iteration: 2
2022-03-27 14:23:31.793, timer: 0, delta: 0.500, variance: +0.000, iteration: 1
2022-03-27 14:23:32.114, timer: 1, delta: 0.330, variance: +0.000, iteration: 3
2022-03-27 14:23:32.294, timer: 0, delta: 0.500, variance: +0.000, iteration: 2
2022-03-27 14:23:32.444, timer: 1, delta: 0.330, variance: +0.000, iteration: 4
2022-03-27 14:23:32.773, timer: 1, delta: 0.329, variance: -0.001, iteration: 5
2022-03-27 14:23:32.793, timer: 0, delta: 0.499, variance: -0.001, iteration: 3
2022-03-27 14:23:33.103, timer: 1, delta: 0.330, variance: -0.000, iteration: 6
2022-03-27 14:23:33.293, timer: 0, delta: 0.500, variance: +0.000, iteration: 4
2022-03-27 14:23:33.433, timer: 1, delta: 0.330, variance: +0.000, iteration: 7
2022-03-27 14:23:33.763, timer: 1, delta: 0.330, variance: +0.000, iteration: 8
2022-03-27 14:23:33.793, timer: 0, delta: 0.500, variance: -0.000, iteration: 5
2022-03-27 14:23:34.094, timer: 1, delta: 0.330, variance: +0.000, iteration: 9
2022-03-27 14:23:34.293, timer: 0, delta: 0.500, variance: +0.000, iteration: 6
2022-03-27 14:23:34.423, timer: 1, delta: 0.330, variance: -0.000, iteration: 10
2022-03-27 14:23:34.754, timer: 1, delta: 0.330, variance: +0.000, iteration: 11
2022-03-27 14:23:34.793, timer: 0, delta: 0.500, variance: -0.000, iteration: 7
/bin/bash ../../libtool --mode execute ./CFRunLoopTimerExample 0.50  1.00 2.00 8.00
../CFString.c:556:18: runtime error: load of misaligned address 0x7f981bc91d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f981bc91d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
../CFString.c:548:18: runtime error: load of misaligned address 0x556c1d84b14f for type 'const uint64_t', which requires 8 byte alignment
0x556c1d84b14f: note: pointer points here
 29 2e 0a 00 54  69 6d 65 72 4d 6f 64 65  00 00 00 00 00 00 00 00  55 73 61 67 65 3a 20 25  73 20 3c
             ^ 
Will fire a total of 3 timers for 8 seconds.
Will fire timer 0 every 0.5 seconds for 8 seconds, up to 16 times (with a tolerance of 1 time).
Will fire timer 1 every 1 seconds for 8 seconds, up to 8 times (with a tolerance of 1 time).
Will fire timer 2 every 2 seconds for 8 seconds, up to 4 times (with a tolerance of 1 time).
../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608
2022-03-27 14:23:35.374, timer: 0, delta: 0.500, variance: +0.000, iteration: 0
2022-03-27 14:23:35.874, timer: 0, delta: 0.500, variance: +0.000, iteration: 1
2022-03-27 14:23:35.875, timer: 1, delta: 1.001, variance: +0.001, iteration: 0
2022-03-27 14:23:36.374, timer: 0, delta: 0.500, variance: +0.000, iteration: 2
2022-03-27 14:23:36.875, timer: 0, delta: 0.500, variance: +0.000, iteration: 3
2022-03-27 14:23:36.875, timer: 1, delta: 1.000, variance: +0.000, iteration: 1
2022-03-27 14:23:36.875, timer: 2, delta: 2.001, variance: +0.001, iteration: 0
2022-03-27 14:23:37.374, timer: 0, delta: 0.499, variance: -0.001, iteration: 4
2022-03-27 14:23:37.874, timer: 0, delta: 0.500, variance: -0.000, iteration: 5
2022-03-27 14:23:37.874, timer: 1, delta: 0.999, variance: -0.001, iteration: 2
2022-03-27 14:23:38.374, timer: 0, delta: 0.500, variance: +0.000, iteration: 6
2022-03-27 14:23:38.874, timer: 0, delta: 0.500, variance: -0.000, iteration: 7
2022-03-27 14:23:38.874, timer: 1, delta: 1.000, variance: +0.000, iteration: 3
2022-03-27 14:23:38.875, timer: 2, delta: 2.000, variance: -0.000, iteration: 1
2022-03-27 14:23:39.374, timer: 0, delta: 0.500, variance: +0.000, iteration: 8
2022-03-27 14:23:39.874, timer: 0, delta: 0.500, variance: +0.000, iteration: 9
2022-03-27 14:23:39.874, timer: 1, delta: 1.000, variance: -0.000, iteration: 4
2022-03-27 14:23:40.374, timer: 0, delta: 0.500, variance: -0.000, iteration: 10
2022-03-27 14:23:40.875, timer: 0, delta: 0.501, variance: +0.001, iteration: 11
2022-03-27 14:23:40.875, timer: 1, delta: 1.001, variance: +0.001, iteration: 5
2022-03-27 14:23:40.875, timer: 2, delta: 2.001, variance: +0.001, iteration: 2
2022-03-27 14:23:41.374, timer: 0, delta: 0.499, variance: -0.001, iteration: 12
2022-03-27 14:23:41.874, timer: 0, delta: 0.500, variance: +0.000, iteration: 13
2022-03-27 14:23:41.875, timer: 1, delta: 1.000, variance: -0.000, iteration: 6
2022-03-27 14:23:42.375, timer: 0, delta: 0.501, variance: +0.001, iteration: 14
2022-03-27 14:23:42.875, timer: 0, delta: 0.500, variance: +0.000, iteration: 15
2022-03-27 14:23:42.875, timer: 1, delta: 1.001, variance: +0.001, iteration: 7
2022-03-27 14:23:42.875, timer: 2, delta: 2.000, variance: +0.000, iteration: 3
make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/CFRunLoopTimerExample'
Making check in CFFileDescriptorExample
make[2]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/CFFileDescriptorExample'
make  CFFileDescriptorExample
make[3]: Entering directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/CFFileDescriptorExample'
make[3]: 'CFFileDescriptorExample' is up to date.
make[3]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/CFFileDescriptorExample'
/bin/bash ../../libtool --mode execute ./CFFileDescriptorExample 100
../CFString.c:556:18: runtime error: load of misaligned address 0x7f52474a8d19 for type 'const uint32_t', which requires 4 byte alignment
0x7f52474a8d19: note: pointer points here
 65 6f 73  00 6d 61 63 6f 73 00 77  69 6e 64 6f 77 73 00 6c  69 6e 75 78 00 66 72 65  65 62 73 64 00
              ^ 
0
1
1
2
3
5
8
13
21
34
55
89
../CFBag.c:730:5: runtime error: variable length array bound evaluates to non-positive value 0
make[2]: Leaving directory '/home/gerickson/src/git/github.com/gerickson/opencflite/tmp-build-fsanitize-undefined/examples/CFFileDescriptorExample'

Summarizing the errors:

  • ../CFBag.c:730:5: runtime error: variable length array bound evaluates to non-positive value 0
  • ../CFPropertyList.c:954:13: runtime error: left shift of 252747881 by 6 places cannot be represented in type 'int'
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x556c1d84b14f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x55b50525e14f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x55b8f9e3e14f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x55bac74cc14f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x55e9624c514f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x561133c5414f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x561605d0f14f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x561f57896024 for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x562b41e3b03f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x56336b14614f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x5639c277e015 for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x5648e16a914f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x564bb633a14f for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x5654574d4074 for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7fe621b8ad05 for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7ffd770031ba for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7ffd7972c189 for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7ffd824b11c2 for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7ffdfe9cf1bd for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7ffe763d318b for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7ffef1efe17b for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:548:18: runtime error: load of misaligned address 0x7fffb81ba17a for type 'const uint64_t', which requires 8 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7eff186fed19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f0ae00c1d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f0b5cfa0d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f0d5874ad19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f2bcfc2cd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f2c2c79dd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f4e799f2d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f52474a8d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f5ca0411d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f5e1f3fcd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f5fca3dad19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f6fe73dfd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f73de363d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f8baff5bd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f903b0eed19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f981bc91d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7f9b71c47d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fb9077c1d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fcd3c363d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fde0afdcd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fe04e54bd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fe511073d19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fe621b8cd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFString.c:556:18: runtime error: load of misaligned address 0x7fe91ffadd19 for type 'const uint32_t', which requires 4 byte alignment
  • ../CFTimeZone.c:325:22: runtime error: left shift of negative value -1
  • ../CFTimeZone.c:326:22: runtime error: left shift of negative value -128
  • ../CFTimeZone.c:327:22: runtime error: left shift of negative value -32768
  • ../CFTimeZone.c:328:22: runtime error: left shift of negative value -8388608

Address these issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions