The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 18, 2019, 12:00:37 AM

Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: seg fault  (Read 5220 times)
georgiecasey
Rookie
**
Offline Offline

Posts: 16


View Profile
« on: March 23, 2008, 05:36:53 PM »

Anyone else get seg faulted when using PHP from the shell? I'm no C coder so don't have a clue where to even start to debug this. Anyone...
Logged

No links in signatures please
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: March 23, 2008, 07:42:19 PM »

is it from the moment of instantiation? Can you get through <some> lines of code before it blows?

You should put some echo "0\n"; echo "1\n"; lines in your code at various points to ascertain if it's a compile problem (ie., NOTHING runs) or a problem with a specific library. Are you using any special libs? Has this code worked forever and it suddenly is not? There's about a bazillion more symptoms that you need to pull out for anyone here to do any real triage.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
georgiecasey
Rookie
**
Offline Offline

Posts: 16


View Profile
« Reply #2 on: March 25, 2008, 04:56:27 PM »

Absoultely nothing runs - just get that error message. Using the php apility library for accessing the Google adwords API. The weird thing is, the library works on one linux server I have and not the other. I thought PHP is an interpreter that has been compiled already so i shouldn't get this error with PHP. I have loads of PHP shell scripts that work fine. Cheers for any help perk
Logged

No links in signatures please
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #3 on: March 25, 2008, 05:41:29 PM »

Put a line before each existing line of your file like this;

print 1;

print 2;

print 3;

print 4;


And find out EXACTLY what line it segfaults on, if it doesn't print ANY output (i.e. print 1; doesn't even fire) then it is most prolly a bug in the preprocessor or some kind of library mismatch.

Post results here, we will try to figure it out.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #4 on: March 25, 2008, 06:00:22 PM »

Looks like it's a binary problem TD...

GC - you may need to get the source for the library and recompile it. It is rare when you can take a compiled image in the *nix world and simply install it and it will run fine... there are little tweaks and such for each machine that will make each compile slightly different.

My suggestion (if I were you) - DL the source for PHP and the lib and recompile for each piece of hardware. The interpreter is native, not a java app - so it is compiled specifically for a machine.

Good luck,
/p
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #5 on: March 25, 2008, 08:03:16 PM »

I'd call yum update or the apt equivalent on each package before compiling from source if it were me.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #6 on: March 27, 2008, 10:46:50 AM »

Yeah, but he's an Aussie, and you know about THEM...  Roll Eyes
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #7 on: March 27, 2008, 02:41:20 PM »

Seppo wanker.
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #8 on: March 27, 2008, 02:53:03 PM »

Cross dressing poofter.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #9 on: March 27, 2008, 03:31:36 PM »

That reminds me, I need to look into some undies ;-)

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #10 on: March 27, 2008, 03:36:40 PM »

You know I've gotcha covered, even at 3am lad... Wink
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
dink
Expert
****
Offline Offline

Posts: 349


View Profile
« Reply #11 on: March 27, 2008, 08:39:07 PM »

Who says the Cache doesn't get gheyed up.   ROFLMAO
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #12 on: March 27, 2008, 10:29:15 PM »

Well yeah, but at least we're polite about it  ROFLMAO
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #13 on: March 28, 2008, 12:44:08 AM »

Who says the Cache doesn't get gheyed up.   ROFLMAO

Whoever they are they need to be spanked with a black patent leather riding crop!

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
dink
Expert
****
Offline Offline

Posts: 349


View Profile
« Reply #14 on: March 28, 2008, 11:31:06 AM »

Does that come with ermine trimmed restraints?  Or is it just in the ordinary old mink trim?  Mink is soooo 2000.
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
Pages: [1] 2
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!