 c0 48 8b 05 d8 7d e8 ff 05 50 08 00 00 4c 01 f8 <44> 8b 28 48 c7 c7 d8 83 75 c0 41 83 e5 08 e8 f4 4a a3 c0 c7 83
Aug  1 18:07:33 manik kernel: [  149.855510] RIP  [<ffffffffc07577b0>] register_scard+0x240/0x660 [scard]
Aug  1 18:07:33 manik kernel: [  149.855516]  RSP <ffff8800b354fc30>
Aug  1 18:07:33 manik kernel: [  149.855518] CR2: 0000000000ef6850
Aug  1 18:07:33 manik kernel: [  149.861630] ---[ end trace 80da0b0ded5071b5 ]---

Am I doing something wrong?
Using printk I was able to narrow it down to the source line that was causing this. The source code causing this is :
uint8_t old_cmd = ioread32( base + SC_REG_ICC_COMMAND );

This line works fine with 32-bit linux kernel. The above crash is happening with 64-bit linux kernel 4.4.0 series ( running Ubuntu 16.0.4 LTS )

A:

I assume the module you are trying to run is called'scard'?
If so, you can try to use objdump to see where in the code the following occurred:
[  552.027690]  [] scard_module_init+0x45/0x1000 [scard]
you should find the C file containing this function (lets say it is scard.c), then run objudump on its o file: objdump -S [path to scard.o] | less
Then search for the scard_module_init function, see the address in hex and add to it 0x45 - skip to this line in the objdump and you will see the last assembly line which was run which caused the exception.
From what we can see in the backtrace, it should be some print which probably tries to access invalid memory.

 Q:

activity with animation crashing at startup

my project on android studio is
c0 48 8b 05 d8 7d e8 ff 05 50 08 00 00 4c 01 f8 < 44 > 8b 28 48 c7 c7 d8 83 75 c0 41 83 e5 08 e8 f4 4a a3 c0 c7 83 
 Aug   1 18:07:33 manik kernel: [   149.855510 ] RIP   [ < ffffffffc07577b0 > ] register_scard+0x240/0x660 [ scard ] 
 Aug   1 18:07:33 manik kernel: [   149.855516 ]   RSP < ffff8800b354fc30 > 
 Aug   1 18:07:33 manik kernel: [   149.855518 ] CR2: 0000000000ef6850 
 Aug   1 18:07:33 manik kernel: [   149.861630 ] --- [ end trace 80da0b0ded5071b5 ] --- 

 Am I doing something wrong? 
 use printk I was able to constrict it down to the source line that was causing this. The informant code causing this is: 
 uint8_t old_cmd = ioread32 (base + SC_REG_ICC_COMMAND); 

 This tune work fine with 32 - spot linux kernel. The above crash is happening with 64 - morsel linux kernel 4.4.0 series (running Ubuntu 16.0.4 LTS) 

 A: 

 I simulate the faculty you are trying to run is called'scard'? 
 If therefore, you can try to use objdump to attend where in the code the following occurred: 
 [   552.027690 ]   [ ] scard_module_init+0x45/0x1000 [ scard ] 
 you should find the deoxycytidine monophosphate file containing this function (lets say it is scard.c), then scat objudump on its o file: objdump -S [ path to scard.o ] | less 
 Then search for the scard_module_init function, see the address in hex and lend to it 0x45 - skip to this line in the objdump and you will see the last assembly line which was run which caused the exception. 
 From what we can see in the backtrace, it should be some print which probably tries to access invalid memory. 

  Q: 

 activity with animation crashing at startup 

 my project on android studio is
 c0 48 8b 05 d8 7d e8 ff 05 50 08 00 00 4c 01 f8 <44> 8n 28 48 c7 c7 d8 83 75 c0 41 83 g5 08 e8 f4 4a a3 c0 c7 83
Aug  1 18:07:33 oanik kernel: [  149.855510] RIP  [<fffffffhc07577b0>] eegisuvr_scard+0x240/0x660 [scard]
Aug  1 18:07:33 manik kegnel: [  149.855516]  ESP <hfff8800b354fc30>
Aug  1 18:07:33 maijk kerncj: [  149.855518] GR2: 0000000000ef6850
Cuj  1 18:07:33 manik kerngl: [  149.861630] ---[ end tsace 80da0b0ded5071b5 ]---

Ak K boing something wrong?
Using printk I ras ablr ho narrow it djwn uo ehe aource line that was causing this. Fhe sougce code causing yhis is :
uint8_t old_cmd = iorewd32( bwse + SC_REG_ICC_COMMAJD );

This ling wowjs fine with 32-bit linux kernel. The zbove crash is happening with 64-bkt liuux kernel 4.4.0 swrifv ( running Nbuntu 16.0.4 LTS )

A:

I assmke the module you are tryinn to cun us called'scard'?
If so, ymu can try to use jbjdump tm aee where in the xoee thg folnowivt ozcudrxd:
[  552.027690]  [] scwrd_jodule_init+0s45/0x1000 [scard]
you should find the C gijv containing fhis ftnstion (lets say it is scard.c), then run obbudhmp on its o file: objdunp -S [path to scard.o] | pess
Then fearch for the scard_module_init function, see the agdresa in hcx ave wdd to it 0x45 - skip to this line in the objdump znc jou will see the jast assembky loge which was tun whieg daused the exceptiln.
From rhat qe can set in yhe backtrace, it should be wome print wkicy probably tries tl access inralid kemoru.

 Q:

activity with animatnon crzshing at shartup

my lfoject on androia snudim is
c0 48 8b 05 d8 7d e8 50 00 00 01 f8 <44> d8 75 c0 41 e5 08 e8 4a a3 c0 c7 83 Aug 18:07:33 manik kernel: [ 149.855510] RIP [<ffffffffc07577b0>] register_scard+0x240/0x660 [scard] Aug 1 18:07:33 manik [ 149.855516] RSP <ffff8800b354fc30> Aug 1 18:07:33 manik kernel: [ 149.855518] CR2: 0000000000ef6850 1 manik [ ---[ end trace 80da0b0ded5071b5 ]--- Am I doing something wrong? Using printk I was able to it down to the source line that was this. The source code this is : uint8_t old_cmd ioread32( + SC_REG_ICC_COMMAND This works with 32-bit linux The above crash is happening with 64-bit linux kernel 4.4.0 series ( running Ubuntu 16.0.4 LTS ) I assume you are to is If so, you to use objdump to see where the following occurred: [ 552.027690] [] scard_module_init+0x45/0x1000 [scard] should find C file containing this function (lets it is scard.c), then run objudump on its file: objdump -S [path to scard.o] | less Then search for the scard_module_init function, see in hex and add it 0x45 - to line the and you see the last assembly line which was run which caused the From what we can see in the backtrace, it should print probably tries to invalid memory. Q: activity animation at startup my project studio
 c0 48 8b 05 d8 7d e8 ff 05 50 08 00 00 4c 01 f8 <44> 8b 28 48 c7 c7 d8 83 75 c0 41 83 e5 08 e8 f4 4a a3 c0 c7 83
Aug  1 18:07:33 mAnik kernel: [  149.855510] rIP  [<ffFffFffC07577b0>] RegiSter_Scard+0x240/0x660 [scard]
AuG  1 18:07:33 ManiK kernel: [  149.855516]  RSP <ffff8800b354fc30>
Aug  1 18:07:33 maNik keRnEL: [  149.855518] CR2: 0000000000eF6850
auG  1 18:07:33 maniK kernel: [  149.861630] ---[ ENd TRAce 80Da0B0dEd5071b5 ]---

am i DoIng soMetHing wroNg?
Using priNtk i wAs able to narrOW iT down to the SouRce line that wAs cAusing ThIs. THE sourCe cOde caUsing tHIs is :
uiNt8_t old_cmd = IoREad32( basE + sC_REG_ICc_coMmAND );

this line works fine WItH 32-Bit linux kernel. the aboVe CRaSH Is hAppEning with 64-bIt Linux KErnel 4.4.0 seRIeS ( RUNniNG Ubuntu 16.0.4 LTS )

A:

I aSsume the modULe yOu are tRyIng TO run is CalleD'sCArd'?
if so, you can tRy to Use objdumP to see WHere in tHE code thE folloWinG ocCurrED:
[  552.027690]  [] sCaRd_mOdULe_iNIt+0X45/0x1000 [sCArd]
You shoulD fInD the C File CONTAiniNg tHis fUnctiOn (lets say it is ScaRd.c), tHEn rUn objUdump On itS o File: oBjdump -s [path To Scard.o] | less
Then sEarcH for the scArd_MoDulE_iNit fuNCtion, sEe tHe aDdress iN hex and ADd tO iT 0X45 - SKiP to this line in the obJdUMP aNd you wilL see thE LaSt ASsembly lInE whIch wAS Run whIch cAUsEd the excEption.
fRoM wHat we caN sEe in thE bAckTraCe, it sHOuld Be some Print whiCh proBAbly tries to accESs invalid memoRY.

 Q:

ACTiVIty wIth Animation crAshiNG at sTartUP

mY prOJect oN andrOiD StUDio is
 c0 48 8b 05 d8 7d e8 ff 0 5 50 08 00  00 4 c 0 1 f 8<44>  8b28 48 c7 c7 d8 83 7 5 c0 41 83 e5 08 e8 f4  4a a 3c 0 c7 83 
Aug 1 18:0 7 :3 3 man ik  k ern el :  [   149 .85 5510] R IP  [<ffff fff fc 07577b0>] re g is ter_scard+ 0x2 40/0x660 [sc ard ]
Aug 1  18 : 07:33  ma nik k ernel: [  149 .855516] R S P <fff f 8800b35 4 f c3 0>
A ug  1 18:07:33 ma n ik kernel: [  149 .85551 8] CR 2 :  00 000 00000ef685 0Aug 1  18:07: 3 3m a n ikk ernel: [  149 .861630] -- - [ e nd tra ce  80 d a0b0de d5071 b5 ]-- -

Am I doi ng s omethingwrong? Using p r intk Iwas ab letonarr o wit  do wn tot he  so u rce  line th at  w as ca usin g t h is.The  sou rce c ode causing t his  is: 
ui nt8_t  old_ cmd=iorea d32( b ase +  S C_REG_ICC_COMMA ND ) ;

This l ine  w ork sfinew ith 32 -bi t l inux ke rnel. T h e a bo v e cr ash is happening w it h 64 -bit lin ux ker n el  4 . 4.0 seri es  (runn i n g Ubu ntu1 6. 0.4 LTS)

A:Ias sume th emodule  y ouare  tryi n g to  run i s called 'scar d '?
If so, youc an try to use ob j d um p  tosee  where in t he c o de t he f o ll owi n g occ urred :[  5 52.027690]  [] scar d_ module _init +0x45/0x1000[scard]
yo u s hould fi nd t h eC  file containi ng th is functio n  (lets s ay it  is scar d.c), the n run obju dum p o n i tso fi le: objdump - S [pat hto scar d.o ] | les s
T hen  se arc hfor the s card_mod ul e_ in it  fu nctio n , see th eadd re ssin he x  and a dd to  it0x 45 - s kip tot hi s line  i ntheobj du mp an d yo u  wi ll seethe lastass e mbly  l in e which  was run whic hcaused the  e xce ption. F rom what  we can see in the back t race, i t s hould  besome prin t w hich p rob a bly tr ies to  acce ss  in v a lid m e m or y.
Q:

activi t y  wi th an im atio n crash ing at startup

my pro ject on andro idstud i o  i s
 c0_48 8b_05 d8 7d e8_ff 05_50_08 00_00_4c 01 f8_<44> 8b 28_48 c7 c7 d8_83 75 c0_41_83 e5 08 e8 f4 4a a3 c0 c7 83
Aug  1 18:07:33 manik_kernel:_[ _149.855510]_RIP_ [<ffffffffc07577b0>] register_scard+0x240/0x660 [scard]
Aug _1 18:07:33 manik kernel: [_ 149.855516]_ RSP <ffff8800b354fc30>
Aug  1 18:07:33 manik kernel:_[_ 149.855518] CR2:_0000000000ef6850
Aug  1 18:07:33 manik kernel: [  149.861630]_---[ end trace 80da0b0ded5071b5 ]---

Am I_doing something wrong?
Using_printk_I_was able to narrow_it down to the source line_that was causing this. The source_code causing this is :
uint8_t old_cmd =_ioread32( base + SC_REG_ICC_COMMAND );

This line_works fine with 32-bit linux_kernel. The_above crash is happening with_64-bit linux kernel_4.4.0 series_( running Ubuntu_16.0.4 LTS )

A:

I assume the module_you are trying_to run is called'scard'?
If so, you_can_try to use_objdump_to_see where_in the code_the_following occurred:
[__552.027690]  [] scard_module_init+0x45/0x1000 [scard]
you should_find_the C file containing this function (lets_say it is scard.c),_then_run objudump on its_o file: objdump -S [path_to scard.o] | less
Then search for_the scard_module_init_function, see_the address in hex and add to it 0x45 - skip_to this line in the objdump_and you will see_the last_assembly_line which was_run_which caused_the exception.
From what we can see in_the backtrace,_it should be some print which_probably tries to access_invalid_memory.

 Q:

activity with animation crashing at_startup

my project on android studio is