Re: Help needed in deciphering strace Output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Don, 2008-06-05 at 17:29 +0530, Peerless Deepak wrote:
> Hello All,
> 
> I am running a snmp application and it gets crashed even before it
> gets loaded in to the memory.

Probably not as this is a prerequisite to actually run the application.

> I am pasting below the last few lines of strace output if had thrown.
> 
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
> 01d000
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
> 01e000
> syscall_983045(0x4001dab0, 0x4001dab0, 0x4001e188, 0x40023000, 0x40, 0x40023000,
>  0, 0x44, 0xffff57c8, 0x400236e0, 0x40022fbc, 0xbec4da68, 0, 0xbec4d6f8, 0xfffff
> ff8, 0x40001888, 0x20000010, 0x4001dab0, 0xc4e0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
> , 0, 0) = 0
> mprotect(0x40342000, 4096, PROT_READ)   = 0
> mprotect(0x40333000, 4096, PROT_READ)   = 0
> mprotect(0x401be000, 204800, PROT_READ|PROT_WRITE) = 0
> mprotect(0x401be000, 204800, PROT_READ|PROT_EXEC) = 0
> mprotect(0x401ba000, 4096, PROT_READ)   = 0
> mprotect(0x40022000, 4096, PROT_READ)   = 0
> set_tid_address(0x4001d6a8)             = 826
> rt_sigaction(SIGRTMIN, {0x401a56ec, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0
> rt_sigaction(SIGRT_1, {0x401a55cc, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8
> ) = 0
> rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
> getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++

You probably use an uninitialized pointer.

> Process 826 detached
>
> Can you assist me in finding the mishap guys.

- Produce a core dump and see with gdb where it breaks.
- Run it under "ltrace" and follow the library routines to find the
interesting place in your source.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux