Bug 237723 - sysno == 101 exp-ptrcheck: the 'impossible' happened: unhandled syscall
Summary: sysno == 101 exp-ptrcheck: the 'impossible' happened: unhandled syscall
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: sgcheck (show other bugs)
Version: 3.5.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-15 16:02 UTC by Andrey
Modified: 2012-08-10 14:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2010-05-15 16:02:37 UTC
Linux abzMedia 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686 i686 i386 GNU/Linux

==29855== exp-ptrcheck, a heap, stack & global array overrun detector
==29855== NOTE: This is an Experimental-Class Valgrind Tool
==29855== Copyright (C) 2003-2009, and GNU GPL'd, by OpenWorks Ltd et al.
==29855== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==29855== Command: ./slot003_casual
==29855==
--29855-- Valgrind options:
--29855--    --tool=exp-ptrcheck
--29855--    -v
--29855-- Contents of /proc/version:
--29855--   Linux version 2.6.22.5-31-default (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux)) #1 SMP 2007/09/21 22:29:00 UTC
--29855-- Arch and hwcaps: X86, x86-sse1-sse2
--29855-- Page sizes: currently 4096, max supported 4096
--29855-- Valgrind library directory: /usr/local/lib/valgrind
--29855-- Reading syms from /lib/ld-2.6.1.so (0x4000000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /home/abz/work/slot/slot003/src/slot003_casual (0x8048000)
--29855-- warning: addVar: unknown size (s)
--29855-- warning: addVar: unknown size (fileOut)
--29855-- warning: addVar: unknown size (fileTest)
--29855-- warning: addVar: unknown size (UniConf)
--29855-- warning: addVar: unknown size (doc)
--29855-- warning: addVar: unknown size (s)
--29855-- warning: addVar: unknown size (rc)
--29855-- warning: addVar: unknown size (client)
--29855-- warning: addVar: unknown size (actionDesc_Hide)
--29855-- warning: addVar: unknown size (actionDesc_AlphaGet)
--29855-- Reading syms from /usr/local/lib/valgrind/exp-ptrcheck-x86-linux (0x38000000)
--29855--    object doesn't have a dynamic symbol table
--29855-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
--29855-- Reading syms from /usr/local/lib/valgrind/vgpreload_core-x86-linux.so (0x401d000)
--29855-- Reading syms from /usr/local/lib/valgrind/vgpreload_exp-ptrcheck-x86-linux.so (0x4020000)
--29855-- Reading syms from /usr/lib/libNxCharacter.so.1 (0x4048000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libPhysXCore.so.1 (0x4054000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libPhysXLoader.so.1 (0x4314000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libssl.so.0.9.8 (0x431f000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libGL.so.169.09 (0x4363000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libGLU.so.1.3.070001 (0x4407000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libSDL-1.2.so.0.11.1 (0x4481000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libSDL_image-1.2.so.0.1.5 (0x4515000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libSDL_mixer-1.2.so.0.2.6 (0x4531000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libSDL_ttf-2.0.so.0.6.3 (0x457b000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libSDL_net-1.2.so.0.0.7 (0x4582000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libSDL_gfx.so.0.0.16 (0x4587000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libusb-0.1.so.4.4.4 (0x459c000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libstdc++.so.6.0.9 (0x45a5000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /lib/libm-2.6.1.so (0x4693000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /lib/libgcc_s.so.1 (0x46b8000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /lib/libc-2.6.1.so (0x46c5000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libcrypto.so.0.9.8 (0x47f8000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /lib/libz.so.1.2.3 (0x493e000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /lib/libpthread-2.6.1.so (0x4951000)
--29855-- Reading syms from /lib/libdl-2.6.1.so (0x4968000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libGLcore.so.169.09 (0x496d000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/tls/libnvidia-tls.so.169.09 (0x5483000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x5485000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libX11.so.6.2.0 (0x5494000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libaa.so.1.0.4 (0x55af000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libmikmod.so.2.0.4 (0x55cb000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libaudiofile.so.0.0.2 (0x5616000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libfreetype.so.6.3.16 (0x5639000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x56a8000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libxcb-xlib.so.0.0.0 (0x56ac000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libxcb.so.1.0.0 (0x56b0000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /lib/libncurses.so.5.6 (0x56c9000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libgpm.so.1.19.0 (0x56fe000)
--29855--    object doesn't have a symbol table
--29855-- REDIR: 0x47336b0 (memcpy) redirected to 0x4023290 (memcpy)
--29855-- REDIR: 0x4731f40 (strlen) redirected to 0x40230f0 (strlen)
--29855-- REDIR: 0x472ec70 (malloc) redirected to 0x402241e (malloc)
--29855-- REDIR: 0x472d0f0 (free) redirected to 0x4022038 (free)
--29855-- REDIR: 0x472e960 (calloc) redirected to 0x402172e (calloc)
--29855-- REDIR: 0x465f320 (operator new(unsigned int)) redirected to 0x4022be9 (operator new(unsigned int))
--29855-- REDIR: 0x465da40 (operator delete(void*)) redirected to 0x4021d4f (operator delete(void*))
--29855-- REDIR: 0x4731a00 (strcmp) redirected to 0x4023170 (strcmp)
create service pages
--29855-- REDIR: 0x472f0a0 (realloc) redirected to 0x40224cd (realloc)
--29855-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x4029000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libXrandr.so.2.1.0 (0x4032000)
--29855--    object doesn't have a symbol table
--29855-- REDIR: 0x47333b0 (stpcpy) redirected to 0x40234a0 (stpcpy)
--29855-- Discarding syms at 0x40332e0-0x4036f74 in /usr/lib/libXrandr.so.2.1.0 due to munmap()
--29855-- Discarding syms at 0x402a4f0-0x402fe84 in /usr/lib/libXrender.so.1.3.0 due to munmap()
--29855-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x4029000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libXrandr.so.2.1.0 (0x4032000)
--29855--    object doesn't have a symbol table
--29855-- REDIR: 0x4731ff0 (strnlen) redirected to 0x40230c0 (strnlen)
--29855-- Reading syms from /usr/lib/libXcursor.so.1.0.2 (0x7c7b000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libXfixes.so.3.1.0 (0x7c85000)
--29855--    object doesn't have a symbol table
--29855-- Reading syms from /usr/lib/libasound.so.2.0.0 (0x7c8b000)
--29855--    object doesn't have a symbol table
CRitzioBoard::Cheshire::open : Can't open device file at /dev/ioboard
==29855== Thread 5:
==29855== Invalid read of size 4
==29855==    at 0x43AB0B5: ??? (in /usr/lib/libGL.so.169.09)
==29855==  Address 0x7c5900c is not derived from any known block
==29855==
==29855== Invalid read of size 1
==29855==    at 0x43A260A: ??? (in /usr/lib/libGL.so.169.09)
==29855==  Address 0x7c59005 is not derived from any known block
==29855==
Lmp_Serv_Init : Can't init CLampServ! Error: CUsbLcd::CUsbLcd : Can't open device file!
sysno == 101
exp-ptrcheck: the 'impossible' happened:
   unhandled syscall
==29855==    at 0x38014EBD: report_and_quit (m_libcassert.c:145)
==29855==    by 0x38014F9B: panic (m_libcassert.c:227)
==29855==    by 0x38014FE7: vgPlain_tool_panic (m_libcassert.c:242)
==29855==    by 0x38002709: h_post_syscall (h_main.c:2536)
==29855==    by 0x38055D4C: vgPlain_post_syscall (syswrap-main.c:1675)
==29855==    by 0x38056C6E: vgPlain_client_syscall (syswrap-main.c:1576)
==29855==    by 0x38053911: vgPlain_scheduler (scheduler.c:872)
==29855==    by 0x3807D058: run_a_thread_NORETURN (syswrap-linux.c:91)
==29855==    by 0x3807D322: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:214)
==29855==    by 0x38083778: ??? (in /usr/local/lib/valgrind/exp-ptrcheck-x86-linux)

sched status:
  running_tid=4

Thread 1: status = VgTs_WaitSys
==29855==    at 0x40007F2: ??? (in /lib/ld-2.6.1.so)
==29855==    by 0x44DE157: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x449051B: SDL_WaitThread (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x80511BD: main (main.cpp:6637)

Thread 2: status = VgTs_WaitSys
==29855==    at 0x40007F2: ??? (in /lib/ld-2.6.1.so)
==29855==    by 0x8051236: SASThread(void*) (main.cpp:6564)
==29855==    by 0x44903DA: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x44DE2DC: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x4956191: start_thread (in /lib/libpthread-2.6.1.so)
==29855==    by 0x478802D: clone (in /lib/libc-2.6.1.so)

Thread 3: status = VgTs_WaitSys
==29855==    at 0x40007F2: ??? (in /lib/ld-2.6.1.so)
==29855==    by 0x805157C: AnimationThread(void*) (main.cpp:6331)
==29855==    by 0x44903DA: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x44DE2DC: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x4956191: start_thread (in /lib/libpthread-2.6.1.so)
==29855==    by 0x478802D: clone (in /lib/libc-2.6.1.so)

Thread 4: status = VgTs_Runnable
==29855==    at 0x40007F2: ??? (in /lib/ld-2.6.1.so)
==29855==    by 0x823C869: Lmp_Serv_Init(unsigned short) (lmp_serv.cpp:60)
==29855==    by 0x805B016: MainThread(void*) (main.cpp:4992)
==29855==    by 0x44903DA: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x44DE2DC: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x4956191: start_thread (in /lib/libpthread-2.6.1.so)
==29855==    by 0x478802D: clone (in /lib/libc-2.6.1.so)

Thread 5: status = VgTs_WaitSys
==29855==    at 0x40007F2: ??? (in /lib/ld-2.6.1.so)
==29855==    by 0x4727F18: _IO_file_fopen (in /lib/libc-2.6.1.so)
==29855==    by 0x471C5BC: ??? (in /lib/libc-2.6.1.so)
==29855==    by 0x471EC1B: fopen64 (in /lib/libc-2.6.1.so)
==29855==    by 0x43D6DD9: ??? (in /usr/lib/libGL.so.169.09)
==29855==    by 0x43D7FCD: ??? (in /usr/lib/libGL.so.169.09)
==29855==    by 0x43D8A9D: ??? (in /usr/lib/libGL.so.169.09)
==29855==    by 0x43CFFC5: ??? (in /usr/lib/libGL.so.169.09)

Thread 6: status = VgTs_WaitSys
==29855==    at 0x40007F2: ??? (in /lib/ld-2.6.1.so)
==29855==    by 0x44E0C70: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x44903DA: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x44DE2DC: ??? (in /usr/lib/libSDL-1.2.so.0.11.1)
==29855==    by 0x4956191: start_thread (in /lib/libpthread-2.6.1.so)
==29855==    by 0x478802D: clone (in /lib/libc-2.6.1.so)
Comment 1 Julian Seward 2010-05-15 16:19:34 UTC
Try the svn trunk, as per
http://www.valgrind.org/downloads/repository.html

It might be fixed there already.
Comment 2 Julian Seward 2010-07-21 13:10:08 UTC
#define __NR_ioperm             101
Comment 3 Julian Seward 2010-07-23 19:10:35 UTC
This might fix it.  Can you try it?

Index: exp-ptrcheck/h_main.c
===================================================================
--- exp-ptrcheck/h_main.c	(revision 11226)
+++ exp-ptrcheck/h_main.c	(working copy)
@@ -2330,6 +2330,7 @@
       ADD(0, __NR_getuid32);
 #     endif
       ADD(0, __NR_getxattr);
+      ADD(0, __NR_ioperm);
       ADD(0, __NR_inotify_add_watch);
       ADD(0, __NR_inotify_init);
 #     if defined(__NR_inotify_init1)
Comment 4 Julian Seward 2010-07-29 07:19:33 UTC
Committed, valgrind r11232.