View Issue Details

IDProjectCategoryView StatusLast Update
0000641fileGeneralpublic2025-04-09 08:06
ReporterBun Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status newResolutionopen 
Platformx86_64OSNixosOS VersionUnstable
Product Version5.46 
Summary0000641: Buffer overflow with executables built with Yocto
DescriptionI ran into this when building an SDK, which is a yocto operation where a bunch of native applications are being built. File is being called as part of that process, which crashes with a buffer overflow.

$ file pcprofiledump
*** buffer overflow detected ***: terminated
Aborted (core dumped)

Steps To Reproducefile pcprofiledump
TagsNo tags attached.

Activities

Bun

2025-04-09 07:22

reporter  

pcprofiledump (21,465 bytes)   
ELF>0$@�K@8
@! @@@����   II000��p<pLpL��<�L�LPP@@XXXDDS�td@@P�td�2�2�2TTQ�tdR�tdp<pLpL��/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-redact-linux/lib/ld-linux-x86-64.so.20GNU���GNU�u	�/
�U�Pg��V��GNU1
	
�`P�< DhPd�1V8x��UX Ko]>��Lg }!`P"�XPexit__cxa_finalizesetlocale__libc_start_mainsetbufcloseerrorstdoutargp_helpfprintfopen64textdomainasprintfreadprogram_invocation_short_nameargp_parseargp_program_version_hook__errno_location__dcgettext_libc_intl_domainname__prognamelibc.so.6GLIBC_2.36GLIBC_ABI_DT_RELRGLIBC_2.34GLIBC_2.2.5_ITM_deregisterTMCloneTable__gmon_start___ITM_registerTMCloneTable����B����%ui	0�O�O�O�O�O�L`PhPPOD!XOT!`Od!hOt!pO	�!xO
�!�O�!�O�!�O
�!�O�!�O�!�O�!�O"�O"�O$"�O4"pLG�W��H��H��/H��t��H����5/�%/@��h���f���h����f���h����f���h���f���h���f���h���f���h���f���h�r���f���h�b���f���h	�R���f���h
�B���f���h�2���f���h�"���f���h
����f���h����f���h��f����%�.fD���%.fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD���%�-fD��AUL�-�-ATI��H�5�
UH�-*S���H��(���H������E1�L�D$1�L���L������HcD$9���P9��I�<�1�1��Z����Ã���H�t$�����9�D$A��A���A��ްuȉD$=��ti=���H�l$L�-^�'@H�T$H�t$A��ްuH�H�L��1��E���1ɺH�������uȉ��9���H��(1�[]A\A]�H�l$L�-��%fD�T$�t$A��ްu��L��1����1ɺH����h��u��1�����H�
�,H�5�,L��������V����H�5�H������H���J���H�ڿ�01������H�5}H�����1��H��1���@��1�I��^H��H���PTE1�1�H�=��{+�f.�H�=�+H��+H9�tH�^+H��t	�����H�=�+H�5�+H)�H��H��?H��H�H�tH�-+H��t��fD�����=�+u+UH�=
+H��tH�=+�9����d����m+]������w������SH�
�
1�H��H��
H�5�
����H�5�1��	���H��H��
H��1��e����H�5�
1����H��H��
[H��1��=���ff.�f���H��H��H�D$��tH����1��H�5����H�|$H��H��1������xH�D$H��Ð1��ff.��AWAVAUL�,ATUSH��L9�sFA��I��A��H��DL��H)��
����8u>H��H��D���H���H���t�H��x%t`H�L9�r˸H��[]A\A]A^A_���H�5�	E��uH�5�	H�=9&����H�����H�ڿ�01��[���I9�u1�A��u��H�5"E��uH�5>H�=�%����1��H��1�����f�����ut�ÐH��H�==)1��>���1�H�����H��H���2.39(GNU libc) pcprofiledump %s%s
2024Written by %s.
Ulrich Dreppercannot read headercannot read pointer paircannot open input fileinvalid pointer size[FILE]unbufferedDon't buffer outputCopyright (C) %s Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For bug reporting instructions, please see:
%s.
<https://www.gnu.org/software/libc/bugs.html>unexpected end of file in headerunexpected end of file in pointer pairthis = %#010x, caller = %#010x
this = %#018lx, caller = %#018lx
Dump information generated by PC profiling.;P	T��d��t��t�|d�lT����D�D�dzRx���&D$4��FJw�?9*3$"\��t���p�sE�d���dH X
Hv
BH�$�B�B�B �F(�A0�A8�D@T
8A0A(B BBBH��)TT8,���F�I�K �H(�KP�
(C ABBA%�$�0u�0� 
<'pLxL�`�
�p@!pp8O�(h�	���o���o���o�o�$�#%�L0 @ P ` p � � � � � � � � !! !P�L'�0�2�% %GCC: (GNU) 13.3.0�| ��- %s;�%dE&�R')\ P8a�L`i�0n�2,r�}`$�$��$�pP�xL�%�pLr��4��L�208OF`P]z� �hP9 P��`PF�<'�]� 7PD\p P�0�xP=0$&��`P���@"���L9J`PV p!`P�"�
 �XPabi-note.c__abi_taginit.cpcprofiledump.cprint_versionmore_helpread_exactlyparse_optargpoptionsargs_doccrtstuff.cderegister_tm_clones__do_global_dtors_auxcompleted.0__do_global_dtors_aux_fini_array_entryframe_dummy__frame_dummy_init_array_entry__FRAME_END___DYNAMIC__GNU_EH_FRAME_HDR_GLOBAL_OFFSET_TABLE___progname@GLIBC_2.2.5__libc_start_main@GLIBC_2.34__errno_location@GLIBC_2.2.5_ITM_deregisterTMCloneTablestdout@GLIBC_2.2.5textdomain@GLIBC_2.2.5_edata_finisetbuf@GLIBC_2.2.5close@GLIBC_2.2.5read@GLIBC_2.2.5argp_parse@GLIBC_2.2.5__data_start__dcgettext@GLIBC_2.2.5fprintf@GLIBC_2.2.5__gmon_start____dso_handle_IO_stdin_used_endargp_help@GLIBC_2.2.5__bss_startasprintf@GLIBC_2.2.5setlocale@GLIBC_2.2.5mainopen64@GLIBC_2.2.5error@GLIBC_2.2.5_libc_intl_domainname@GLIBC_2.2.5exit@GLIBC_2.2.5__TMC_END___ITM_registerTMCloneTableprogram_invocation_short_name@GLIBC_2.2.5__cxa_finalize@GLIBC_2.2.5_initargp_program_version_hook.symtab.strtab.shstrtab.interp.note.gnu.property.note.gnu.build-id.note.ABI-tag.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.relr.dyn.init.plt.got.plt.sec.text.fini.rodata.eh_frame_hdr.eh_frame.init_array.fini_array.data.rel.ro.dynamic.data.bss.comment#@6XX$I|| W��8]���e``�m���o��6z���oP�hh��B((�����  �    �0!0!�@!@!�@"@"��<'<'
�00� ��2�2T� 3 3h�pLp<�xLx<�L�<e �L�<P�8O8?�P@` `P`@$0`@x@	�F�eJ-
pcprofiledump (21,465 bytes)   

Bun

2025-04-09 08:06

reporter   ~0004210

My friend just tried on his ubuntu machine with version 5.45, that doesn't show this behavior. Might be an issue with my local machine

Issue History

Date Modified Username Field Change
2025-04-09 07:22 Bun New Issue
2025-04-09 07:22 Bun File Added: pcprofiledump
2025-04-09 08:06 Bun Note Added: 0004210