Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #18

Open
kawakibi opened this issue Oct 7, 2015 · 4 comments
Open

Segmentation fault #18

kawakibi opened this issue Oct 7, 2015 · 4 comments

Comments

@kawakibi
Copy link

kawakibi commented Oct 7, 2015

Hi Lars Strojny,

after i upgrade my laptop to yosemite and use neon 0.30.1 , we got segfault when ``put` file to mogilefs server.

m.php

$storage = new MogileFS();
//connect
$storage->connect('10.10.2.21', 7001, 'staticfiles');
var_dump($storage->isConnected());
var_dump($storage->get('images/2015/07/24/3_20150724020216.gif'));
$storage->put('/var/temp/4206687_20121002030105.JPG','/test/coba.jpg','userupload');
(gdb) run /m.php
Starting program: /opt/local/bin/php56 /m.php
bool(true)
array(2) {
  'path1' =>
  string(52) "http://10.10.2.21:7500/dev1/0/000/012/0000012201.fid"
  'paths' =>
  string(1) "1"
}

Program received signal SIGSEGV, Segmentation fault.
0x000000010254f6df in ne_request_create () from /usr/local/lib/libneon.27.dylib

and the error seems random to, i try re run it again and got another error

Program received signal SIGSEGV, Segmentation fault.
0x00007fff97d96fb2 in strlen () from /usr/lib/system/libsystem_c.dylib
PHP 5.6.14 (cli) (built: Oct  2 2015 07:54:58)
@zulamdat
Copy link

zulamdat commented Dec 7, 2015

@lstrojny can you solve this issue? because i have the same problem. thanks

@lstrojny
Copy link
Owner

lstrojny commented Dec 7, 2015

Unfortunately I am no longer an active user of the library itself so I merely merge pull requests. If you have a fix for it, I am happy to merge it.

@Gasol
Copy link
Contributor

Gasol commented Sep 12, 2016

@kawakibi What platform did you use? Does neon 0.30.1 compile from source?

@Gasol
Copy link
Contributor

Gasol commented Sep 12, 2016

I can't reproduce on FreeBSD 10.3.

$ uname -a
FreeBSD host 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
$ pkg info | grep mogilefs
pecl-mogilefs-0.9.2_2 PHP client library to communicate with the MogileFS storage
$ pkg info | grep neon
neon-0.30.1 HTTP and WebDAV client library for Unix systems
$ ldd /usr/local/lib/php/20131226/mogilefs.so
/usr/local/lib/php/20131226/mogilefs.so:
libneon.so.27 => /usr/local/lib/libneon.so.27 (0x801609000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x801832000)
libz.so.6 => /lib/libz.so.6 (0x801a3d000)
libssl.so.8 => /usr/local/lib/libssl.so.8 (0x801c53000)
libgssapi.so.10 => /usr/lib/libgssapi.so.10 (0x801ec6000)
libgssapi_krb5.so.10 => /usr/lib/libgssapi_krb5.so.10 (0x8020cf000)
libheimntlm.so.11 => /usr/lib/libheimntlm.so.11 (0x8022ed000)
libkrb5.so.11 => /usr/lib/libkrb5.so.11 (0x8024f3000)
libhx509.so.11 => /usr/lib/libhx509.so.11 (0x80276b000)
libcom_err.so.5 => /usr/lib/libcom_err.so.5 (0x8029b5000)
libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x802bb7000)
libasn1.so.11 => /usr/lib/libasn1.so.11 (0x802fc3000)
libwind.so.11 => /usr/lib/libwind.so.11 (0x803260000)
libheimbase.so.11 => /usr/lib/libheimbase.so.11 (0x803488000)
libroken.so.11 => /usr/lib/libroken.so.11 (0x80368c000)
libcrypt.so.5 => /lib/libcrypt.so.5 (0x80389e000)
libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x803abe000)
libthr.so.3 => /lib/libthr.so.3 (0x803ce5000)
libc.so.7 => /lib/libc.so.7 (0x800821000)
libcrypto.so.7 => /lib/libcrypto.so.7 (0x803f0a000)
libheimipcc.so.11 => /usr/lib/private/libheimipcc.so.11 (0x8042ff000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants