Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] Re: Compilation of trunk with --enable-dtrace [RSS Feed]

#1 May 6, 2010 12:57:32

Antony D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Compilation of trunk with --enable-dtrace


On 06.05.2010 15:21, David Soria Parra wrote:
> FreeBSD Dtrace is known to be broken because of a syntax issue somewhere
> in their DTrace scripts that are included by default. FreeBSD dtrace is
> not supported at the moment.

Anyway, you need to check the result of dtrace execution and abort with a nice
errmsg if it fails.
Also you might want to detect dtrace's version before running it.

--
Wbr,
Antony Dovgal
---http://pinba.org- realtime statistics for PHP

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 May 6, 2010 13:56:20

Frederic H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Compilation of trunk with --enable-dtrace


Hello !I don't known why the dtrace version has a relation with the fact thatthe file zend_dtrace_gen.h is not in the trunk...Perhaps you can explain that to me ?

error: zend_dtrace_gen.h: No suchfile or directory

Best regards,
Fred.


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#3 May 6, 2010 14:08:46

David S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Compilation of trunk with --enable-dtrace


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 06.05.10 14:55, schrieb Frederic Hardy:
> Hello !
>
> I don't known why the dtrace version has a relation with the fact that
> the file zend_dtrace_gen.h is not in the trunk...
> Perhaps you can explain that to me ?
zend_dtrace_gen.h is generated during configure using dtrace -h and then
the object file is generated using dtrace -G on Solaris and FreeBSD (mac
os doesn't need a compiled object files of the probe description). On
FreeBSD dtrace -h fails because of a syntax error in a dtrace script
that comes with the OS, therefore the dtrace headers cannot be
generated. We need to generate the headers as every OS generates
different DTrace headers.

david

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/iQIcBAEBAgAGBQJL4r8tAAoJEAT0aMuPE7Z1VqkQAJTchyHdMf8B5SaePTuAJKeS
AnorTA+9La34r0zLdS6Da5TMoRuQB4a7hTTeM+8FuCwxdNKr6jBWyL92A2G4umxB
D7o8IZ/HCMUX2G2UMIukTcTm/ZCmDYNHhExE1Grx9Gah7u+y1GpkynuMU6TuY5VK
eDErRLi6E20S1W86Hq/RHGZP0ikqsWR6NixoLwJ4ySMWU095Tg8UIc/eAW+IfB3a
GaDPbOWqZUgDzbJ2GXStZBJ9CIbZBzHLizCb5sR887fPaGrMT8/5L2nOC8uHm+4I
W8EP+8g9cSaqjlc5E3RWZZphgGJsA+/D9pKqNy64BwLwn83qegMefMMEuZBnyaTn
YDzuy2dHE+SeHElP1oRH68h/cABKFNZHeTsrwEeUnuIxDcMTaJevuEWpzFx1NB7k
tRKmQOw2Cd+gYhdbazfUGkUHRyBc0EojNq3iwg/jsXDXfiBA/DgIhTOYcyh7cPeY
Cx4kgXc3nEQJniBBerRkW7QSVA/XFHIfJQ6fHF20lqaYjc0mzfgthjW5Hf/ivhlx
JJBcl9oIGxpwHX74e5Yo5KTgF+lnOEZYr1gjCDWusHy11Lvu4MQAlPdnSShXxyop
vLii+EnpyKSrh29dEtiDkAiKKB6y9rUzs1h2HwtJiOsk8lGj9DeVualyTI1Got3Z
TelI2vACc/vUSaMWiJL/
=kqvH
-----END PGP SIGNATURE-----

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#4 June 23, 2010 21:05:32

Frederic H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Compilation of trunk with --enable-dtrace


Hello !zend_dtrace_gen.h is generated during configure using dtrace -h and then
the object file is generated using dtrace -G on Solaris and FreeBSD (mac
os doesn't need a compiled object files of the probe description). On
FreeBSD dtrace -h fails because of a syntax error in a dtrace script
that comes with the OS, therefore the dtrace headers cannot be
generated. We need to generate the headers as every OS generates
different DTrace headers.I can now compile php on Freebsd 8p3 without any problem.
But when i'm using dtrace with php, dtrace segfault with a core.

f...@witchblade:/usr/home/fch/php/sapi/cli
26> sudo dtrace -ln 'php*:::' -c './php -m'
Password:
ID PROVIDER MODULE FUNCTION NAME
Segmentation fault: 11 (core dumped)

dtrace work fine with DTraceToolkit.

The gdb backtrace say :

f...@witchblade:/usr/home/fch/php/sapi/cli
30> sudo gdb /usr/sbin/dtrace dtrace.core
GNU gdb 6.1.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certainconditions.Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.This GDB was configured as "i386-marcel-freebsd"...(no debugging symbolsfound)...Core was generated by `dtrace'.
Program terminated with signal 11, Segmentation fault.Reading symbols from /lib/libdtrace.so.2...(no debugging symbolsfound)...done.Loaded symbols for /lib/libdtrace.so.2Reading symbols from /usr/lib/libproc.so.2...(no debugging symbolsfound)...done.Loaded symbols for /usr/lib/libproc.so.2
Reading symbols from /lib/libctf.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libctf.so.2Reading symbols from /usr/lib/libelf.so.1...(no debugging symbolsfound)...done.Loaded symbols for /usr/lib/libelf.so.1
Reading symbols from /lib/libz.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7Reading symbols from /libexec/ld-elf.so.1...(no debugging symbolsfound)...done.Loaded symbols for /libexec/ld-elf.so.1
#0 0x28161380 in pthread_mutex_lock () from /lib/libthr.so.3


(gdb) backtrace
#0 0x28161380 in pthread_mutex_lock () from /lib/libthr.so.3
#1 0x280ac7b2 in dtrace_proc_grab () from /lib/libdtrace.so.2
#2 0x2815b6fd in pthread_getprio () from /lib/libthr.so.3
#3 0x00000000 in ?? ()

f...@witchblade:/usr/home/fch/php/sapi/cli
35> sudo dtrace -V
dtrace: Sun D 1.6.2

f...@witchblade:/usr/home/fch/php/sapi/cli
36> ./php --version
PHP 5.3.99-dev (cli) (built: Jun 23 2010 21:31:03)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2010 Zend Technologies

f...@witchblade:/usr/home/fch/php/sapi/cli
38> ./php -i | grep DTrace
DTrace Support => enabled

f...@witchblade:/usr/home/fch/php/sapi/cli
39> uname -aFreeBSD witchblade 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Wed Jun 2318:54:51 CEST 2010 r...@witchblade:/usr/obj/usr/src/sys/WITCHBLADE i386Any suggestion ?

Best regards,
Fred.

--
========================================================================
Frédéric Hardy : Architecte d'application/Admin. système/Ergonome
Status : En recherche d'emploi
========================================================================


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#5 June 23, 2010 21:44:55

Johannes S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Compilation of trunk with --enable-dtrace


Hi,

On Wed, 2010-06-23 at 22:04 +0200, Frederic Hardy wrote:
> f...@witchblade:/usr/home/fch/php/sapi/cli
> 26> sudo dtrace -ln 'php*:::' -c './php -m'
> Password:
> ID PROVIDER MODULE FUNCTION NAME
> Segmentation fault: 11 (core dumped)

Well, if DTrace segfaults I'd guess that's due to the DTrace port, not
PHP. It works for me on Solaris.

johannes




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#6 June 23, 2010 22:13:54

Frederic H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Compilation of trunk with --enable-dtrace


On 06/23/2010 22:43, Johannes Schlüter wrote:Hi,

On Wed, 2010-06-23 at 22:04 +0200, Frederic Hardy wrote:f...@witchblade:/usr/home/fch/php/sapi/cli
26> sudo dtrace -ln 'php*:::' -c './php -m'
Password:
ID PROVIDER MODULE FUNCTION NAME
Segmentation fault: 11 (core dumped)Well, if DTrace segfaults I'd guess that's due to the DTrace port, not
PHP. It works for me on Solaris.I'm agree.
But i will hope that someone has the same problem or has a solution.
Can you say me if dtrace -l | grep php must return nothing ?

Best regards,
Fred.

--
========================================================================
Frédéric Hardy : Architecte d'application/Admin. système/Ergonome
Status : En recherche d'emploi
========================================================================


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] Re: Compilation of trunk with --enable-dtrace [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support