Add 436413 Warn about realloc of size zero to NEWS
[valgrind.git] / docs / internals / 3_11_BUGSTATUS.txt
blob68e404265d47cb77a77323a81b80bb2debdf9a39
2 Created Mon 9 Nov 21:30:57 CET 2015.  All new bugs after the release
3 of 3.11.0 go in here.  Bugs that didn't get fixed in 3.11.0 remain in
4 3_10_BUGSTATUS.txt.
6 === VEX/amd64 ==========================================================
8 356715  vex amd64->IR: 0xC4 0xE2 0x7D 0x13 0x4 0x4A 0xC5 0xFC
9         vcvtph2ps (%rdx,%rcx,2),%ymm0
11 360415  amd64 instructions ADCX and ADOX are not implemented in VEX
12         [has patch, could possibly take it, but needs cleanup/verification]
14 367543  bt/btc/btr/bts x86/x86_64 instructions are poorly-handled wrt flags
15         [Z flag behaviour is wrong]
17 AMD XOP-prefixed insns:
19 356611  vex amd64->IR: 0x8F 0xEA 0xF8 0x10 0xC9 0x3 0x1D 0x0
20         [== 328357, still open]
22 339596  vex amd64->IR: 0x8F 0xE8 0x78 0xCD 0xC1 0x4 0xC5 0xF9
23         [AMD XOP/FMA support]
24         == 356138
26 === VEX/arm ============================================================
28 352630  valgrind: Unrecognised instruction at address 0x4fc4d33.
29         [what insn is this?]
31 355526  disInstr(arm): unhandled instruction: 0x1823E91
32         [what insn is this?]
34 n-i-bz  Remove limit on strd's negative immediates
35         [dev@, Michael Daniels, 19 Nov 2015, easy fix, should land]
37 362934  [AsusWRT] Arm v7 illegal instruction
38         [unclear what this is; a SIGILL on generated code]
40 === VEX/arm64 ==========================================================
42 === VEX/x86 ============================================================
44 === VEX/mips ===========================================================
46 === VEX/ppc ============================================================
48 361405  disInstr(ppc): unhandled instruction: 0xFF81010C
50 === VEX/s390x ==========================================================
52 366413  s390x: New z13 instructions not implemented
53         [Per cborntraeger, is not important for 3.12.0]
55 === VEX general ========================================================
57 === Syscalls/ioctls on Linux ===========================================
59 348616  Wine/valgrind: Warning: noted but unhandled ioctl 0x5390 with
60         no size/direction hints. (DVD_READ_STRUCT) 
61 352742  Custom allocator using sbrk() fails after about 800MB when running
62         under memcheck
63 352767  Wine/valgrind: Warning: noted but unhandled ioctl 0x5307 with
64         no size/direction hints. (CDROMSTOP)
65 355803  Add Lustre's IOC_MDC_GETFILESTRIPE ioctl [has patch]
66 357781  unhandled amd64-linux syscall: 317
67         [== 345414, still open]
68 358620  WARNING: unhandled syscall: 357
69         [arm32, 3.7.0, also an unhandled insn]
70 359705  memcheck causes segfault on a dynamically-linked test from
71         rustlang's test suite on i686
72 360429  Warning: noted but unhandled ioctl 0x530d with no size/direction hints.
73         (has patch, should take)
74 361726  WARNING:unhandled syscall on ppc64
75 361770  Missing F_ADD_SEALS
76 362892  test apk in android5.0.2,after fix the bug 344802,android log
77         "Unable to create protected region in stack for implicit overflow 
78         check. Reason: Out of memory size:  4096"
79 362939  test apk in android 5.0 or most,at 0x6A23AB4:
80         art::Thread::InstallImplicitProtection() (in /system/lib/libart.so)
81         [initimg problems on Android]
82 364359  Valgrind crashes on fcntl(F_SETFL, O_NONBLOCK, fd)
83 367942  Segfault vgPlain_do_sys_sigaction (m_signals.c:1138)
84 368791  unhandled syscall: 167 (swapon, amd64-linux)
85         (should fix this for 3.12.1)
87 === Syscalls/ioctls on OSX =============================================
89 351632  UNKNOWN fcntl 97 on OS X 10.11
90 352021  Signals are ignored in OS X 10.10
91 353346  WARNING: unhandled amd64-darwin syscall: unix:330
92         == 211362 [not fixed]
94 === Debuginfo reader ===================================================
96 353192  Debug info/data section not detected on AMD64
97         [To do with rwx, combined code+data sections]
99 355197  Too strong assert in variable debug info code
100         [Still relevant?]
102 365750  Valgrind fails on binary with .text section not in default place
103         [Horrible hack to do with relocating .text section]
105 === Tools/Memcheck =====================================================
107 352364  ppc64: --expensive-definedness-checks=yes is not quite working here
108 353282  False uninitialised memory after bittwiddling
109 358980  32 byte leak reported when code uses dlopen and links against pthread
110 361504  dlopen()/dlclose() and shared object usage check [wishlist]
111 361810  valgrind duplicate stdin after fork
112 364279  False "Uninitialized" on atomic_compare_exchange
113 366035  valgrind misses buffer overflow, segfaults in malloc in localtime
114 366817  VALGRIND_MEMPOOL_CHANGE has a performance bug
115 368507  valgrind throws std::bad_alloc on memory allocations larger than 34255421416 bytes
116         (increase usable address space post release, on trunk)
118 === Tools/DRD ==========================================================
120 356374  Assertion 'DRD_(g_threadinfo)[tid].pt_threadid
121         != INVALID_POSIX_THREADID' failed
123 === Tools/Helgrind =====================================================
125 358213  helgrind bar_bad testcase hangs
126         with new glibc pthread barrier implementation
127         [Also DRD is affected]
128 360557  helgrind reports data race which I can't see (involves rwlocks)
129         [probably a legit bug]
130 363740  Possible data race in vgPlain_amd64_linux_REDIR_FOR_vgettimeofday
132 === Tools/SGCheck ======================================================
134 === Tools/Massif =======================================================
136 === Tools/Cachegrind ===================================================
138 === Tools/Callgrind ====================================================
140 356675  callgrind test apk in android 5.0.2
141         [Unclear what this is.  Might also be ARM or Android specific]
143 === Tools/Lackey =======================================================
145 === other/x86 ==========================================================
147 === other/mips =========================================================
149 === other/ppc ==========================================================
151 365208  valgrind stuck after redirecting "memcpy"
153 === other/arm ==========================================================
155 364533  Process terminating with default action of signal 4 (SIGILL): dumping
156         core, : at 0x4000E7C: ??? (in /lib/ld-uClibc.so.0)
158 368529  Android arm target link error, missing atexit and pthread_atfork
159         (should take patch)
161 === other/arm64 ========================================================
163 === other/s390 =========================================================
165 === other/tilegx =======================================================
167 === other/Android ======================================================
169 === other/OS X =========================================================
171 351855  Possible false positive on OS X with setlocale
172 352384  mmap-FIXED failed in UME (load_segment2)
173 352567  Assertion tres.status == VexTransOK failed in m_translate.c
174         vgPlain_translate
175 353470  memcheck/tests/execve2 fails on OS X 10.11
176 353471  memcheck/tests/x86/xor-undef-x86 fails on OS X 10.11
177 354428  Bad report memory leak in OS X 10.11
178         == 258140 [still open]
179 354809  Error message for unsupported platform is unhelpful
180 356122  Apparent infinite loop calling GLib g_get_user_special_dir() function
181 359264  Memcheck shows 2,064 bytes possibly lost and 20,036 suppressed bytes
182         in simplistic program on OS X El Capitan
183 363123  SIGSEGV on Mac OS with very simple threaded code
184         == 349128 [still open]
186 365327  Support macOS Sierra (10.12)
187 366131  Illegal opcode in OS X 11.0 when using function getpwuid()
189 === other/Win32 ========================================================
191 === GDB server =========================================================
193 351792  vgdb doesn't support remote file transfers
194 356174  Enhance the embedded gdbserver to allow LLDB to use it
196 === Output =============================================================
198 351857  confusing error message about valid command line option
199 352395  Please provide SVN revision info in --version
200 358569  Unhandled instructions cause creation of "orphan" stack traces
201         in XML output
203 === MPI ================================================================
205 === Documentation ======================================================
207 === Uncategorised/run ==================================================
209 356457  valgrind: m_mallocfree.c:2042 (vgPlain_arena_free):
210         Assertion 'blockSane(a, b)' failed.
211         [Possible V memory corruption?]
212 359249  valgrind unable to load 64-bit linux executable
213         linked with -mcmodel=medium
214 362223  valgrind: m_commandline.c:79 (read_dot_valgrindrc):
215         Assertion 'n >= 0 && n <= stat_buf.size+1' failed.
216 362680  --error-exitcode not honored when file descriptor leaks are found
218 === Uncategorised/build ================================================
220 358697  valgrind.h: Some code remains even when defining NVALGRIND
221         (we should fix this)
222 359202  Add musl libc configure/compile
223 359920  Configure fails with relative DESTDIR
224 362033  undeclared identifier build failures for getpid(), usleep(),
225         and getuid() [Valkyrie]
226 366345  Dirty compile from m_libcbase.c and vgdb-invoker-ptrace.c
228 === Intel Compiler problems ============================================
230 357010  drd regression tests fail to compile with Intel compiler
231 357011  Memcheck regression tests do not generate expected frame numbers
232         if compiled with intel compiler
233 357012  Memcheck regression tests do not match expected results
234         if compiled with intel compiler
235 357014  Helgrind regression tests do not match expected results
236         if compiled with intel compiler
238 ========================================================================
239 ========================================================================
240 ========================================================================
241 ========================================================================
242 ========================================================================
244 Thu 15 Sep 12:55:21 CEST 2016
246 368863  WARNING: unhandled arm64-linux syscall: 100
247 368864  WARNING: unhandled arm64-linux syscall: 262
248 368865  WARNING: unhandled arm64-linux syscall: 272
249 368866  WARNING: unhandled arm64-linux syscall: 238
250 368868  disInstr(arm64): unhandled instruction 0xD53BE000 = cntfrq_el0 (ARMv8)
251         (should fix this for 3.12.1)
252 368873  Please add FreeBSD to supported OS list
253 368913  WARNING: unhandled arm64-linux syscall: 117
254 368914  WARNING: unhandled arm64-linux syscall: 142
255 368916  WARNING: unhandled arm64-linux syscall: 234
256 368917  WARNING: unhandled arm64-linux syscall: 218
257 368918  WARNING: unhandled arm64-linux syscall: 127
258 368919  WARNING: unhandled arm64-linux syscall: 274
259 368920  WARNING: unhandled arm64-linux syscall: 275
260 368921  WARNING: unhandled arm64-linux syscall: 162
261 368922  WARNING: unhandled arm64-linux syscall: 161
262 368923  WARNING: unhandled arm64-linux syscall: 268
263 368924  WARNING: unhandled arm64-linux syscall: 84
264 368925  WARNING: unhandled arm64-linux syscall: 130
265 368926  WARNING: unhandled arm64-linux syscall: 97
266 368960  WARNING: unhandled amd64-linux syscall: 163
267 369026  WARNING: unhandled amd64-linux syscall: 169
268 369027  WARNING: unhandled amd64-linux syscall: 216 (remap_file_pages)
269 369028  WARNING: unhandled amd64-linux syscall: 314 (sched_setattr)
270 369029  WARNING: unhandled amd64-linux syscall: 315 (sched_getattr)
271 369030  WARNING: unhandled amd64-linux syscall: 171 (setdomainname)
272 369031  WARNING: unhandled amd64-linux syscall: 308 (setns)
273 369032  WARNING: unhandled amd64-linux syscall: 205 (set_thread_area)
274 369033  WARNING: unhandled amd64-linux syscall: 139 (sysfs)
275 369034  WARNING: unhandled amd64-linux syscall: 136 (ustat)
276 369053  AMD64 fma4 instructions missing 256 bit support
278 369409  null pointer dereference  in vgPlain_do_syscall
279         possibly a dup of (fixed) 353370
281 369456  callgrind_control failed to find an active callgrind run.
282         OSX specific
284 369459  valgrind on arm64 violates the ARMv8 spec (ldxr/stxr)
286 369509  ARMv8.1 LSE instructions are not supported
287 369723  __builtin_longjmp not supported in clang/llvm on Android arm64 target
288         Has patch
290 369854  Valgrind reports an Invalid Read in __intel_new_memcpy
291         Should be handled by --partial-loads-ok=yes
293 370028  Reduce the number of compiler warnings on MIPS platforms
294 370635  arm64 missing syscall getcpu
295         (should fix this for 3.12.1)
297 371065  www: add CfP for FOSDEM 2017 in valgrind.org NEWS section
299 Wed 19 Oct 17:07:42 CEST 2016
301 344139  x86 stack-seg overrides, needed by the Wine people
303 ========================================================================
304 ========================================================================
307 3_12_BRANCH: vex 3250  is a copy of trunk 3249
308              val 15963 is a copy of trunk 15962
310 3.12.0.BETA1 is 3_12_BRANCHes at 15973/3250.
312 MERGED (trunk -> 3_12_BRANCH unless otherwise indicated):
314 15966 -> 15967 a missing helgrind test file
315 15968 -> 15969 Add none/tests/ppc64/ppc64_helpers.h to noinst_HEADERS.
316 15970 -> 15972 fix for bugzilla 361253  [s390x]
317 15971 -> 15973 Add feature check for tests that use -march=armv8-a+crc.
318 15975 -> 16007 Avoid unused variable warning.
319 15976 -> 16071 Prelim support for macOS Sierra (10.12).
320                Partial fix for #365327.
321 15977 -> 16008 ppcBE, fix the expected output file for
322                none/tests/ppc64/jm_int_isa_2_07.stdout.exp
323 15978 -> 16009 Use proper compiler flags on Solaris for fma4 test.
324 15979 -> 16010 Fix expected error output of drd/tests/bar_bad* on Solaris.
325 15980 -> 16009 Fix none/tests/amd64/Makefile.am typo s/AM_CFKAGS/AM_CFLAGS/
326 15981 -> 16016 Add ioctl wrapper for MNTIOC_GETEXTMNTENT.
327 15982 -> 16011 Fix #361615 - Inconsistent termination for multithreaded process
328                terminated by signal
329 15983 -> 16011 Fix warning introduced by revision 15982
330 15984 -> 16012 Added meta mempool support into memcheck  Fixes BZ#367995
331 15985 -> 16012 Fix test so that leaked bytes is the same in 32 and 64 bits
332 15986 -> 16012 Add an optional 2nd arg to leak-autofreepool to test performance
333 15987 -> 16012 mc-manual.xml: Fix some mismatched open/close tags.
334 15988 -> 16013 Use AM_LDFLAGS instead of LDFLAGS in exp-bbv/tests Makefiles.
335 15989 -> 16014 Don't require the current working directory to exist. #369209.
336 15990 -> 16015 Fix pre_mem_read_sockaddr crash on invalid syscall arguments.
337                Bug #369356.
338 15991 -> 16015 Fix crash in msghdr_foreachfield when iov_len isn't safe to
339                dereference.  #369359
340 15992 -> 16015 Fix crash when old/new sigprocmask isn't safe to dereference.
341                Bug #369360.
342 15993 -> 16015 Fix crash in vmsplice linux kernel wrapper when iovec is bad.
343                Bug #369361.
344 15994 -> 16015 Fix crash in linux [rt_]sigaction wrapper with bad old/new
345                sigaction handler. #369362
346 15995 -> 16015 Fix crash in sys_modify_ldt wrapper on bad ptr. Bug #369383.
347 15996 -> 16015 linux-x86 check get/set_thread_area pointer before use.
348                Bug #369402.
349 15997 -> 16015 Don't check bad iovec array in process_vm_readv/writev.
350                Bug #369441.
351 15998 -> 16015 Don't crash, but warn and return EINVAL on unknown fcntl command.
352 15999 -> 16017 Replace --wait-for-gdb=yes memory loop by a call to VG_(poll)
353                (5000 milliseconds)
354 16000 -> 16017 Well, 5 seconds is too short for me to type a attach pid command
355                so increase to 8 seconds.
356 3251  -> 3254  Fix for clean helpers on BE
357 3252  -> 3255  Fix rounding mode check and instruction stxvl
358 16001 -> 16019 mips32: test for syscalls prctl(GET/SET_FP_MODE)
360 16002 Update svn:ignore list
362 3253  -> 3256  mips64: support for fp32 mode
363 16003 -> 16020 mips64: support for prctl(GET/SET_FP_MODE) syscalls
364 16004 -> 16021 mips64: support for prctl(GET/SET_FP_MODE) syscalls
366 16005 mips: update svn:ignore list
368 16006 -> 16022 dhat: add "tot-blocks-allocd" metric
369 16018 -> 16047 mips: replace use of (d)addi with (d)addiu
370 3257  -> 3264  Relax the overly-restrictive implementation of (T3) SUB{S}.W Rd,
371                SP, Rm, {shift}.  #354274
373 16023  Update 3_11_BUGSTATUS.txt
375 16024 -> 16048 Fix n-i-bz bug in auto free pool: a block using the last byte
376                of the meta pool was not auto-freed.
377 16025 -> 16049 Add a warning to the get/set_thread_area wrapper
378                for bad info pointers.
379 3258  -> 3265  mips: remove support for mfc0/dmfc0
380 16026 -> 16050 mips32: fix the wrong offset for mmap2()
381 3259  -> 3266  s390: support RISBLG/RISBHG, MVCIN, LDE/LDER
382 16027 -> 16051 s390: support RISBLG/RISBHG, MVCIN, LDE/LDER
383 16028 -> 16052 s390/highword fix compile warning with some compilers
384 16029 -> 16053 actually test high-word by providing the plumbing...
385 16030 -> 16054 fix building the dfp testcase
386 16031 -> 16055 mips32: add pselect6 to the list of supported syscalls
388 3260  -> 3267  ISA 3.0 BE fixes for various new instructions
389 16032 -> 16056 ISA 3.0 BE testsuite fixes
390 16034 -> 16057 Power configure fixes.
391 16035 -> 16058 Update NEWS file for bugzillas 369175 and 370265
392 16037 -> 16059 Fix for missing ISA changes in HW cap stuff needs updating patch
394 16033 -> 16060 Fix some (small) leaks found by self-hosting valgrind
395 16036 -> 16061 Fix corruption introduced by revision 16033
396 16044 -> 16062 Further fixes following fix of leak in 16033
397 16045 -> 16063 Follow up for r16044.  Fix compilation problem on Solaris.
399 16038 -> 16064 mips: clear fcc bits in fcsr after calling printf()
401 3261  -> 3268  mips: allow VEX to be compiled for soft-float
402 16039 -> 16065 mips: allow Valgrind to be compiled for soft-float
404 3262  -> 3269  mips: fix incorrect implementation of luxc1/suxc1 instructions
405 3263  -> 3270  mips64: fix error introduced by r3262
406 16040 -> 16066 mips32: add the test cases for luxc1/suxc1 instructions
408 16041 -> 16067 fix 369468 Remove quadratic metapool alg.
409                using VG_(HT_remove_at_Iter)(VgHashTable *table)
410 16042 -> 16068 Clarify name and description/manual for meta mempool
411 16043 -> 16069 Introduce leak-pool-3.* back into EXTRA_DIST as they are not
412                related to leak-autofreepool tests.  This is a follow up
413                fix for r16042.
415 3271  -> 3277  Fix PPC BE in 32-bit mode (Iop_CmpXX64 not supported)
416 16072 -> 16082 Fix PPC BE in 32-bit mode (Iop_CmpXX64 not supported)
417 16073 -> 16083 Add --ignore-range-below-sp=<offset>-<offset>
418 16074 -> 16084 Fix run_a_thread_NORETURN assembly code typo for VGP_arm64_linux
419 16075 -> 16085 x86_linux asm _start functions do not keep 16-byte aligned %esp.
420 3272  -> 3278  Fix incorrect register-number constraint check for LDAEX{,B,H,D}
421 3273  -> 3279  Fix two cases of PPCAvFpOp vs PPCFpOp enum confusion.
422 3274  -> 3280  Accept redundant REX prefixes for {minsd,maxsd} m128, xmm.
423 3275  -> 3281  CVTPI2PS: Only switch to MMX mode if the source is a MMX reg
424 16077 -> 16086 Add support for Linux perf-events ioctls.
425 16078 -> 16087 "You need libc6-dbg" help message could be more helpful.
426 3276  -> 3282  Allow early wback of SP base register in "strd rD, [sp, #-16]"
427 16079 -> 16088 Update memcheck/tests/ppc64/power_ISA2_05.vgtest
428 16080 -> 16089 mips: fix coredump creation in Valgrind
429 16081 -> 16090 Add another incompatibility between illumos and Solaris kernels.
431 16095 (B) -> 16099 (T) Build fixes for MacOS X 10.10.5.
433 (tracked up to and including 16098/3282)
434 3.12.0 final is 16098/3282.
436 ========================================================================
437 ========================================================================