Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libbacktrace for openSUSE:Factory checked in at 2024-09-19 21:16:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libbacktrace (Old) and /work/SRC/openSUSE:Factory/.libbacktrace.new.29891 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libbacktrace" Thu Sep 19 21:16:46 2024 rev:6 rq:1201777 version:1.0+git20240805 Changes: -------- --- /work/SRC/openSUSE:Factory/libbacktrace/libbacktrace.changes 2024-07-25 11:55:04.172347998 +0200 +++ /work/SRC/openSUSE:Factory/.libbacktrace.new.29891/libbacktrace.changes 2024-09-19 21:16:50.401220792 +0200 @@ -1,0 +2,8 @@ +Wed Sep 18 11:37:52 UTC 2024 - Martin Pluskal <mplus...@suse.com> + +- Update to version 1.0+git20240805: + * libbacktrace: update xcoff.c for base_address changes + * libbacktrace: avoid -Wpointer-arith errors + * libbacktrace: fix syntax of Windows registration functions + +------------------------------------------------------------------- Old: ---- libbacktrace-1.0+git20240718.obscpio New: ---- libbacktrace-1.0+git20240805.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libbacktrace.spec ++++++ --- /var/tmp/diff_new_pack.ZDyzcr/_old 2024-09-19 21:16:51.213254453 +0200 +++ /var/tmp/diff_new_pack.ZDyzcr/_new 2024-09-19 21:16:51.217254618 +0200 @@ -18,7 +18,7 @@ %define soname 0 Name: libbacktrace -Version: 1.0+git20240718 +Version: 1.0+git20240805 Release: 0 Summary: Backtrace C library License: BSD-3-Clause ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.ZDyzcr/_old 2024-09-19 21:16:51.257256277 +0200 +++ /var/tmp/diff_new_pack.ZDyzcr/_new 2024-09-19 21:16:51.261256443 +0200 @@ -1,7 +1,7 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/ianlancetaylor/libbacktrace.git</param> - <param name="changesrevision">7e2b7da3d6568d2e4e78658f22e701746a48d7e1</param> + <param name="changesrevision">86885d14049fab06ef8a33aac51664230ca09200</param> </service> </servicedata> (No newline at EOF) ++++++ libbacktrace-1.0+git20240718.obscpio -> libbacktrace-1.0+git20240805.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/.gitignore new/libbacktrace-1.0+git20240805/.gitignore --- old/libbacktrace-1.0+git20240718/.gitignore 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/.gitignore 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -*~ -*.o -*.lo -*.a -*.la diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/Makefile.am new/libbacktrace-1.0+git20240805/Makefile.am --- old/libbacktrace-1.0+git20240718/Makefile.am 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/Makefile.am 2024-08-06 01:54:56.000000000 +0200 @@ -701,7 +701,8 @@ stest.lo: config.h backtrace.h internal.h state.lo: config.h backtrace.h backtrace-supported.h internal.h unknown.lo: config.h backtrace.h internal.h -xcoff.lo: config.h backtrace.h internal.h +xcoff_32.lo: config.h backtrace.h internal.h +xcoff_64.lo: config.h backtrace.h internal.h xztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h ztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/Makefile.in new/libbacktrace-1.0+git20240805/Makefile.in --- old/libbacktrace-1.0+git20240718/Makefile.in 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/Makefile.in 2024-08-06 01:54:56.000000000 +0200 @@ -2810,7 +2810,8 @@ stest.lo: config.h backtrace.h internal.h state.lo: config.h backtrace.h backtrace-supported.h internal.h unknown.lo: config.h backtrace.h internal.h -xcoff.lo: config.h backtrace.h internal.h +xcoff_32.lo: config.h backtrace.h internal.h +xcoff_64.lo: config.h backtrace.h internal.h xztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h ztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/configure new/libbacktrace-1.0+git20240805/configure --- old/libbacktrace-1.0+git20240718/configure 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/configure 2024-08-06 01:54:56.000000000 +0200 @@ -12056,7 +12056,8 @@ for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wold-style-definition \ -Wmissing-format-attribute -Wcast-qual \ - -Wno-attributes -Wno-unknown-attributes; do + -Wno-attributes -Wno-unknown-attributes \ + -Wpointer-arith; do # Do the check with the no- prefix removed since gcc silently # accepts any -Wno-* option on purpose case $real_option in diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/configure.ac new/libbacktrace-1.0+git20240805/configure.ac --- old/libbacktrace-1.0+git20240718/configure.ac 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/configure.ac 2024-08-06 01:54:56.000000000 +0200 @@ -145,7 +145,8 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ -Wmissing-prototypes -Wold-style-definition \ -Wmissing-format-attribute -Wcast-qual \ - -Wno-attributes -Wno-unknown-attributes], + -Wno-attributes -Wno-unknown-attributes \ + -Wpointer-arith], [WARN_FLAGS]) AC_ARG_ENABLE([werror], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/pecoff.c new/libbacktrace-1.0+git20240805/pecoff.c --- old/libbacktrace-1.0+git20240718/pecoff.c 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/pecoff.c 2024-08-06 01:54:56.000000000 +0200 @@ -83,10 +83,10 @@ #define LDR_DLL_NOTIFICATION_REASON_LOADED 1 typedef LONG NTSTATUS; -typedef VOID CALLBACK (*LDR_DLL_NOTIFICATION)(ULONG, +typedef VOID (CALLBACK *LDR_DLL_NOTIFICATION)(ULONG, struct dll_notification_data*, PVOID); -typedef NTSTATUS NTAPI (*LDR_REGISTER_FUNCTION)(ULONG, +typedef NTSTATUS (NTAPI *LDR_REGISTER_FUNCTION)(ULONG, LDR_DLL_NOTIFICATION, PVOID, PVOID*); #endif @@ -704,7 +704,7 @@ magic_ok = memcmp (magic, "PE\0", 4) == 0; fhdr_off += 4; - memcpy (&fhdr, fhdr_view.data + 4, sizeof fhdr); + memcpy (&fhdr, (const unsigned char *) fhdr_view.data + 4, sizeof fhdr); } else { @@ -738,7 +738,7 @@ sects_view_valid = 1; opt_hdr = (const b_coff_optional_header *) sects_view.data; sects = (const b_coff_section_header *) - (sects_view.data + fhdr.size_of_optional_header); + ((const unsigned char *) sects_view.data + fhdr.size_of_optional_header); is_64 = 0; memset (&image_base, 0, sizeof image_base); @@ -781,7 +781,8 @@ goto fail; syms_view_valid = 1; - str_size = coff_read4 (syms_view.data + syms_size); + str_size = coff_read4 ((const unsigned char *) syms_view.data + + syms_size); str_off = syms_off + syms_size; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libbacktrace-1.0+git20240718/xcoff.c new/libbacktrace-1.0+git20240805/xcoff.c --- old/libbacktrace-1.0+git20240718/xcoff.c 2024-07-18 20:37:33.000000000 +0200 +++ new/libbacktrace-1.0+git20240805/xcoff.c 2024-08-06 01:54:56.000000000 +0200 @@ -385,7 +385,7 @@ size_t linenos_size; uint64_t lnnoptr0; /* Loader address. */ - uintptr_t base_address; + struct libbacktrace_base_address base_address; }; /* Information we gather for the DWARF sections we care about. */ @@ -586,7 +586,7 @@ static int xcoff_initialize_syminfo (struct backtrace_state *state, - uintptr_t base_address, + struct libbacktrace_base_address base_address, const b_xcoff_syment *syms, size_t nsyms, const unsigned char *strtab, size_t strtab_size, backtrace_error_callback error_callback, void *data, @@ -628,7 +628,8 @@ { const b_xcoff_auxent *aux = (const b_xcoff_auxent *) (asym + 1); xcoff_symbols[j].name = xcoff_symname (asym, strtab, strtab_size); - xcoff_symbols[j].address = base_address + asym->n_value; + xcoff_symbols[j].address = + libbacktrace_add_base (asym->n_value, base_address); /* x_fsize will be 0 if there is no debug information. */ xcoff_symbols[j].size = aux->x_fcn.x_fsize; ++j; @@ -766,7 +767,8 @@ lineno = (const b_xcoff_lineno *) lineptr; if (lineno->l_lnno == 0) break; - if (pc <= fdata->base_address + lineno->l_addr.l_paddr) + if (pc <= libbacktrace_add_base (lineno->l_addr.l_paddr, + fdata->base_address)) break; match = lnnoptr; lnno = lineno->l_lnno; @@ -860,7 +862,7 @@ static int xcoff_initialize_fileline (struct backtrace_state *state, - uintptr_t base_address, + struct libbacktrace_base_address base_address, const b_xcoff_scnhdr *sects, const b_xcoff_syment *syms, size_t nsyms, const unsigned char *strtab, size_t strtab_size, @@ -1001,7 +1003,7 @@ fn->name = xcoff_symname (fsym, strtab, strtab_size); fn->filename = filename; fn->sect_base = sects[fsym->n_scnum - 1].s_paddr; - fn->pc = base_address + fsym->n_value; + fn->pc = libbacktrace_add_base (fsym->n_value, base_address); fn->size = fsize; fn->lnno = lnno; fn->lnnoptr = lnnoptr; @@ -1070,7 +1072,8 @@ static int xcoff_add (struct backtrace_state *state, int descriptor, off_t offset, - uintptr_t base_address, backtrace_error_callback error_callback, + struct libbacktrace_base_address base_address, + backtrace_error_callback error_callback, void *data, fileline *fileline_fn, int *found_sym, int exe) { struct backtrace_view fhdr_view; @@ -1159,9 +1162,9 @@ On AIX, virtual address is either fixed for executable or given by ldinfo. This address will include the XCOFF headers. */ - base_address = ((exe ? XCOFF_AIX_TEXTBASE : base_address) - + stext->s_scnptr - - stext->s_paddr); + base_address.m = ((exe ? XCOFF_AIX_TEXTBASE : base_address.m) + + stext->s_scnptr + - stext->s_paddr); lnnoptr = stext->s_lnnoptr; nlnno = stext->s_nlnno; @@ -1200,7 +1203,9 @@ goto fail; syms_view_valid = 1; - memcpy (&str_size, syms_view.data + syms_size, 4); + memcpy (&str_size, + (const unsigned char *) syms_view.data + syms_size, + 4); str_off = fhdr.f_symptr + syms_size; @@ -1391,9 +1396,9 @@ static int xcoff_armem_add (struct backtrace_state *state, int descriptor, - uintptr_t base_address, const char *member, - backtrace_error_callback error_callback, void *data, - fileline *fileline_fn, int *found_sym) + struct libbacktrace_base_address base_address, + const char *member, backtrace_error_callback error_callback, + void *data, fileline *fileline_fn, int *found_sym) { struct backtrace_view view; b_ar_fl_hdr fl_hdr; @@ -1514,6 +1519,8 @@ ldinfo = (const struct ld_info *) buf; while ((const char *) ldinfo < (const char *) buf + buflen) { + struct libbacktrace_base_address base_address; + if (*ldinfo->ldinfo_filename != '/') goto next; @@ -1525,16 +1532,17 @@ /* Check if it is an archive (member name not empty). */ member = ldinfo->ldinfo_filename + strlen (ldinfo->ldinfo_filename) + 1; + memset (&base_address, 0, sizeof base_address); + base_address.m = (uintptr_t) ldinfo->ldinfo_textorg; if (*member) { - xcoff_armem_add (state, descriptor, - (uintptr_t) ldinfo->ldinfo_textorg, member, + xcoff_armem_add (state, descriptor, base_address, member, error_callback, data, fileline_fn, &lib_found_sym); } else { - xcoff_add (state, descriptor, 0, (uintptr_t) ldinfo->ldinfo_textorg, - error_callback, data, fileline_fn, &lib_found_sym, 0); + xcoff_add (state, descriptor, 0, base_address, error_callback, data, + fileline_fn, &lib_found_sym, 0); } if (lib_found_sym) *found_sym = 1; @@ -1559,12 +1567,14 @@ backtrace_error_callback error_callback, void *data, fileline *fileline_fn) { + struct libbacktrace_base_address zero_base_address; int ret; int found_sym; fileline xcoff_fileline_fn = xcoff_nodebug; - ret = xcoff_add (state, descriptor, 0, 0, error_callback, data, - &xcoff_fileline_fn, &found_sym, 1); + memset (&zero_base_address, 0, sizeof zero_base_address); + ret = xcoff_add (state, descriptor, 0, zero_base_address, + error_callback, data, &xcoff_fileline_fn, &found_sym, 1); if (!ret) return 0; ++++++ libbacktrace.obsinfo ++++++ --- /var/tmp/diff_new_pack.ZDyzcr/_old 2024-09-19 21:16:51.477265397 +0200 +++ /var/tmp/diff_new_pack.ZDyzcr/_new 2024-09-19 21:16:51.481265562 +0200 @@ -1,5 +1,5 @@ name: libbacktrace -version: 1.0+git20240718 -mtime: 1721327853 -commit: 7e2b7da3d6568d2e4e78658f22e701746a48d7e1 +version: 1.0+git20240805 +mtime: 1722902096 +commit: 86885d14049fab06ef8a33aac51664230ca09200