Re: Getting stacktrace for userspace applications on crash(SIGSEGV)

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

 



Hi Rami
Thanks for your reply

I'm asking if I can use kernel to dump a stacktrace for a userspace
app instead of kernel code. I'm trying that as last resource since
gdb, libSegFault and JVM's fatal error log had failed,


Best regards,

2016-09-09 16:16 GMT-03:00 Rami Rosen <roszenrami@xxxxxxxxx>:
> Hi,
> Do u know where in the kernel it crashes and can add dump_stack()
> there and try ? I used dump_stack() in the past many times and it
> worked for me. IIRC, kernel hacking->Kernel debugging was selected in
> my kernekl config, and I did not had to to anything else
>
> Regards,
> Rami Rosen
> http://ramirose.wix.com/ramirosen
>
>
> On 9 September 2016 at 21:21, Daniel. <danielhilst@xxxxxxxxx> wrote:
>> Hi everybody,
>>
>> I'm debugging a library that implement some nasty protocol. This
>> library is used by some JNI library which exports the native library
>> to Java world. By the way I'm running on ARMv7.
>>
>> Well, some times, at random times, that library crashes. The problem
>> is that I can't get stacktrace. Not from JVM's fatal errors logs, not
>> from core dumps, not from libSegFault... I'm using "-g -rdynamic
>> -funwind-tables -mapcs-frame" compiler options but still I can't get a
>> stacktrace. I've tried using glibc backtrace too. What I don't tried
>> yet: libunwind, valgrid and making kernel do the stacktrace. The cool
>> part is that when I ran my library outside from the JVM (with native
>> application) I do get backtraces! [Damn Java]
>>
>> I'm here to ask: Is it possible to make kernel print the stacktrace
>> for some userspace application when it crashes?
>>
>> I saw USER_STACKTRACE_SUPPORT but can't find any help from it's
>> Kconfig. I saw this https://kernelnewbies.org/FAQ/StackTrace and this
>> http://processors.wiki.ti.com/index.php/Enabling_Stack_Dumping_in_Linux_Kernel
>> but can't find "Kernel hacking -> Verbose kernel error messages" even
>> with "Kernel hacking -> Kernel Debuggin" enabled.
>>
>> Any help is appreciated! Thanks !!!
>>
>> --
>> "Do or do not. There is no try"
>>   Yoda Master
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies@xxxxxxxxxxxxxxxxx
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



-- 
"Do or do not. There is no try"
  Yoda Master

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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