ruby-1.8.2: test.rb:593: [BUG] Segmentation fault

M

me2faster

In the sample directory, 'ruby -d test.rb' results in the following
error:

....
ok 5
ok 6
ok 7
ok 8
exception
test.rb:593: [BUG] Segmentation fault


I'm trying to build on a Tandem (now HP) NonStop server, under a POSIX
environment. c89 is the C compiler that conforms to the 1989 C standard



(not c99). Here's my 'config.h':


#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LONG_LONG 1
#define HAVE_OFF_T 1
#define SIZEOF_INT 4
#define SIZEOF_SHORT 2
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
#define SIZEOF___INT64 0
#define SIZEOF_OFF_T 4
#define SIZEOF_VOIDP 4
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define SIZEOF_TIME_T 4
#define HAVE_PROTOTYPES 1
#define TOKEN_PASTE(x,y) x##y
#define HAVE_STDARG_PROTOTYPES 1
#define NORETURN(x) x
#define HAVE_DECL_SYS_NERR 0
#define HAVE_DIRENT_H 1
#define STDC_HEADERS 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIMITS_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_FCNTL_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TIMES_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_PWD_H 1
#define HAVE_GRP_H 1
#define HAVE_UTIME_H 1
#define HAVE_MEMORY_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_NETINET_IN_SYSTM_H 1
#define HAVE_FLOAT_H 1
#define HAVE_IEEEFP_H 1
#define HAVE_STRUCT_STAT_ST_RDEV 1
#define HAVE_ST_RDEV 1
#define GETGROUPS_T gid_t
#define RETSIGTYPE void
#define C_ALLOCA 1
#define STACK_DIRECTION -1
#define HAVE_DUP2 1
#define HAVE_MEMMOVE 1
#define HAVE_MKDIR 1
#define HAVE_STRCASECMP 1
#define HAVE_STRNCASECMP 1
#define HAVE_STRERROR 1
#define HAVE_STRFTIME 1
#define HAVE_STRCHR 1
#define HAVE_STRSTR 1
#define HAVE_STRTOUL 1
#define HAVE_CRYPT 1
#define HAVE_VSNPRINTF 1
#define HAVE_ISNAN 1
#define HAVE_FINITE 1
#define HAVE_HYPOT 1
#define HAVE_ACOSH 1
#define HAVE_ERF 1
#define HAVE_FMOD 1
#define HAVE_WAITPID 1
#define HAVE_CHROOT 1
#define HAVE_FSYNC 1
#define HAVE_GETCWD 1
#define HAVE_TIMES 1
#define HAVE_FCNTL 1
#define HAVE_LSTAT 1
#define HAVE_SYMLINK 1
#define HAVE_READLINK 1
#define HAVE_PAUSE 1
#define HAVE_GETPGRP 1
#define HAVE_GETPGID 1
#define HAVE_SETPGID 1
#define HAVE_GETGROUPS 1
#undef HAVE_GETPRIORITY
#define HAVE_SIGPROCMASK 1
#define HAVE_SIGACTION 1
#define HAVE__SETJMP 1
#define HAVE_SETSID 1
#define HAVE_TELLDIR 1
#define HAVE_SEEKDIR 1
#define HAVE_MKTIME 1
#define HAVE_COSH 1
#define HAVE_SINH 1
#define HAVE_TANH 1
#define HAVE_SETUID 1
#define HAVE_SETGID 1
#define HAVE_TZNAME 1
#define HAVE_DAYLIGHT 1
#define NEGATIVE_TIME_T 1
#define POSIX_SIGNAL 1
#define GETPGRP_VOID 1
#define SETPGRP_VOID 1
#define WORDS_BIGENDIAN 1
#define __CHAR_UNSIGNED__ 1
#ifndef __cplusplus
#define inline
#endif
#define RSHIFT(x,y) ((x)>>(int)y)
#define FILE_COUNT _cnt
#define FILE_READPTR _ptr
#define NEED_IO_SEEK_BETWEEN_RW 1
#define STACK_GROW_DIRECTION -1
#define DEFAULT_KCODE KCODE_NONE
#define USE_ELF 1
#define DLEXT ".so"
#define RUBY_LIB "/usr/local/lib/ruby/1.8"
#define RUBY_SITE_LIB "/usr/local/lib/ruby/site_ruby­"
#define RUBY_SITE_LIB2 "/usr/local/lib/ruby/site_ruby­/1.8"
#define RUBY_PLATFORM "nsr-nsk"
#define RUBY_ARCHLIB "/usr/local/lib/ruby/1.8/nsr-n­sk"
#define RUBY_SITE_ARCHLIB "/usr/local/lib/ruby/site_ruby­/1.8/nsr-nsk"


me2faster at excite dot com
 
E

Eric Hodel

In the sample directory, 'ruby -d test.rb' results in the following
error:

....
ok 5
ok 6
ok 7
ok 8
exception
test.rb:593: [BUG] Segmentation fault


I'm trying to build on a Tandem (now HP) NonStop server, under a POSIX
environment. c89 is the C compiler that conforms to the 1989 C
standard



(not c99). Here's my 'config.h':

me2faster at excite dot com

How about a C stack trace?
 
M

me2faster

Here it is:

ok 5
ok 6
ok 7
ok 8
exception
test.rb:593: [BUG] Segmentation fault
ruby 1.8.2 (2004-12-25) [nsr-nsk]

Process (5,478) received signal/trap type: 1 (number: 6)
#0 0xffffffffe151c9a0 in $n_EnterPriv ()
#1 0xffffffffe1f21a30 in raise ()
#2 0xffffffffe1f228e0 in PK_ABORT_ ()
#3 0xffffffffff7dc0e0 in abort ()
#4 0x7040e040:0 in rb_bug (fmt=0x700325e0 "Segmentation fault")
at /home/ruby-1.8.2/error.c:214
#5 0x703023d0:0 in sigsegv (sig=11) at /home/ruby-1.8.2/signal.c:446
#6 0xffffffffe1257ed0 in $UD_S__SigHandlerJacket ()
#7 0x7006dd70:1 in rb_raise_jump (mesg=134960216)
at /home/ruby-1.8.2/eval.c:4465
#8 0x7006cda0:0 in rb_f_raise (argc=1, argv=0x812f370)
at /home/ruby-1.8.2/eval.c:4408
#9 0x7007b640:0 in call_cfunc (func=0x8018350 <_initz+12208>,
recv=134676240,
len=-1, argc=1, argv=0x812f370) at /home/ruby-1.8.2/eval.c:5392
#10 0x70082660:0 in rb_call0 (klass=134682024, recv=134676240, id=3953,
oid=3953, argc=1, argv=0x812f370, body=0x806f400, nosuper=0)
at /home/ruby-1.8.2/eval.c:5527
#11 0x70086670:0 in rb_call (klass=134682024, recv=134676240, mid=3953,
argc=1, argv=0x812f370, scope=1) at /home/ruby-1.8.2/eval.c:5748
#12 0x7005d0e0:0 in rb_eval (self=134676240, n=0x8107bb0)
at /home/ruby-1.8.2/eval.c:3249
#13 0x700584c0:0 in rb_eval (self=134676240, n=0x805e228)
at /home/ruby-1.8.2/eval.c:3041
---Type <return> to continue, or q <return> to quit---
#14 0x70042bf0:0 in eval_node (self=134676240, node=0x805e228)
at /home/ruby-1.8.2/eval.c:1296
#15 0x70044930:0 in ruby_exec_internal ()
at /home/ruby-1.8.2/eval.c:1473
#16 0x70044bb0:0 in ruby_exec () at /home/ruby-1.8.2/eval.c:1493
#17 0x70044cb0:0 in ruby_run () at /home/ruby-1.8.2/eval.c:1503
#18 0x70037510:0 in main (argc=3, argv=0x8032000, envp=0x8032020)
at /home/ruby-1.8.2/main.c:46
....


me2faster at excite dot com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top