2013-03-25 00:43
hsbt_away changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
00:13
guilleiguaran_ has joined #ruby-core
00:25
zzak_ is now known as zzak
00:28
Guest85414__ has joined #ruby-core
00:29
DanKnox is now known as DanKnox_away
00:31
zzak_ has joined #ruby-core
00:32
zzak has quit [Quit: leaving]
00:32
zzak has joined #ruby-core
00:32
zzak has quit [Client Quit]
00:33
zzak has joined #ruby-core
00:45
zzak has quit [Quit: leaving]
00:45
zzak has joined #ruby-core
00:54
nagachika has joined #ruby-core
00:54
nagachika has quit [Read error: Connection reset by peer]
00:55
nagachika has joined #ruby-core
00:55
nagachika has quit [Remote host closed the connection]
00:55
nagachika has joined #ruby-core
01:11
nari has quit [Ping timeout: 240 seconds]
01:34
nari has joined #ruby-core
01:44
Domon_ has joined #ruby-core
01:50
rafaelfranca has quit [Remote host closed the connection]
01:56
DanKnox_away is now known as DanKnox
02:49
<
zzak >
nokada: can you check my segv? #8692
02:50
<
zzak >
i am probably doing something wrong
02:57
<
nokada >
time() returns time_t, not pointer
02:59
<
zzak >
how to represent in fiddle?
02:59
<
zzak >
there is no Fiddle:TYPE_TIME_T
03:06
<
nokada >
no handy way, probably
03:07
<
nokada >
but Fiddle::TYPE_LONG would work until 2038
03:08
<
zzak >
i think i need to use importer
03:09
<
zzak >
yeah TYPE_LONG just segfaults
03:13
shinnya has quit [Ping timeout: 264 seconds]
03:16
<
nokada >
time = Fiddle::Function.new( libc['time'], [Fiddle::TYPE_VOIDP], Fiddle::TYPE_LONG )
03:16
<
nokada >
printed 1374808601
03:19
<
nokada >
you can write `libc = Fiddle.dlopen(nil)'
03:20
<
zzak >
dlopen(nil) is much better
03:21
<
zzak >
but why segfault?
03:22
<
nokada >
what's your platform?
03:23
<
nokada >
and backtrace
03:35
<
nokada >
it's old one, isn't it?
03:36
<
zzak >
the backtrace?
03:37
<
nokada >
I meant the backtrace at segfaults by TYPE_LONG
03:40
<
zzak >
only segv when use LONG for args
03:40
<
zzak >
no segv when VOIDP for args
03:46
<
nokada >
time = Fiddle::Function.new(libc['time'], [Fiddle::TYPE_LONG], Fiddle::TYPE_LONG)
03:46
<
nokada >
puts time.call(0)
03:47
<
zzak >
try time.call(1)
03:47
<
zzak >
is 0 same as NULL?
03:48
<
nokada >
usually NULL is defined as 0 or (void *)0
03:51
<
nokada >
ok to reject #8692?
03:53
<
zzak >
nokada: sure, thank you for the help!
03:53
<
zzak >
I'm patching Fiddle::dlopen() docs about nil library
03:56
Domon_ has quit [Read error: Connection reset by peer]
03:56
Domon_ has joined #ruby-core
04:00
kosaki8 has joined #ruby-core
04:08
DanKnox is now known as DanKnox_away
04:24
<
nokada >
zzak: nil doesn't mean libc, but all libraries already loaded
04:26
<
zzak >
it uses RTLD_DEFAULT, which says "Which will find the first occurrence of the desired symbol using the default library search order"
04:32
<
zzak >
oh, looks like it is using LoadLibrary()
04:32
<
zzak >
define dlopen(name,flag) ((void*)LoadLibrary(name))
04:32
<
zzak >
im not sure what that does
04:32
<
zzak >
oh thats only for windows
04:34
nagachik_ has joined #ruby-core
04:34
<
zzak >
nokada: reading dlopen(3)
04:37
nagachika has quit [Ping timeout: 276 seconds]
04:38
<
nurse >
RTLD_DEFAULT's behavior is different on OS
04:38
DanKnox_away is now known as DanKnox
04:42
<
zzak >
i just want to help new people like me understand
04:42
<
zzak >
libc = Fiddle.dlopen(nil)
04:44
<
nokada >
Fiddle.dlopen(nil)["rb_str_new"] works
04:45
<
nokada >
not only functions in libc
04:45
<
zzak >
functions in ruby.h?
04:52
<
nokada >
all functions in libraries already loaded
04:53
<
nokada >
ruby -rfiddle -e 'p Fiddle.dlopen(nil)["SSL_ctrl"]' fails
04:53
<
nokada >
but ruby -ropenssl -rfiddle -e 'p Fiddle.dlopen(nil)["SSL_ctrl"]' works
04:56
<
zzak >
ruby -rfiddle -e'Fiddle.dlopen(nil)["rb_str_new2"]'
05:11
r0bgleeson has quit [Ping timeout: 256 seconds]
05:35
<
nurse >
if you are reading OS X's man, read dlsym(3)
06:02
nagachik_ has quit [Remote host closed the connection]
06:05
charliesome has joined #ruby-core
06:10
nagachika has joined #ruby-core
06:13
nagachika has quit [Remote host closed the connection]
06:14
nagachika has joined #ruby-core
06:19
kosaki8 has quit [Ping timeout: 276 seconds]
06:34
DanKnox is now known as DanKnox_away
06:39
Domon_ has quit [Remote host closed the connection]
06:40
Domon_ has joined #ruby-core
07:02
charliesome has joined #ruby-core
08:03
nokada has quit [Remote host closed the connection]
08:04
kosaki8 has joined #ruby-core
08:11
nokada has joined #ruby-core
08:21
xibbar_ie has joined #ruby-core
08:22
xibbar_i_ has quit [Ping timeout: 246 seconds]
09:02
kosaki8 has quit [Ping timeout: 246 seconds]
09:11
eLobato has joined #ruby-core
09:39
nokada has quit [Remote host closed the connection]
10:18
nari has quit [Ping timeout: 264 seconds]
10:48
Domon_ has quit [Remote host closed the connection]
10:58
nari has joined #ruby-core
11:23
kosaki8 has joined #ruby-core
11:51
hsbt has quit [Ping timeout: 256 seconds]
11:52
hsbt has joined #ruby-core
11:59
kosaki8 has quit [Ping timeout: 240 seconds]
12:03
nokada has joined #ruby-core
12:04
nokada_ has joined #ruby-core
12:04
nokada has quit [Read error: Connection reset by peer]
12:11
enebo has joined #ruby-core
12:13
enebo has quit [Client Quit]
12:28
rafaelfranca has joined #ruby-core
13:07
rafaelfranca has quit [Remote host closed the connection]
13:12
kosaki8 has joined #ruby-core
13:23
ZachBeta has joined #ruby-core
13:29
Ortuna has joined #ruby-core
13:35
Ortuna has quit [Quit: IRC Leave]
13:42
r0bgleeson has joined #ruby-core
13:48
kosaki8 has quit [Ping timeout: 276 seconds]
13:57
enebo has joined #ruby-core
14:00
kosaki2 has joined #ruby-core
14:02
ZachBeta has quit [Quit: Computer has gone to sleep.]
14:02
rafaelfranca has joined #ruby-core
14:04
charliesome has joined #ruby-core
14:29
ZachBeta has joined #ruby-core
15:30
eLobato has quit [Quit: WeeChat 0.4.0]
16:29
enebo has quit [Quit: enebo]
16:32
heroux has quit [Ping timeout: 276 seconds]
16:35
ZachBeta has quit [Quit: Computer has gone to sleep.]
16:38
nagachika has quit [Remote host closed the connection]
16:51
shinnya has joined #ruby-core
17:07
kosaki2 has quit [Remote host closed the connection]
17:20
DanKnox_away is now known as DanKnox
17:33
tylersmith has joined #ruby-core
17:38
tylersmi_ has joined #ruby-core
17:38
tylersmith has quit [Read error: Connection reset by peer]
17:41
heroux has joined #ruby-core
17:55
enebo has joined #ruby-core
17:59
kosaki2 has joined #ruby-core
18:10
ZachBeta has joined #ruby-core
18:31
nari has quit [Ping timeout: 264 seconds]
19:19
enebo has quit [Ping timeout: 264 seconds]
19:55
ZachBeta has quit [Quit: Computer has gone to sleep.]
20:02
tylersmi_ has quit [Remote host closed the connection]
20:06
ex9t has quit [Read error: Connection reset by peer]
20:08
ex9t has joined #ruby-core
20:58
ZachBeta has joined #ruby-core
21:00
ZachBeta has quit [Client Quit]
21:08
ged has quit [Read error: Connection reset by peer]
21:08
ged_ has joined #ruby-core
21:12
tylersmith has joined #ruby-core
21:13
rafaelfranca has quit [Remote host closed the connection]
21:17
tylersmith has quit [Ping timeout: 264 seconds]
21:26
kosaki2 has quit [Ping timeout: 260 seconds]
22:15
nokada has joined #ruby-core
22:15
nokada_ has quit [Read error: Connection reset by peer]
22:28
kosaki8 has joined #ruby-core
23:13
hsbt has quit [Ping timeout: 264 seconds]
23:14
hsbt has joined #ruby-core
23:23
hsbt has quit [Ping timeout: 264 seconds]
23:25
hsbt has joined #ruby-core
23:32
hsbt has quit [Ping timeout: 240 seconds]
23:35
hsbt has joined #ruby-core
23:41
hsbt has quit [Ping timeout: 240 seconds]
23:43
hsbt has joined #ruby-core
23:49
hsbt has quit [Ping timeout: 264 seconds]
23:51
hsbt has joined #ruby-core