oss-tsukuba / gfarm

distributed file system for large-scale cluster computing and wide-area data sharing. provides fine-grained replica location control.
Other
31 stars 12 forks source link

Conditional jump on uninitialized value in journal_file_reader_reopen_if_needed() #327

Closed gfarm-admin closed 4 years ago

gfarm-admin commented 12 years ago

Conditional jump on uninitialized value in gfmd.
This has no other functional effects.
This bug exists from r5853 in trunk, r5858 in branch/2.5.

valgrind log:

==24702== Conditional jump or move depends on uninitialised value(s)
==24702==    at 0x808E991: journal_file_reader_reopen_if_needed (journal_file.c:1417)
==24702==    by 0x80A8E88: db_journal_reader_reopen_if_needed (db_journal.c:3608)
==24702==    by 0x80939CE: gfmdc_server_journal_ready_to_recv (gfmd_channel.c:389)
==24702==    by 0x8093CB9: gfmdc_protocol_switch (gfmd_channel.c:470)
==24702==    by 0x806D709: async_channel_protocol_switch (abstract_host.c:552)
==24702==    by 0x806D85E: async_channel_service (abstract_host.c:584)
==24702==    by 0x806DC45: gfm_server_channel_main (abstract_host.c:677)
==24702==    by 0x8093D26: gfmdc_main (gfmd_channel.c:494)
==24702==    by 0x805A1AC: thrpool_worker (thrpool.c:142)
==24702==    by 0x432BD30: start_thread (pthread_create.c:304)
==24702==    by 0x44120CD: clone (clone.S:130)

Reported by: tbarbar Originally assigned to: tbarbar

Original Ticket: gfarm/tickets/327

gfarm-admin commented 12 years ago

Fixed by r5900 in trunk, r5906 in branches/2.5.

Original comment by: tbarbar