Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ruby-1.8.2: test.rb:593: [BUG] Segmentation fault

Reply
Thread Tools

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

 
 
me2faster@excite.com
Guest
Posts: n/a
 
      05-17-2005
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

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      05-17-2005

On 17 May 2005, at 13:00, wrote:

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

--
Eric Hodel - - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04



 
Reply With Quote
 
 
 
 
me2faster@excite.com
Guest
Posts: n/a
 
      05-18-2005
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,47 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=0x805e22
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=0x805e22
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault using Firefox 15.0.2 Keith Lee Firefox 3 04-29-2006 05:45 PM
Xerces on Solaris - Segmentation fault ldvmbs@gmail.com XML 0 05-16-2005 07:21 AM
Xerces XML Parser Segmentation fault with Java Pud XML 0 11-06-2003 05:07 PM
Intel Xeon + Linux + IBM sdk 1.3.1 - getting Segmentation fault Alex Hunsley Java 17 11-06-2003 12:12 AM
Re: segmentation fault exception handling Ivan Vecerina C++ 0 06-29-2003 10:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57