jemalloc / jemalloc/jemalloc

dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules(Install version larger than 4.1.1 in centos6.8)

Open
#627 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.2k
Forks
1.6k
Avg merge
4d 8h
Merged PRs (30d)
13

Description

Big god, i am a novice, this hint, is there an impact?

In file included from include/jemalloc/internal/jemalloc_internal_decls.h:32,
from include/jemalloc/internal/jemalloc_internal.h:5,
from src/jemalloc.c:2:
/usr/include/stdlib.h: 在函数‘realloc’中:
src/jemalloc.c:1912: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1913: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1913: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1912: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1873: 附注:initialized from here
src/jemalloc.c:1504: 附注:initialized from here
src/jemalloc.c:1504: 附注:initialized from here
/usr/include/stdlib.h: 在函数‘calloc’中:
src/jemalloc.c:1541: 警告:dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules
src/jemalloc.c:1504: 附注:initialized from here
src/jemalloc.c:1541: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1504: 附注:initialized from here
In file included from include/jemalloc/internal/jemalloc_internal_decls.h:32,
from include/jemalloc/internal/jemalloc_internal.h:5,
from src/jemalloc.c:2:
/usr/include/stdlib.h: 在函数‘realloc’中:
src/jemalloc.c:1912: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1913: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1913: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1912: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1873: 附注:initialized from here
src/jemalloc.c:1504: 附注:initialized from here
src/jemalloc.c:1504: 附注:initialized from here
/usr/include/stdlib.h: 在函数‘malloc’中:
src/jemalloc.c:1541: 警告:dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules
src/jemalloc.c:1504: 附注:initialized from here
src/jemalloc.c:1541: 警告:dereferencing pointer ‘tsdn’ does break strict-aliasing rules
src/jemalloc.c:1504: 附注:initialized from here
/usr/include/stdlib.h: 在函数‘calloc’中:
src/jemalloc.c:1541: 警告:dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules
src/jemalloc.c:1504: 附注:initialized from here
src/jemalloc.c: 在函数‘mallocx’中:
src/jemalloc.c:1541: 警告:dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules

Big god, i am a novice, this hint, is there an impact?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/jemalloc.c at lines 1504, 1541, 1873, and 1912-1913, then reproduce the compiler warnings on CentOS 6.8. Determine whether the strict-aliasing warnings indicate incorrect behavior or only a compiler diagnostic, and document or address the confirmed impact.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.