* [ruby-core:54835] [ruby-trunk - Bug #8372][Open] Segmentation fault with Factory Girl when using :class, typo on related factory
@ 2013-05-06 17:29 jshirley (Jay Shirley)
2013-05-06 18:41 ` [ruby-core:54837] [ruby-trunk - Bug #8372][Rejected] " zzak (Zachary Scott)
2013-05-07 2:41 ` [ruby-core:54840] [ruby-trunk - Bug #8372] " nobu (Nobuyoshi Nakada)
0 siblings, 2 replies; 3+ messages in thread
From: jshirley (Jay Shirley) @ 2013-05-06 17:29 UTC (permalink / raw
To: ruby-core
Issue #8372 has been reported by jshirley (Jay Shirley).
----------------------------------------
Bug #8372: Segmentation fault with Factory Girl when using :class, typo on related factory
https://bugs.ruby-lang.org/issues/8372
Author: jshirley (Jay Shirley)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
This bug is partially the result of a typo, partially learning and switching things around in FactoryGirl, and resulting in a seg fault
I have a nested ActiveRecord model (Person::Identity), when I define a FactoryGirl factory for testing (under rspec) I created a segmentation fault.
The factory is pretty simple, albeit incorrect:
(({
FactoryGirl.define do
factory :person_identity, :class => Person::Identity do
sequence(:email) { |i| "user-#{i}@example.com" }
person
end
factory :person do
sequence(:email) { |i| "user-#{i}@example.com" }
name 'Bob Hope'
after_create do |person|
FactoryGirl.create(:person_identity, :persond => person) # <-- typo here, should be "person", not sure where the "d" came from.
end
end
end
}))
With this in place, ruby 2.0.0-p0 repeatedly segfaulting.
Attached is the error log and OS X Diagnostic log.
I'm very new into the Ruby world, please accept my apologies if this bug report is incomplete or missing crucial information (and the Code Formatting doesn't seem to Preview correctly)
Thanks!
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:54837] [ruby-trunk - Bug #8372][Rejected] Segmentation fault with Factory Girl when using :class, typo on related factory
2013-05-06 17:29 [ruby-core:54835] [ruby-trunk - Bug #8372][Open] Segmentation fault with Factory Girl when using :class, typo on related factory jshirley (Jay Shirley)
@ 2013-05-06 18:41 ` zzak (Zachary Scott)
2013-05-07 2:41 ` [ruby-core:54840] [ruby-trunk - Bug #8372] " nobu (Nobuyoshi Nakada)
1 sibling, 0 replies; 3+ messages in thread
From: zzak (Zachary Scott) @ 2013-05-06 18:41 UTC (permalink / raw
To: ruby-core
Issue #8372 has been updated by zzak (Zachary Scott).
Status changed from Open to Rejected
This is a duplicate of #8100
Please try it again with trunk.
----------------------------------------
Bug #8372: Segmentation fault with Factory Girl when using :class, typo on related factory
https://bugs.ruby-lang.org/issues/8372#change-39171
Author: jshirley (Jay Shirley)
Status: Rejected
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
This bug is partially the result of a typo, partially learning and switching things around in FactoryGirl, and resulting in a seg fault
I have a nested ActiveRecord model (Person::Identity), when I define a FactoryGirl factory for testing (under rspec) I created a segmentation fault.
The factory is pretty simple, albeit incorrect:
(({
FactoryGirl.define do
factory :person_identity, :class => Person::Identity do
sequence(:email) { |i| "user-#{i}@example.com" }
person
end
factory :person do
sequence(:email) { |i| "user-#{i}@example.com" }
name 'Bob Hope'
after_create do |person|
FactoryGirl.create(:person_identity, :persond => person) # <-- typo here, should be "person", not sure where the "d" came from.
end
end
end
}))
With this in place, ruby 2.0.0-p0 repeatedly segfaulting.
Attached is the error log and OS X Diagnostic log.
I'm very new into the Ruby world, please accept my apologies if this bug report is incomplete or missing crucial information (and the Code Formatting doesn't seem to Preview correctly)
Thanks!
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:54840] [ruby-trunk - Bug #8372] Segmentation fault with Factory Girl when using :class, typo on related factory
2013-05-06 17:29 [ruby-core:54835] [ruby-trunk - Bug #8372][Open] Segmentation fault with Factory Girl when using :class, typo on related factory jshirley (Jay Shirley)
2013-05-06 18:41 ` [ruby-core:54837] [ruby-trunk - Bug #8372][Rejected] " zzak (Zachary Scott)
@ 2013-05-07 2:41 ` nobu (Nobuyoshi Nakada)
1 sibling, 0 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2013-05-07 2:41 UTC (permalink / raw
To: ruby-core
Issue #8372 has been updated by nobu (Nobuyoshi Nakada).
Description updated
----------------------------------------
Bug #8372: Segmentation fault with Factory Girl when using :class, typo on related factory
https://bugs.ruby-lang.org/issues/8372#change-39173
Author: jshirley (Jay Shirley)
Status: Rejected
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
=begin
This bug is partially the result of a typo, partially learning and switching things around in FactoryGirl, and resulting in a seg fault
I have a nested ActiveRecord model (Person::Identity), when I define a FactoryGirl factory for testing (under rspec) I created a segmentation fault.
The factory is pretty simple, albeit incorrect:
FactoryGirl.define do
factory :person_identity, :class => Person::Identity do
sequence(:email) { |i| "user-#{i}@example.com" }
person
end
factory :person do
sequence(:email) { |i| "user-#{i}@example.com" }
name 'Bob Hope'
after_create do |person|
FactoryGirl.create(:person_identity, :persond => person) # <-- typo here, should be "person", not sure where the "d" came from.
end
end
end
With this in place, ruby 2.0.0-p0 repeatedly segfaulting.
Attached is the error log and OS X Diagnostic log.
I'm very new into the Ruby world, please accept my apologies if this bug report is incomplete or missing crucial information (and the Code Formatting doesn't seem to Preview correctly)
Thanks!
=end
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-07 3:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06 17:29 [ruby-core:54835] [ruby-trunk - Bug #8372][Open] Segmentation fault with Factory Girl when using :class, typo on related factory jshirley (Jay Shirley)
2013-05-06 18:41 ` [ruby-core:54837] [ruby-trunk - Bug #8372][Rejected] " zzak (Zachary Scott)
2013-05-07 2:41 ` [ruby-core:54840] [ruby-trunk - Bug #8372] " nobu (Nobuyoshi Nakada)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).