Thread: Error: No source available for "__kernel_vsyscall() at 0x12d422"

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    3

    Exclamation Error: No source available for "__kernel_vsyscall() at 0x12d422"

    After my program finishes its execution,this piece of information about an error appears on terminal:
    Code:
    *** stack smashing detected ***: ./LL Test File Generator terminated
    ======= Backtrace: =========
    /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x440390]
    /lib/tls/i686/cmov/libc.so.6(+0xe233a)[0x44033a]
    ./LL Test File Generator[0x8048ba0]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x374bd6]
    ./LL Test File Generator[0x8048571]
    ======= Memory map: ========
    0035e000-004b1000 r-xp 00000000 08:07 4850296    /lib/tls/i686/cmov/libc-2.11.1.so
    004b1000-004b2000 ---p 00153000 08:07 4850296    /lib/tls/i686/cmov/libc-2.11.1.so
    004b2000-004b4000 r--p 00153000 08:07 4850296    /lib/tls/i686/cmov/libc-2.11.1.so
    004b4000-004b5000 rw-p 00155000 08:07 4850296    /lib/tls/i686/cmov/libc-2.11.1.so
    004b5000-004b8000 rw-p 00000000 00:00 0 
    00784000-007a1000 r-xp 00000000 08:07 4849748    /lib/libgcc_s.so.1
    007a1000-007a2000 r--p 0001c000 08:07 4849748    /lib/libgcc_s.so.1
    007a2000-007a3000 rw-p 0001d000 08:07 4849748    /lib/libgcc_s.so.1
    00888000-00889000 r-xp 00000000 00:00 0          [vdso]
    00d5d000-00d78000 r-xp 00000000 08:07 4850277    /lib/ld-2.11.1.so
    00d78000-00d79000 r--p 0001a000 08:07 4850277    /lib/ld-2.11.1.so
    00d79000-00d7a000 rw-p 0001b000 08:07 4850277    /lib/ld-2.11.1.so
    08048000-08049000 r-xp 00000000 08:05 11741      /media/MS-Internal-Store/Workspace/LL Test File Generator/Release/LL Test File Generator
    08049000-0804a000 r--p 00000000 08:05 11741      /media/MS-Internal-Store/Workspace/LL Test File Generator/Release/LL Test File Generator
    0804a000-0804b000 rw-p 00001000 08:05 11741      /media/MS-Internal-Store/Workspace/LL Test File Generator/Release/LL Test File Generator
    0804b000-0806a000 rw-p 00000000 00:00 0 
    09609000-0962a000 rw-p 00000000 00:00 0          [heap]
    b771f000-b7720000 rw-p 00000000 00:00 0 
    b7732000-b7735000 rw-p 00000000 00:00 0 
    bfd02000-bfd17000 rw-p 00000000 00:00 0          [stack]
    Aborted
    I also debugged the code nothing seems wrong except after returning "0" to OS this error messege shows up:
    Code:
    No source available for "__kernel_vsyscall() at 0x12d422"
    I have no clue if this has something to do with my code or OS.Any ideas?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well the info you need is in the first line.
    > *** stack smashing detected ***

    You overran some local variable (of main), trashing the stack which would take you back to the OS properly.

    Look carefully at any arrays you have.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    3
    Thanks for your help.Though,I didn't exactly understand it.What do I need to look for?

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by sinansas View Post
    Thanks for your help.Though,I didn't exactly understand it.What do I need to look for?
    Somewhere, you have done something like this:

    Code:
    int main()
    {
        int array[3];
    
        array[0] = 1;
        array[1] = 2;
        array[2] = 3;
        array[3] = 4; /* Whoops, I went off the end */
    
        return 0;
    }
    Look at whatever arrays are declared at the top of main(). Somewhere, your manipulations of those arrays are incorrect.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    3
    Alright,thank you very much!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 10-06-2010, 02:28 PM
  2. Class methods in header or source file?
    By TriKri in forum C++ Programming
    Replies: 13
    Last Post: 09-17-2007, 05:23 AM
  3. Threads to keep the CPU faster than the disk?
    By matthew180 in forum C Programming
    Replies: 4
    Last Post: 06-06-2007, 03:23 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM