Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, ca.so -> Segmentation fault on a 64bits at Sharing receivers forum; Hello im compiling the ca.so using gcc-4.1 with the comand gcc-4.1 -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl ...

Reply
 
LinkBack Thread Tools Display Modes
ca.so -> Segmentation fault on a 64bits
Old
  (#1)
BrixSat
Junior Member
 
BrixSat's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 782
Experience: 12%

Thanks: 1
Thanked 1 Time in 1 Post
Join Date: Jun 2008
Age: 37
Exclamation ca.so -> Segmentation fault on a 64bits - 08-January-2011, 15:54

Hello im compiling the ca.so using gcc-4.1 with the comand

gcc-4.1 -O -fbuiltin -fomit-frame-pointer -fPIC -shared -o ca.so ca.c -ldl

but when i run ca.so i get "segmentation fault." is this because im compiling it to 32bits and the machine it is running a 64bits operational system (ubuntu 10.4)
4
I would apreciate some help. Thanks in advance
   
Reply With Quote
Old
  (#2)
BrixSat
Junior Member
 
BrixSat's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 782
Experience: 12%

Thanks: 1
Thanked 1 Time in 1 Post
Join Date: Jun 2008
Age: 37
21-January-2011, 21:22

not a single clue? does anybody have an ideia? :(
   
Reply With Quote
Sponsored Links
Old
  (#3)
TheTom
Junior Member
 
TheTom's Avatar
 
Offline
Posts: 17

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 46
Magic: 5 / 938
Experience: 86%

Thanks: 1
Thanked 7 Times in 5 Posts
Join Date: Jan 2011
30-January-2011, 17:05

the library ca.so and your cardserver have to match!

Is your cardserver 32 bit, than u must also compile your ca.so to 32 bit
Is your cardserver 64 bit, than u must also compile your ca.so to 64 bit

there should be no problem to run 32 bit code on a 64 bit system.


Don't forget the Thanks Button
Search for Kabel Deutschland Friends
   
Reply With Quote
Old
  (#4)
BrixSat
Junior Member
 
BrixSat's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 782
Experience: 12%

Thanks: 1
Thanked 1 Time in 1 Post
Join Date: Jun 2008
Age: 37
30-January-2011, 20:42

Ŵell i have formated the system to a 32 bits ubuntu and when i compile it goes ok but when running (only the ca.so) i still get "segmentation fault" any one with a 32bits version of ca.so that can share?
   
Reply With Quote
Old
  (#5)
TheTom
Junior Member
 
TheTom's Avatar
 
Offline
Posts: 17

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 46
Magic: 5 / 938
Experience: 86%

Thanks: 1
Thanked 7 Times in 5 Posts
Join Date: Jan 2011
30-January-2011, 20:56

pls try to start it with strace command.. or better start it with gdb to get a backtrace


Don't forget the Thanks Button
Search for Kabel Deutschland Friends
   
Reply With Quote
Old
  (#6)
BrixSat
Junior Member
 
BrixSat's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 782
Experience: 12%

Thanks: 1
Thanked 1 Time in 1 Post
Join Date: Jun 2008
Age: 37
30-January-2011, 21:26

How do i do that? can you explain me? :D


Thanks in advance
   
Reply With Quote
Old
  (#7)
TheTom
Junior Member
 
TheTom's Avatar
 
Offline
Posts: 17

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 46
Magic: 5 / 938
Experience: 86%

Thanks: 1
Thanked 7 Times in 5 Posts
Join Date: Jan 2011
30-January-2011, 22:20

tell me more about your environment (Distribution and how you start/load ca.so)


Don't forget the Thanks Button
Search for Kabel Deutschland Friends
   
Reply With Quote
Old
  (#8)
BrixSat
Junior Member
 
BrixSat's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 782
Experience: 12%

Thanks: 1
Thanked 1 Time in 1 Post
Join Date: Jun 2008
Age: 37
Unhappy 31-January-2011, 00:45

Well i have an ubuntu 32bits (previous was 64bits) it is up to date (10.10) with gcc 4.1 since gcc 4.4 wont even compile complaining about some errors.

Im using kaffeine-sc 0.4.1 and when i compile ca.so using the comand on top it goes ok. then i make
Code:
chmod +x ca.so
after that i run it

Code:
[email protected]:~$ ./ca.so
segmentation fault
im out of ideias :(
   
Reply With Quote
Old
  (#9)
abuser
Junior Member
 
abuser's Avatar
 
Offline
Posts: 8

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 18
Magic: 2 / 583
Experience: 73%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Feb 2007
31-January-2011, 16:15

ca.so is a library for sc to communicate with cccam, it is not a executable.
for example I preload ca.sc before cccam with this command:

sudo rm -f -v /tmp/camd.socket /tmp/.CCcam.nodeid /tmp/cw0 ; LD_PRELOAD=/var/emu/capmt_ca.so ; export LD_PRELOAD ; /var/emu/CCcam.x86_64 -d -v
   
Reply With Quote
Reply

Bookmarks

Tags
64bits, ca.so, fault, segmentation


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox