Thread: seg fault
georgiecasey

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...

perkiset

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

You should put some echo "0 "; echo "1 "; 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.

georgiecasey

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

thedarkness

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

perkiset

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

mac

 hine 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

mac

 hine.

Good luck,
/p

thedarkness

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

Cheers,
td

perkiset

Yeah, but he's an Aussie, and you know about THEM...  :Applause

thedarkness

Seppo wanker.

perkiset

Cross dressing poofter.

thedarkness

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

Cheers,
td

perkiset

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

dink

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

perkiset

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

thedarkness

quote author=dink link=topic=844.msg5941#msg5941 date=1206675547

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


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

Cheers,
td

dink

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

thedarkness

Choice of pink mink or pink ermine, hand cuffs and matching leg irons.

Cheers,
td

dink

Applause

Cool.  Even at 3 A.M.

perkiset

Oooooooh... leg irons  :shiver:


Perkiset's Place Home   Politics @ Perkiset's