https://bugs.kde.org/show_bug.cgi?id=364359
Bug ID: 364359 Summary: Valgrind crashes on fcntl(F_SETFL, O_NONBLOCK, fd) Product: valgrind Version: 3.11.0 Platform: Other OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: memcheck Assignee: jsew...@acm.org Reporter: rob...@gmail.com Running valgrind tests for something I'm working on - valgrind crashes on a fcntl call: FAIL: bash ========== ==27992== Memcheck, a memory error detector ==27992== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==27992== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==27992== Command: /home/ubuntu/slip/tests/.libs/lt-bash ==27992== ..not caught .... valgrind: m_syswrap/syswrap-linux.c:5361 (vgSysWrap_linux_sys_fcntl_before): Assertion 'Unimplemented functionality' failed. valgrind: valgrind host stacktrace: ==27992== at 0x38074022: show_sched_status_wrk (m_libcassert.c:343) ==27992== by 0x380742BA: report_and_quit (m_libcassert.c:415) ==27992== by 0x38074491: vgPlain_assert_fail (m_libcassert.c:481) ==27992== by 0x380D3844: vgSysWrap_linux_sys_fcntl_before (syswrap-linux.c:5361) ==27992== by 0x380B481F: vgPlain_client_syscall (syswrap-main.c:1905) ==27992== by 0x380B1B07: handle_syscall (scheduler.c:1118) ==27992== by 0x380B34E1: vgPlain_scheduler (scheduler.c:1435) ==27992== by 0x380BF941: thread_wrapper (syswrap-linux.c:102) ==27992== by 0x380BF941: run_a_thread_NORETURN (syswrap-linux.c:155) sched status: running_tid=1 Thread 1: status = VgTs_Runnable (lwpid 27992) ==27992== at 0x5ACEB8F: do_fcntl (fcntl.c:39) ==27992== by 0x5ACEB8F: fcntl (fcntl.c:88) ==27992== by 0x5342C1F: bash_system_excl (bash.c:73) ==27992== by 0x4011F9: BashSystemExcl (bash.c:41) ==27992== by 0x401C15: suite (bash.c:101) ==27992== by 0x401D7E: main (bash.c:106) Note: see also the FAQ in the source distribution. It contains workarounds to several common problems. In particular, if Valgrind aborted or crashed after identifying problems in your program, there's a good chance that fixing those problems will prevent Valgrind aborting or crashing, especially if it happened in m_mallocfree.c. If that doesn't help, please report this bug to: www.valgrind.org In the bug report, send all the above text, the valgrind version, and what OS and version you are using. Thanks. FAIL bash (exit status: 1) The relevant line of bash_system_excl:73 is fcntl(F_SETFL, O_NONBLOCK, inPipeFds[0]). Interestingly enough, I do not see any issue with this when I run Valgrind under OS X Homebrew. Running Valgrind on Ubuntu 14.04, Linuxbrew, 3.11.0. -- You are receiving this mail because: You are watching all bug changes.