[#43120] [ruby-trunk - Bug #6124][Open] What is the purpose of "fake" gems in Ruby — Vit Ondruch <v.ondruch@...>

27 messages 2012/03/07

[#43142] Questions about thread performance (with benchmark included) — Rodrigo Rosenfeld Rosas <rr.rosas@...>

A while ago I've written an article entitled "How Nokogiri and JRuby

10 messages 2012/03/08

[#43148] [ruby-trunk - Feature #6126][Open] Introduce yes/no constants aliases for true/false — Egor Homakov <homakov@...>

16 messages 2012/03/09

[#43238] [ruby-trunk - Feature #6130][Open] inspect using to_s is pain — Thomas Sawyer <transfire@...>

21 messages 2012/03/11

[#43313] [ruby-trunk - Feature #6150][Open] add Enumerable#grep_v — Suraj Kurapati <sunaku@...>

17 messages 2012/03/15

[#43325] [ruby-trunk - Bug #6154][Open] Eliminate extending WaitReadable/Writable at runtime — Charles Nutter <headius@...>

25 messages 2012/03/16

[#43334] [ruby-trunk - Bug #6155][Open] Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each — Dan Kubb <dan.kubb@...>

9 messages 2012/03/16

[#43370] [ruby-trunk - Feature #6166][Open] Enumerator::Lazy#pinch — Thomas Sawyer <transfire@...>

15 messages 2012/03/17

[#43373] [ruby-trunk - Bug #6168][Open] Segfault in OpenSSL bindings — Nguma Abojo <git.email.address@...>

14 messages 2012/03/17

[#43454] [ruby-trunk - Bug #6174][Open] Fix collision of ConditionVariable#wait timeout and #signal (+ other cosmetic changes) — "funny_falcon (Yura Sokolov)" <funny.falcon@...>

10 messages 2012/03/18

[#43497] [ruby-trunk - Bug #6179][Open] File::pos broken in Windows 1.9.3p125 — "jmthomas (Jason Thomas)" <jmthomas@...>

24 messages 2012/03/20

[#43502] [ruby-trunk - Feature #6180][Open] to_b for converting objects to a boolean value — "AaronLasseigne (Aaron Lasseigne)" <aaron.lasseigne@...>

17 messages 2012/03/20

[#43529] [ruby-trunk - Bug #6183][Open] Enumerator::Lazy performance issue — "gregolsen (Innokenty Mikhailov)" <anotheroneman@...>

36 messages 2012/03/21

[#43543] [ruby-trunk - Bug #6184][Open] [BUG] Segmentation fault ruby 1.9.3p165 (2012-03-18 revision 35078) [x86_64-darwin11.3.0] — "Gebor (Pierre-Henry Frohring)" <frohring.pierrehenry@...>

8 messages 2012/03/21

[#43672] [ruby-trunk - Feature #6201][Open] do_something then return :special_case (include "then" operator) — "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@...>

12 messages 2012/03/26

[#43678] [ruby-trunk - Bug #6203][Open] Array#values_at does not handle ranges with end index past the end of the array — "ferrous26 (Mark Rada)" <markrada26@...>

15 messages 2012/03/26

[#43794] [ruby-trunk - Feature #6216][Open] SystemStackError backtraces should not be reduced to one line — "postmodern (Hal Brodigan)" <postmodern.mod3@...>

15 messages 2012/03/28

[#43814] [ruby-trunk - Feature #6219][Open] Return value of Hash#store — "MartinBosslet (Martin Bosslet)" <Martin.Bosslet@...>

20 messages 2012/03/28

[#43858] [ruby-trunk - Feature #6222][Open] Use ++ to connect statements — "gcao (Guoliang Cao)" <gcao99@...>

12 messages 2012/03/29

[#43904] [ruby-trunk - Feature #6225][Open] Hash#+ — "trans (Thomas Sawyer)" <transfire@...>

36 messages 2012/03/29

[#43951] [ruby-trunk - Bug #6228][Open] [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3 — "jonforums (Jon Forums)" <redmine@...>

28 messages 2012/03/30

[#43996] [ruby-trunk - Bug #6236][Open] WEBrick::HTTPServer swallows Exception — "regularfry (Alex Young)" <alex@...>

13 messages 2012/03/31

[ruby-core:43099] [ruby-trunk - Bug #5252][Closed] Segmentation Fault

From: Marc-Andre Lafortune <ruby-core@...>
Date: 2012-03-06 22:43:42 UTC
List: ruby-core #43099
Issue #5252 has been updated by Marc-Andre Lafortune.

Status changed from Open to Closed

Closing this, as apparently due to faulty proprietary C extension.
----------------------------------------
Bug #5252: Segmentation Fault
https://bugs.ruby-lang.org/issues/5252

Author: NagaChaitanya Vellanki
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]


I am running a rake task to query data from a oracle database using C extension, I am seeing segmentation fault happening randomly.

ruby -v                                                                                                         
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

I have tried running the rake task inside the gdb, I have obtained the stack trace using the gdb. Can anyone help me understand the stack trace?.


(gdb)  run  /usr/bin/rake cassandra:load_data SETTINGS_FILE=loader_files/68865463.yaml --trace
Starting program: ruby /usr/bin/rake cassandra:load_data SETTINGS_FILE=loader_files/68865463.yaml --trace
[Thread debugging using libthread_db enabled]
[New Thread 46912499556288 (LWP 30944)]
[New Thread 1073756512 (LWP 30947)]
** Invoke cassandra:load_data (first_time)
** Invoke environment (first_time)
** Execute environment
[New Thread 1074284896 (LWP 30948)]
** Execute cassandra:load_data
[New Thread 1082677600 (LWP 30949)]
[New Thread 1091070304 (LWP 30950)]
[Thread 1091070304 (LWP 30950) exited]
[New Thread 1099463008 (LWP 30951)]
"Finished pulling data"
[Thread 1099463008 (LWP 30951) exited]
[New Thread 1099463008 (LWP 30952)]
[Thread 1099463008 (LWP 30952) exited]
[New Thread 1099463008 (LWP 30995)]
[Thread 1099463008 (LWP 30995) exited]
[New Thread 1091070304 (LWP 30996)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912499556288 (LWP 30944)]
0x00002aaaaab1b272 in finalize_list (objspace=0x503740, p=0xc0bb358) at gc.c:1814
1814		    slot->limit--;
(gdb) bt full
#0  0x00002aaaaab1b272 in finalize_list (objspace=0x503740, p=0xc0bb358) at gc.c:1814
	slot = (struct heaps_slot *) 0x2aaab9213850
	tmp = (RVALUE *) 0xc0bb358
#1  0x00002aaaaab1c6f4 in rb_gc_finalize_deferred () at gc.c:2621
No locals.
#2  0x00002aaaaac20395 in rb_threadptr_execute_interrupts_rec (th=0x5033c0, sched_depth=0) at thread.c:1305
	wait_event__ = Variable "wait_event__" is not available.


(gdb) backtrace
#0  0x00002aaaaab1b272 in finalize_list (objspace=0x503740, p=0xc0bb358) at gc.c:1814
#1  0x00002aaaaab1c6f4 in rb_gc_finalize_deferred () at gc.c:2621
#2  0x00002aaaaac20395 in rb_threadptr_execute_interrupts_rec (th=0x5033c0, sched_depth=0) at thread.c:1305
#3  0x00002aaaaac11162 in vm_call_method (th=0x5033c0, cfp=0x2aaaadd34670, num=1, blockptr=0x1, flag=0, id=60584, me=0x17646e0, recv=198781640) at vm_insnhelper.c:670
#4  0x00002aaaaac1477d in vm_exec_core (th=0x5033c0, initial=Variable "initial" is not available.
) at insns.def:1006
#5  0x00002aaaaac192ba in vm_exec (th=0x5033c0) at vm.c:1147
#6  0x00002aaaaac19c9c in invoke_block_from_c (th=0x5033c0, block=0x24a6eb0, self=5653000, argc=Variable "argc" is not available.
) at vm.c:558
#7  0x00002aaaaac1a071 in rb_vm_invoke_proc (th=0x5033c0, proc=0x24a6eb0, self=5653000, argc=2, argv=0x2aaaadc35200, blockptr=0x0) at vm.c:604
#8  0x00002aaaaab11d0d in proc_call (argc=2, argv=0x2aaaadc35200, procval=Variable "procval" is not available.
) at proc.c:556
#9  0x00002aaaaac10f85 in vm_call_method (th=0x5033c0, cfp=0x2aaaadd34988, num=2, blockptr=0x1, flag=0, id=5912, me=0x5fc6d0, recv=35624360) at vm_insnhelper.c:402
#10 0x00002aaaaac1477d in vm_exec_core (th=0x5033c0, initial=Variable "initial" is not available.
) at insns.def:1006
#11 0x00002aaaaac192ba in vm_exec (th=0x5033c0) at vm.c:1147
#12 0x00002aaaaac19c9c in invoke_block_from_c (th=0x5033c0, block=0x2aaaadd34ab8, self=35415120, argc=Variable "argc" is not available.
) at vm.c:558
#13 0x00002aaaaac1a3f7 in rb_yield (val=35624360) at vm.c:588
#14 0x00002aaaaaadbb3b in rb_ary_each (ary=35414320) at array.c:1427
#15 0x00002aaaaac10f85 in vm_call_method (th=0x5033c0, cfp=0x2aaaadd34a90, num=0, blockptr=0x2aaaadd34ab9, flag=0, id=424, me=0x5b9630, recv=35414320) at vm_insnhelper.c:402
#16 0x00002aaaaac1477d in vm_exec_core (th=0x5033c0, initial=Variable "initial" is not available.
) at insns.def:1006
#17 0x00002aaaaac192ba in vm_exec (th=0x5033c0) at vm.c:1147
#18 0x00002aaaaac19c9c in invoke_block_from_c (th=0x5033c0, block=0x2aaaadd34dd0, self=9467640, argc=Variable "argc" is not available.
) at vm.c:558
#19 0x00002aaaaac1a3f7 in rb_yield (val=5558320) at vm.c:588
#20 0x00002aaaaaadbb3b in rb_ary_each (ary=9079920) at array.c:1427
#21 0x00002aaaaac10f85 in vm_call_method (th=0x5033c0, cfp=0x2aaaadd34da8, num=0, blockptr=0x2aaaadd34dd1, flag=0, id=424, me=0x5b9630, recv=9079920) at vm_insnhelper.c:402
#22 0x00002aaaaac1477d in vm_exec_core (th=0x5033c0, initial=Variable "initial" is not available.
) at insns.def:1006
#23 0x00002aaaaac192ba in vm_exec (th=0x5033c0) at vm.c:1147
#24 0x00002aaaaac19669 in rb_iseq_eval_main (iseqval=5468880) at vm.c:1388
#25 0x00002aaaaab0a8e2 in ruby_exec_internal (n=0x5372d0) at eval.c:214
#26 0x00002aaaaab0a909 in ruby_exec_node (n=0x5372d0) at eval.c:261
#27 0x00002aaaaab0cf3f in ruby_run_node (n=0x5372d0) at eval.c:254
#28 0x000000000040097f in main (argc=5, argv=0x7fffffffdc28) at main.c:35
(gdb) quit


-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next